Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type SivaBasicFS ¶
type SivaBasicFS interface { billy.Basic billy.Dir SivaSync }
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 ¶
type SivaFS interface { billy.Filesystem SivaSync }
func NewFilesystem ¶
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.