Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingFile is returned when Upload gets called and no file is provided. ErrMissingFile = errors.New("missing file") // ErrBadContentType is returned when Upload gets called with an ivnalid content type. ErrBadContentType = errors.New("bad content type") )
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface { // Upload uploads a file to a cloud storage. Upload(input UploadInput) error // GetURL returns the URL of the given bucket and key from a cloud storage. GetURL(bucket string, key string, expiresIn time.Duration) (string, error) // PrepareAddress returns the address for the given bucket with the given key. PrepareAddress(bucket, key string) string }
Storage groups a set of methods to interact with a Cloud Storage.
Click to show internal directories.
Click to hide internal directories.