Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFSFromManifest ¶
func NewFSFromManifest(manifest *continuity.Manifest, mountRoot string, provider FileContentProvider) (fs.FS, error)
NewFSFromManifest creates a fuse filesystem using the given manifest to create the node tree and the content provider to serve up content for regular files.
Types ¶
type Dir ¶
type Dir struct {
// contains filtered or unexported fields
}
Dir represents a file system directory
func NewDir ¶
func NewDir(inode uint64, provider FileContentProvider) *Dir
NewDir creates a new directory object
type File ¶
type File struct {
// contains filtered or unexported fields
}
File represents any file type (non directory) in the filesystem
func NewFile ¶
func NewFile(inode uint64, provider FileContentProvider) *File
NewFile creates a new file with the given inode and content provider
type FileContentProvider ¶
type FileContentProvider interface { Path(string, digest.Digest) (string, error) Open(string, digest.Digest) (io.ReadCloser, error) }
FileContentProvider is an object which is used to fetch data and inode information about a path or digest. TODO(dmcgowan): Update GetContentPath to provide a filehandle or ReadWriteCloser.
func NewFSFileContentProvider ¶
func NewFSFileContentProvider(root string, driver continuity.Driver) FileContentProvider
NewFSFileContentProvider creates a new content provider which gets content from a directory on an existing filesystem based on the resource path.