Documentation ¶
Index ¶
- func CreateBucket(ctx aliyun_resources.Context, bucket apistructs.OssBucketInfo) error
- func CreateBucketWithRecord(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceOssRequest, ...)
- func DescribeResource(ctx aliyun_resources.Context, page aliyun_resources.PageOption, ...) ([]oss.BucketProperties, error)
- func GetBucketsSize(ctx aliyun_resources.Context, buckets []oss.BucketProperties) (int64, error)
- func GetResourceTags(ctx aliyun_resources.Context, buckets []string) (*map[string]oss.Tagging, error)
- func List(ctx aliyun_resources.Context, page aliyun_resources.PageOption, ...) ([]oss.BucketProperties, error)
- func OverwriteTags(ctx aliyun_resources.Context, items []apistructs.CloudResourceTagItem, ...) error
- func ProcessFailedRecord(ctx aliyun_resources.Context, record *dbclient.Record, ...)
- func TagResource(ctx aliyun_resources.Context, buckets []string, tags []string) error
- func UnTag(ctx aliyun_resources.Context, buckets []string, tags []string) error
- type BucketInfo
- type OssFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBucket ¶
func CreateBucket(ctx aliyun_resources.Context, bucket apistructs.OssBucketInfo) error
func CreateBucketWithRecord ¶
func CreateBucketWithRecord(ctx aliyun_resources.Context, req apistructs.CreateCloudResourceOssRequest, record *dbclient.Record)
func DescribeResource ¶
func DescribeResource(ctx aliyun_resources.Context, page aliyun_resources.PageOption, _cluster string, tags []string, prefix string) ([]oss.BucketProperties, error)
func GetBucketsSize ¶
func GetBucketsSize(ctx aliyun_resources.Context, buckets []oss.BucketProperties) (int64, error)
func GetResourceTags ¶
func List ¶
func List(ctx aliyun_resources.Context, page aliyun_resources.PageOption, regions []string, _cluster string, tags []string, prefix string) ([]oss.BucketProperties, error)
func OverwriteTags ¶
func OverwriteTags(ctx aliyun_resources.Context, items []apistructs.CloudResourceTagItem, tags []string) error
func ProcessFailedRecord ¶
func ProcessFailedRecord(ctx aliyun_resources.Context, record *dbclient.Record, detail *apistructs.CreateCloudResourceRecord)
func TagResource ¶
func TagResource(ctx aliyun_resources.Context, buckets []string, tags []string) error
Types ¶
type BucketInfo ¶
type BucketInfo struct {
AllObjectTotalSize int64
}
func GetBucketInfo ¶
func GetBucketInfo(ctx aliyun_resources.Context, bucketname string, location string) (*BucketInfo, error)
type OssFactory ¶
type OssFactory struct {
*resource_factory.BaseResourceFactory
}
Click to show internal directories.
Click to hide internal directories.