Documentation ¶
Index ¶
- Constants
- Variables
- type App
- func (a App) ConvertError(err error) error
- func (a App) CreateDir(ctx context.Context, name string) error
- func (a App) Enabled() bool
- func (a App) Info(ctx context.Context, pathname string) (model.Item, error)
- func (a App) List(ctx context.Context, pathname string) ([]model.Item, error)
- func (a App) Name() string
- func (a App) Path(pathname string) string
- func (a App) ReadFrom(ctx context.Context, pathname string) (io.ReadSeekCloser, error)
- func (a App) Remove(ctx context.Context, pathname string) error
- func (a App) Rename(ctx context.Context, oldName, newName string) error
- func (a App) UpdateDate(ctx context.Context, pathname string, date time.Time) error
- func (a App) Walk(ctx context.Context, pathname string, walkFn func(model.Item) error) error
- func (a App) WithIgnoreFn(ignoreFn func(model.Item) bool) model.Storage
- func (a App) WriteSizedTo(ctx context.Context, pathname string, objectSize int64, reader io.Reader) error
- func (a App) WriteTo(ctx context.Context, pathname string, reader io.Reader) error
Constants ¶
View Source
const Name = "fs"
Name of the storage implementation
Variables ¶
View Source
var ErrRelativePath = errors.New("pathname contains relatives paths")
ErrRelativePath occurs when path is relative (contains ".."")
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App of the package
func (App) ConvertError ¶ added in v0.3.4
ConvertError with the appropriate type
func (App) UpdateDate ¶
UpdateDate update date from given value
func (App) WithIgnoreFn ¶
WithIgnoreFn create a new App with given ignoreFn
Click to show internal directories.
Click to hide internal directories.