Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ErrNotExist ¶
func IsNotExist ¶
Types ¶
type Item ¶
type Storage ¶
type Storage interface {
Enabled() bool
Name() string
WithIgnoreFn(ignoreFn func(Item) bool) Storage
Path(pathname string) string
Info(ctx context.Context, pathname string) (Item, error)
List(ctx context.Context, pathname string) ([]Item, error)
WriteTo(ctx context.Context, pathname string, reader io.Reader, opts WriteOpts) error
ReadFrom(ctx context.Context, pathname string) (io.ReadSeekCloser, error)
Walk(ctx context.Context, pathname string, walkFn func(Item) error) error
CreateDir(ctx context.Context, pathname string) error
Rename(ctx context.Context, oldName, newName string) error
Remove(ctx context.Context, pathname string) error
UpdateDate(ctx context.Context, pathname string, date time.Time) error
ConvertError(err error) error
}
Click to show internal directories.
Click to hide internal directories.