Documentation
¶
Index ¶
- Variables
- type AWSObjectStorageService
- func (service *AWSObjectStorageService) DeleteObject(ctx context.Context, key string) error
- func (service *AWSObjectStorageService) DeleteObjects(ctx context.Context, keys ...string) error
- func (service *AWSObjectStorageService) GetObject(ctx context.Context, key string) (Object, error)
- func (service *AWSObjectStorageService) GetSignedURL(key string, duration time.Duration) (string, error)
- func (service *AWSObjectStorageService) GetSignedURLForExistedKey(ctx context.Context, key string, duration time.Duration) (string, error)
- func (service *AWSObjectStorageService) HeadObject(ctx context.Context, key string) (Object, error)
- func (service *AWSObjectStorageService) ListObjects(ctx context.Context, prefix string, continueToken *string, maxObjects int) ([]Object, *string, error)
- func (service *AWSObjectStorageService) PutObject(ctx context.Context, key string, input *PutObjectInput) error
- type Object
- type ObjectStorageService
- type PutObjectInput
- type TencentCloudObjectStorageService
- func (service *TencentCloudObjectStorageService) DeleteObject(ctx context.Context, key string) error
- func (service *TencentCloudObjectStorageService) DeleteObjects(ctx context.Context, keys ...string) error
- func (service *TencentCloudObjectStorageService) GetObject(ctx context.Context, key string) (Object, error)
- func (service *TencentCloudObjectStorageService) GetSignedURL(key string, duration time.Duration) (string, error)
- func (service *TencentCloudObjectStorageService) GetSignedURLForExistedKey(ctx context.Context, key string, duration time.Duration) (string, error)
- func (service *TencentCloudObjectStorageService) HeadObject(ctx context.Context, key string) (Object, error)
- func (service *TencentCloudObjectStorageService) ListObjects(ctx context.Context, prefix string, continueToken *string, maxObjects int) ([]Object, *string, error)
- func (service *TencentCloudObjectStorageService) PutObject(ctx context.Context, key string, input *PutObjectInput) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AWSObjectStorageService ¶
type AWSObjectStorageService struct {
// contains filtered or unexported fields
}
func (*AWSObjectStorageService) DeleteObject ¶
func (service *AWSObjectStorageService) DeleteObject(ctx context.Context, key string) error
func (*AWSObjectStorageService) DeleteObjects ¶
func (service *AWSObjectStorageService) DeleteObjects(ctx context.Context, keys ...string) error
func (*AWSObjectStorageService) GetSignedURL ¶
func (*AWSObjectStorageService) GetSignedURLForExistedKey ¶ added in v1.1.1
func (*AWSObjectStorageService) HeadObject ¶ added in v1.1.1
func (*AWSObjectStorageService) ListObjects ¶
func (*AWSObjectStorageService) PutObject ¶
func (service *AWSObjectStorageService) PutObject(ctx context.Context, key string, input *PutObjectInput) error
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
func (Object) GetContent ¶
func (Object) GetContentType ¶ added in v1.1.2
func (Object) GetModifiedTime ¶
func (Object) GetObjectSize ¶ added in v1.1.1
type ObjectStorageService ¶
type ObjectStorageService interface { ListObjects(ctx context.Context, prefix string, continueToken *string, maxObjects int) ([]Object, *string, error) HeadObject(ctx context.Context, key string) (Object, error) GetObject(ctx context.Context, key string) (Object, error) PutObject(ctx context.Context, key string, input *PutObjectInput) error DeleteObject(ctx context.Context, key string) error DeleteObjects(ctx context.Context, keys ...string) error GetSignedURL(key string, duration time.Duration) (string, error) //GetSignedURLForExistedKey generates signed url if key exists. If key does not exist, return error GetSignedURLForExistedKey(ctx context.Context, key string, duration time.Duration) (string, error) }
func GetAWSObjectService ¶
func GetAWSObjectService(bucketName string, option cloud.Option) (ObjectStorageService, error)
func GetObjectStorageService ¶
func GetObjectStorageService(bucketName string, option cloud.Option) (ObjectStorageService, error)
func GetTencentCloudObjectService ¶
func GetTencentCloudObjectService(bucketName string, option cloud.Option) (ObjectStorageService, error)
type PutObjectInput ¶ added in v1.1.2
type TencentCloudObjectStorageService ¶
type TencentCloudObjectStorageService struct {
// contains filtered or unexported fields
}
func (*TencentCloudObjectStorageService) DeleteObject ¶
func (service *TencentCloudObjectStorageService) DeleteObject(ctx context.Context, key string) error
func (*TencentCloudObjectStorageService) DeleteObjects ¶
func (service *TencentCloudObjectStorageService) DeleteObjects(ctx context.Context, keys ...string) error
func (*TencentCloudObjectStorageService) GetSignedURL ¶
func (*TencentCloudObjectStorageService) GetSignedURLForExistedKey ¶ added in v1.1.1
func (*TencentCloudObjectStorageService) HeadObject ¶ added in v1.1.1
func (*TencentCloudObjectStorageService) ListObjects ¶
func (*TencentCloudObjectStorageService) PutObject ¶
func (service *TencentCloudObjectStorageService) PutObject(ctx context.Context, key string, input *PutObjectInput) error
Click to show internal directories.
Click to hide internal directories.