Skip to content

Commit

Permalink
fix!: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
brokeyourbike committed May 26, 2024
1 parent 2d1dd43 commit b14e209
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,22 @@ import (
type Storage interface {
Signer
Uploader
Downloaded
Downloader
}

type Signer interface {
// GetSignedURL returns a signed URL. The URL is valid for the given duration
// GetSignedURL returns a signed URL, and an error if the operation fails.
GetSignedURL(context.Context, string, time.Duration) (string, error)
}

type Uploader interface {
// Upload uploads a file. Returns an error if the upload fails
// Upload uploads a file.
// Returns an error if the upload fails.
Upload(context.Context, string, io.ReadSeeker) error
}

type Downloaded interface {
// Download downloads a file. Returns content, content type and error
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)
}

0 comments on commit b14e209

Please sign in to comment.