Versions in this module Expand all Collapse all v1 v1.0.0 Dec 27, 2017 Changes in this version + const DefaultLocalCreatePathMode + var LocalCreatePathMode = DefaultLocalCreatePathMode + func IsNotExist(err error) bool + func List(ctx context.Context, w Walker, path string) ([]string, error) + func WalkN(ctx context.Context, w Walker, path string, n int, fn WalkFn) error + type CloudStorage struct + Bucket string + func (c *CloudStorage) Create(ctx context.Context, path string) (io.WriteCloser, error) + func (c *CloudStorage) Delete(ctx context.Context, path string) error + func (c *CloudStorage) Open(ctx context.Context, path string) (*File, error) + func (c *CloudStorage) Walk(ctx context.Context, path string, fn WalkFn) error + type ErrCountFS struct + func NewErrCountFS(fs FS, name string, err error) *ErrCountFS + func (s ErrCountFS) Create(ctx context.Context, path string) (io.WriteCloser, error) + func (s ErrCountFS) Delete(ctx context.Context, path string) error + func (s ErrCountFS) Open(ctx context.Context, path string) (*File, error) + func (s ErrCountFS) Walk(ctx context.Context, path string, fn WalkFn) error + type FS interface + Create func(ctx context.Context, path string) (io.WriteCloser, error) + Delete func(ctx context.Context, path string) error + Open func(ctx context.Context, path string) (*File, error) + func Cache(src, cache FS) FS + func FSFromURL(path string) FS + func HashFS(h hash.Hash, fs FS, gs GetSetter) FS + func Mem() FS + func Prefix(fs FS, prefix string) FS + type File struct + ModTime time.Time + Name string + Size int64 + type GetSetter interface + Delete func(key string) error + Get func(key string) (string, error) + Set func(key string, value string) error + type Local string + func (l Local) Create(_ context.Context, path string) (io.WriteCloser, error) + func (l Local) Delete(_ context.Context, path string) error + func (l Local) Open(_ context.Context, path string) (*File, error) + func (l Local) Walk(_ context.Context, path string, fn WalkFn) error + type LogFS struct + func NewLogFS(fs FS, name string, l *log.Logger) *LogFS + func (l *LogFS) Create(ctx context.Context, path string) (io.WriteCloser, error) + func (l *LogFS) Delete(ctx context.Context, path string) error + func (l *LogFS) Open(ctx context.Context, path string) (*File, error) + func (l *LogFS) Walk(ctx context.Context, path string, fn WalkFn) error + type S3 struct + Bucket string + func (s *S3) Create(ctx context.Context, path string) (io.WriteCloser, error) + func (s *S3) Delete(ctx context.Context, path string) error + func (s *S3) Open(ctx context.Context, path string) (*File, error) + func (s *S3) Walk(ctx context.Context, path string, fn WalkFn) error + type TraceFS struct + func NewTraceFS(fs FS, name string) *TraceFS + func (t *TraceFS) Create(ctx context.Context, path string) (wc io.WriteCloser, err error) + func (t *TraceFS) Delete(ctx context.Context, path string) (err error) + func (t *TraceFS) Open(ctx context.Context, path string) (f *File, err error) + func (t *TraceFS) Walk(ctx context.Context, path string, fn WalkFn) error + type WalkFn func(path string) error + type Walker interface + Walk func(ctx context.Context, path string, fn WalkFn) error