Documentation ¶ Index ¶ type Downloader type Signer type Storage type Uploader Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Downloader ¶ added in v0.44.0 type Downloader interface { // Download downloads a file. // Returns content, content type and error if the download fails. Download(ctx context.Context, name string) ([]byte, string, error) } type Signer ¶ type Signer interface { // GetSignedURL returns a signed URL, and an error if the operation fails. GetSignedURL(context.Context, string, time.Duration) (string, error) } type Storage ¶ added in v0.43.0 type Storage interface { Signer Uploader Downloader } type Uploader ¶ type Uploader interface { // Upload uploads a file. // Returns an error if the upload fails. Upload(context.Context, string, io.ReadSeeker) error } Source Files ¶ View all Source files storage.go Directories ¶ Show internal Expand all Path Synopsis google Click to show internal directories. Click to hide internal directories.