Documentation
¶
Overview ¶
Package storage defines the interface to talk to the storage backends
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface {
GetFile(ctx context.Context, cachePath string) (io.ReadSeekCloser, error)
LoadMeta(ctx context.Context, cachePath string) (*Meta, error)
StoreFile(ctx context.Context, cachePath string, metadata *Meta, data io.Reader) error
}
Storage is the interface to implement when building a storage backend
Directories
¶
| Path | Synopsis |
|---|---|
|
Package gcs implements a storage backend saving files in GCS
|
Package gcs implements a storage backend saving files in GCS |
|
Package local implements a storage.Storage backend for local file storage
|
Package local implements a storage.Storage backend for local file storage |
Click to show internal directories.
Click to hide internal directories.