Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound is returned when an object in the store could not be found.
Functions ¶
Types ¶
type Store ¶
type Store interface { Put(ctx context.Context, bucket string, key string, r io.Reader) error Get(ctx context.Context, bucket string, key string) (io.ReadCloser, error) // Copy makes a copy of a file. Returns an error if the file does not exist. Copy(bucket string, from string, to string) error // Delete deletes a file. Returns an error if the file does not exist. Delete(bucket string, key string) error // PresignGetURL generates a URL to download an object. PresignGetURL(bucket string, key string, expires time.Duration, contentRange *Range) (string, error) }
Store is an interface to an object store.
Click to show internal directories.
Click to hide internal directories.