lazyfs

package
v0.0.0-...-84b6aa6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(fs *FS) (*fuse.Server, error)

Types

type FS

type FS struct {
	pathfs.FileSystem
	// contains filtered or unexported fields
}

FS is a READ-ONLY filesystem with lazy-pull feature.

FS implements github.com/hanwen/go-fuse/fuse/pathfs.FileSystem

Supported objects:

  • directories
  • regular files (including hardlinks) (excepts XAttrs)
  • symbolic links

func NewFS

func NewFS(opts Options) (*FS, error)

func (*FS) GetAttr

func (fs *FS) GetAttr(name string, fc *fuse.Context) (*fuse.Attr, fuse.Status)

func (*FS) Open

func (fs *FS) Open(name string, flags uint32, fc *fuse.Context) (nodefs.File, fuse.Status)

func (*FS) OpenDir

func (fs *FS) OpenDir(name string, fc *fuse.Context) ([]fuse.DirEntry, fuse.Status)
func (fs *FS) Readlink(name string, fc *fuse.Context) (string, fuse.Status)

type Options

type Options struct {
	Mountpoint string
	Puller     puller.Puller
	Image      string
	RefName    string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL