oss

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: AGPL-3.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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