oss

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2021 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBucket

func CreateBucket(ctx aliyun_resources.Context, bucket apistructs.OssBucketInfo) error

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 GetResourceTags(ctx aliyun_resources.Context, buckets []string) (*map[string]oss.Tagging, error)

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

func UnTag

func UnTag(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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL