Documentation ¶
Index ¶
- Constants
- Variables
- func LoggingFS(ctx context.Context, next billy.Filesystem, log *slog.Logger) billy.Filesystem
- func NewHandler(ctx context.Context, tree index.Tree, opts *Options) nfs.Handler
- func NewZipFS(tree index.Tree) billy.Filesystem
- func Serve(ctx context.Context, listener net.Listener, handler nfs.Handler) error
- type Options
- type ZipFS
- func (fs *ZipFS) Capabilities() billy.Capability
- func (fs *ZipFS) Chroot(path string) (billy.Filesystem, error)
- func (fs *ZipFS) Create(filename string) (billy.File, error)
- func (fs *ZipFS) Join(elem ...string) string
- func (fs *ZipFS) Lstat(filename string) (os.FileInfo, error)
- func (fs *ZipFS) MkdirAll(filename string, perm os.FileMode) error
- func (fs *ZipFS) Open(filename string) (billy.File, error)
- func (fs *ZipFS) OpenFile(filename string, flag int, perm os.FileMode) (billy.File, error)
- func (fs *ZipFS) ReadDir(name string) ([]os.FileInfo, error)
- func (fs *ZipFS) Readlink(link string) (string, error)
- func (fs *ZipFS) Remove(filename string) error
- func (fs *ZipFS) Rename(oldpath, newpath string) error
- func (fs *ZipFS) Root() string
- func (fs *ZipFS) Stat(filename string) (os.FileInfo, error)
- func (fs *ZipFS) Symlink(target, link string) error
- func (fs *ZipFS) TempFile(dir, prefix string) (billy.File, error)
Constants ¶
View Source
const DefaultHandleCacheSize = 1000000
Variables ¶
View Source
var DefaultOptions = &Options{ HandleCacheSize: DefaultHandleCacheSize, }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.