Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotExist = errors.New("does not exist")
ErrNotExist is a sentinel error returned by the Open and the Stat methods.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface {
Save(ctx context.Context, content io.Reader, path string) error
Stat(ctx context.Context, path string) (*Stat, error)
Open(ctx context.Context, path string) (io.ReadCloser, error)
OpenWithStat(ctx context.Context, path string) (io.ReadCloser, *Stat, error)
Delete(ctx context.Context, path string) error
}
Storage is the storage interface.
Click to show internal directories.
Click to hide internal directories.