filesystem

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 13 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) Close added in v1.8.1

func (s Service) Close() error

func (Service) ConvertError added in v1.7.1

func (s Service) ConvertError(err error) error

func (Service) Enabled added in v1.7.1

func (s Service) Enabled() bool

func (Service) List added in v1.7.1

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

func (Service) Mkdir added in v1.7.1

func (s Service) Mkdir(_ context.Context, name string) error

func (Service) Name added in v1.7.1

func (s Service) Name() string

func (Service) Path added in v1.7.1

func (s Service) Path(name string) string

func (Service) ReadFrom added in v1.7.1

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

func (Service) RemoveAll added in v1.7.1

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

func (Service) Rename added in v1.7.1

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

func (Service) Stat added in v1.7.1

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

func (Service) UpdateDate added in v1.7.1

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

func (Service) Walk added in v1.7.1

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

func (Service) WithIgnoreFn added in v1.7.1

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

func (Service) WriteTo added in v1.7.1

func (s 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