Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface {
Upload(ctx context.Context, data []byte, folder, bucket, fileExtension, name, visibility string) (string, error)
GetFileLink(ctx context.Context, bucket, file string, expiresIn time.Duration) (string, error)
}
func NewS3 ¶
func NewS3(credentials *credentials.Credentials, endpoint, region string) (Storage, error)
Click to show internal directories.
Click to hide internal directories.