Documentation
¶
Index ¶
Constants ¶
View Source
const ( ObjectStorageTypeMinio = "minio" ObjectStorageTypeCos = "cos" ObjectStorageTypeOss = "oss" ObjectStorageTypeS3 = "s3" )
Variables ¶
View Source
var ObjectStorageTypeSupport = map[string]bool{ ObjectStorageTypeMinio: true, ObjectStorageTypeCos: true, ObjectStorageTypeOss: true, ObjectStorageTypeS3: true, }
Functions ¶
Types ¶
type Presigner ¶
type Presigner interface {
GetPresignClient() *s3.PresignClient
GetObject(ctx context.Context, bucketName string, objectKey string, lifetimeSecs int64) (*v4.PresignedHTTPRequest, error)
PutObject(ctx context.Context, bucketName string, objectKey string, lifetimeSecs int64) (*v4.PresignedHTTPRequest, error)
DeleteObject(ctx context.Context, bucketName string, objectKey string) (*v4.PresignedHTTPRequest, error)
PresignPostObject(ctx context.Context, bucketName string, objectKey string, lifetimeSecs int64) (*s3.PresignedPostRequest, error)
PresignPutObject(ctx context.Context, bucketName string, objectKey string, lifetimeSecs int64) (*v4.PresignedHTTPRequest, error)
}
func NewPresigner ¶
Click to show internal directories.
Click to hide internal directories.