Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface {
Put(ctx context.Context, key string, r io.Reader, size int64, mime string) error
Get(ctx context.Context, key string) (io.ReadCloser, error)
Delete(ctx context.Context, key string) error
URL(ctx context.Context, key string) (string, error)
List(ctx context.Context, prefix string) ([]string, error)
Exists(ctx context.Context, key string) (bool, error)
}
Driver is the storage abstraction for file-like objects. Minimal set of operations needed by consumers.
Click to show internal directories.
Click to hide internal directories.