Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSS3Config ¶
type Config ¶
type Config struct {
AWSS3 AWSS3Config
}
type Interface ¶
type Interface interface {
Upload(ctx context.Context, key string, filename, filemimetype string, data []byte) (url string, err error)
Download(ctx context.Context, url string) ([]byte, error)
Delete(ctx context.Context, key string) error
GetPresignedUrl(ctx context.Context, key string) (string, error)
GetPresignedUrlWithDuration(ctx context.Context, key string, presignedDuration time.Duration) (string, error)
CreateUrlByKey(key string) string
}
Click to show internal directories.
Click to hide internal directories.