Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type SivaBasicFS ¶
func New ¶
func New(fs billy.Filesystem, path string) SivaBasicFS
New creates a new filesystem backed by a siva file with the given path in the given filesystem. The siva file will be opened or created lazily with the first operation.
All files opened in write mode must be closed, otherwise the siva file will be corrupted.
type SivaFS ¶ added in v1.0.0
type SivaFS interface {
billy.Filesystem
SivaSync
}
func NewFilesystem ¶
func NewFilesystem(fs billy.Filesystem, path string, tmpFs billy.Filesystem) (SivaFS, error)
NewFilesystem creates an entire filesystem using siva as the main backend, but supplying unsupported functionality using as a temporal files backend the main filesystem. It needs an additional parameter `tmpFs` where temporary files will be stored. Note that `tmpFs` will be mounted as /tmp.
Click to show internal directories.
Click to hide internal directories.