Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEmptyURI = errors.New("empty uri")
)
Functions ¶
This section is empty.
Types ¶
type Local ¶
type Local string
Local is local storage in local filesystem
type Storage ¶
type Storage interface {
// Put data and return uri for object
Put(ctx context.Context, uri string, r io.Reader) error
// Get object by uri
Get(ctx context.Context, uri string) (rc io.ReadCloser, err error)
// Delete object by uri
Delete(ctx context.Context, uri string) error
// Close storage
Close() error
}
Storage for object
Click to show internal directories.
Click to hide internal directories.