filesystem

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

View Source
const Name = "filesystem"

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func New

func New(directory string) (App, error)

func (App) ConvertError added in v0.3.4

func (a App) ConvertError(err error) error

func (App) Enabled added in v0.0.2

func (a App) Enabled() bool

func (App) List

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

func (App) Mkdir added in v1.6.0

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

func (App) Name added in v0.0.3

func (a App) Name() string

func (App) OpenFile added in v1.6.0

func (a App) OpenFile(ctx context.Context, name string, flags int, perm os.FileMode) (model.File, error)

func (App) Path added in v0.0.3

func (a App) Path(name string) string

func (App) ReadFrom added in v0.1.0

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

func (App) RemoveAll added in v1.6.0

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

func (App) Rename

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

func (App) Stat added in v1.6.0

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

func (App) UpdateDate

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

func (App) Walk

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

func (App) WithIgnoreFn

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

func (App) WriteTo added in v0.1.0

func (a App) 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