oss

package
v1.3.0-rc.0...-12c9840 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.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