filesystem

package
v1.7.9 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const Name = "filesystem"

Variables

This section is empty.

Functions

This section is empty.

Types

type Service added in v1.7.1

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(directory string) (Service, error)

func (Service) ConvertError added in v1.7.1

func (a Service) ConvertError(err error) error

func (Service) Enabled added in v1.7.1

func (a Service) Enabled() bool

func (Service) List added in v1.7.1

func (a Service) List(_ context.Context, name string) ([]model.Item, error)

func (Service) Mkdir added in v1.7.1

func (a Service) Mkdir(_ context.Context, name string, perm os.FileMode) error

func (Service) Name added in v1.7.1

func (a Service) Name() string

func (Service) Path added in v1.7.1

func (a Service) Path(name string) string

func (Service) ReadFrom added in v1.7.1

func (a Service) ReadFrom(_ context.Context, name string) (model.ReadAtSeekCloser, error)

func (Service) RemoveAll added in v1.7.1

func (a Service) RemoveAll(_ context.Context, name string) error

func (Service) Rename added in v1.7.1

func (a Service) Rename(ctx context.Context, oldName, newName string) error

func (Service) Stat added in v1.7.1

func (a Service) Stat(_ context.Context, name string) (model.Item, error)

func (Service) UpdateDate added in v1.7.1

func (a Service) UpdateDate(_ context.Context, name string, date time.Time) error

func (Service) Walk added in v1.7.1

func (a Service) Walk(_ context.Context, name string, walkFn func(model.Item) error) error

func (Service) WithIgnoreFn added in v1.7.1

func (a Service) WithIgnoreFn(ignoreFn func(model.Item) bool) model.Storage

func (Service) WriteTo added in v1.7.1

func (a Service) WriteTo(_ context.Context, name string, reader io.Reader, _ model.WriteOpts) error

Jump to

Keyboard shortcuts

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