Documentation ¶
Index ¶
- Constants
- Variables
- type App
- func (a App) CreateDir(name string) error
- func (a App) Enabled() bool
- func (a App) Info(pathname string) (model.Item, error)
- func (a App) List(pathname string) ([]model.Item, error)
- func (a App) Name() string
- func (a App) Path(pathname string) string
- func (a App) ReaderFrom(pathname string) (io.ReadSeekCloser, error)
- func (a App) Remove(pathname string) error
- func (a App) Rename(oldName, newName string) error
- func (a App) UpdateDate(pathname string, date time.Time) error
- func (a App) Walk(pathname string, walkFn func(model.Item) error) error
- func (a App) WithIgnoreFn(ignoreFn func(model.Item) bool) model.Storage
- func (a App) WriterTo(pathname string) (io.WriteCloser, 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) ReaderFrom ¶
func (a App) ReaderFrom(pathname string) (io.ReadSeekCloser, error)
ReaderFrom reads content from given pathname
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.