Documentation ¶
Index ¶
Constants ¶
View Source
const ( Filesystem config.StorageDriver = "fs" GoogleCloudStorage config.StorageDriver = "gcs" AmazonS3 config.StorageDriver = "s3" )
Variables ¶
View Source
var ErrNotExist = errors.New("file 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) Delete(ctx context.Context, path string) error }
Storage is the storage interface.
Click to show internal directories.
Click to hide internal directories.