cos

package
v1.81.68 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MPL-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	COS_ACL_GRANTEE_TYPE_USER      = "CanonicalUser"
	COS_ACL_GRANTEE_TYPE_ANONYMOUS = "Group"
)
View Source
const (
	CERT_ENABLED  = "Enabled"
	CERT_DISABLED = "Disabled"
)
View Source
const PUBLIC_GRANTEE = "http://cam.qcloud.com/groups/global/AllUsers"

Variables

View Source
var COSACLPermissionSeq = []string{
	"READ",
	"WRITE",
	"FULL_CONTROL",
	"WRITE_ACP",
	"READ_ACP",
}

Functions

func ACLBodyDiffFunc

func ACLBodyDiffFunc(olds, news string, d *schema.ResourceData) (result bool)

func DataSourceTencentCloudCosBatchs

func DataSourceTencentCloudCosBatchs() *schema.Resource

func DataSourceTencentCloudCosBucketInventorys

func DataSourceTencentCloudCosBucketInventorys() *schema.Resource

func DataSourceTencentCloudCosBucketMultipartUploads

func DataSourceTencentCloudCosBucketMultipartUploads() *schema.Resource

func DataSourceTencentCloudCosBucketObject

func DataSourceTencentCloudCosBucketObject() *schema.Resource

func DataSourceTencentCloudCosBuckets

func DataSourceTencentCloudCosBuckets() *schema.Resource

func GetBucketPublicACL

func GetBucketPublicACL(acl *cos.BucketGetACLResult) string

func ResourceTencentCloudCosBatch

func ResourceTencentCloudCosBatch() *schema.Resource

func ResourceTencentCloudCosBucket

func ResourceTencentCloudCosBucket() *schema.Resource

func ResourceTencentCloudCosBucketDomainCertificateAttachment

func ResourceTencentCloudCosBucketDomainCertificateAttachment() *schema.Resource

func ResourceTencentCloudCosBucketGenerateInventoryImmediatelyOperation

func ResourceTencentCloudCosBucketGenerateInventoryImmediatelyOperation() *schema.Resource

func ResourceTencentCloudCosBucketInventory

func ResourceTencentCloudCosBucketInventory() *schema.Resource

func ResourceTencentCloudCosBucketObject

func ResourceTencentCloudCosBucketObject() *schema.Resource

func ResourceTencentCloudCosBucketPolicy

func ResourceTencentCloudCosBucketPolicy() *schema.Resource

func ResourceTencentCloudCosBucketReferer

func ResourceTencentCloudCosBucketReferer() *schema.Resource

func ResourceTencentCloudCosBucketVersion

func ResourceTencentCloudCosBucketVersion() *schema.Resource

func ResourceTencentCloudCosObjectAbortMultipartUploadOperation

func ResourceTencentCloudCosObjectAbortMultipartUploadOperation() *schema.Resource

func ResourceTencentCloudCosObjectCopyOperation

func ResourceTencentCloudCosObjectCopyOperation() *schema.Resource

func ResourceTencentCloudCosObjectDownloadOperation

func ResourceTencentCloudCosObjectDownloadOperation() *schema.Resource

func ResourceTencentCloudCosObjectRestoreOperation

func ResourceTencentCloudCosObjectRestoreOperation() *schema.Resource

Types

type CosBucketDomainCertItem

type CosBucketDomainCertItem struct {
	// contains filtered or unexported fields
}

type CosService

type CosService struct {
	// contains filtered or unexported fields
}

func NewCosService

func NewCosService(client *connectivity.TencentCloudClient) CosService

func (*CosService) BucketGetIntelligentTiering

func (me *CosService) BucketGetIntelligentTiering(ctx context.Context, bucket string) (result *cos.BucketGetIntelligentTieringResult, errRet error)

func (*CosService) BucketPutIntelligentTiering

func (me *CosService) BucketPutIntelligentTiering(ctx context.Context, bucket string, opt *cos.BucketPutIntelligentTieringOptions) (errRet error)

func (*CosService) DeleteBucket

func (me *CosService) DeleteBucket(ctx context.Context, bucket string, forced bool, versioned bool) (errRet error)

func (*CosService) DeleteBucketOriginDomain

func (me *CosService) DeleteBucketOriginDomain(ctx context.Context, bucket string) (errRet error)

func (*CosService) DeleteBucketPolicy

func (me *CosService) DeleteBucketPolicy(ctx context.Context, bucket string) (errRet error)

func (*CosService) DeleteBucketPullOrigin

func (me *CosService) DeleteBucketPullOrigin(ctx context.Context, bucket string) (errRet error)

func (*CosService) DeleteBucketReplication

func (me *CosService) DeleteBucketReplication(ctx context.Context, bucket string) (errRet error)

func (*CosService) DeleteCosBucketDomainCertificate

func (me *CosService) DeleteCosBucketDomainCertificate(ctx context.Context, certId string) (errRet error)

func (*CosService) DeleteObject

func (me *CosService) DeleteObject(ctx context.Context, bucket, key string) (errRet error)

func (*CosService) DescribeCosBucketDomainCertificate

func (me *CosService) DescribeCosBucketDomainCertificate(ctx context.Context, certId string) (result *cos.BucketGetDomainCertificateResult, bucket string, errRet error)

func (*CosService) DescribeCosBucketRefererById

func (me *CosService) DescribeCosBucketRefererById(ctx context.Context, bucket string) (*cos.BucketGetRefererResult, error)

func (*CosService) DescribeCosBucketVersionById

func (me *CosService) DescribeCosBucketVersionById(ctx context.Context, bucket string) (*cos.BucketGetVersionResult, error)

func (*CosService) DescribePolicyByBucket

func (me *CosService) DescribePolicyByBucket(ctx context.Context, bucket string) (bucketPolicy string, errRet error)

func (*CosService) ForceCleanObject

func (me *CosService) ForceCleanObject(ctx context.Context, bucket string, versioned bool) error

func (*CosService) GetBucketACL

func (me *CosService) GetBucketACL(ctx context.Context, bucket string) (result *cos.BucketGetACLResult, errRet error)

func (*CosService) GetBucketAccleration

func (me *CosService) GetBucketAccleration(ctx context.Context, bucket string) (accelerationEnable bool, errRet error)

func (*CosService) GetBucketCors

func (me *CosService) GetBucketCors(ctx context.Context, bucket string) (corsRules []map[string]interface{}, errRet error)

func (*CosService) GetBucketEncryption

func (me *CosService) GetBucketEncryption(ctx context.Context, bucket string) (encryption string, errRet error)

func (*CosService) GetBucketLifecycle

func (me *CosService) GetBucketLifecycle(ctx context.Context, bucket string) (lifecycleRules []map[string]interface{}, errRet error)

func (*CosService) GetBucketLogStatus

func (me *CosService) GetBucketLogStatus(ctx context.Context, bucket string) (logEnable bool, logTargetBucket string, logPrefix string, errRet error)

func (*CosService) GetBucketOriginDomain

func (me *CosService) GetBucketOriginDomain(ctx context.Context, bucket string) (result []map[string]interface{}, errRet error)

func (*CosService) GetBucketPullOrigin

func (me *CosService) GetBucketPullOrigin(ctx context.Context, bucket string) (result []map[string]interface{}, errRet error)

func (*CosService) GetBucketReplication

func (me *CosService) GetBucketReplication(ctx context.Context, bucket string) (result *cos.GetBucketReplicationResult, errRet error)

func (*CosService) GetBucketTags

func (me *CosService) GetBucketTags(ctx context.Context, bucket string) (map[string]string, error)

func (*CosService) GetBucketVersioning

func (me *CosService) GetBucketVersioning(ctx context.Context, bucket string) (versioningEnable bool, errRet error)

func (*CosService) GetBucketWebsite

func (me *CosService) GetBucketWebsite(ctx context.Context, bucket string) (websites []map[string]interface{}, errRet error)

func (*CosService) GetDataSourceBucketLifecycle

func (me *CosService) GetDataSourceBucketLifecycle(ctx context.Context, bucket string) (lifecycleRules []map[string]interface{}, errRet error)

func (*CosService) GetObjectTags

func (me *CosService) GetObjectTags(ctx context.Context, bucket string, key string) (map[string]string, error)

func (*CosService) HeadBucket

func (me *CosService) HeadBucket(ctx context.Context, bucket string) (errRet error)

func (*CosService) HeadObject

func (me *CosService) HeadObject(ctx context.Context, bucket, key string) (info *s3.HeadObjectOutput, errRet error)

func (*CosService) ListBuckets

func (me *CosService) ListBuckets(ctx context.Context) (buckets []*s3.Bucket, errRet error)

func (*CosService) ListObjects

func (me *CosService) ListObjects(ctx context.Context, bucket string) (objects []*s3.Object, errRet error)

func (*CosService) PutBucket

func (me *CosService) PutBucket(ctx context.Context, bucket, acl string) (errRet error)

PutBucket - base on aws s3

func (*CosService) PutBucketOriginDomain

func (me *CosService) PutBucketOriginDomain(ctx context.Context, bucket string, rules []cos.BucketDomainRule) (errRet error)

func (*CosService) PutBucketPolicy

func (me *CosService) PutBucketPolicy(ctx context.Context, bucket, policy string) (errRet error)

func (*CosService) PutBucketPullOrigin

func (me *CosService) PutBucketPullOrigin(ctx context.Context, bucket string, rules []cos.BucketOriginRule) (errRet error)

func (*CosService) PutBucketReplication

func (me *CosService) PutBucketReplication(ctx context.Context, bucket string, role string, rules []cos.BucketReplicationRule) (errRet error)

func (*CosService) PutObjectAcl

func (me *CosService) PutObjectAcl(ctx context.Context, bucket, key, acl string) (errRet error)

func (*CosService) SetBucketTags

func (me *CosService) SetBucketTags(ctx context.Context, bucket string, tags map[string]string) error

SetBucketTags if len(tags) == 0, only delete tags

func (*CosService) SetObjectTags

func (me *CosService) SetObjectTags(ctx context.Context, bucket string, key string, tags map[string]string) error

SetObjectTags same as delete Bucket Tags

func (*CosService) TencentCosBucketGetLocation

func (me *CosService) TencentCosBucketGetLocation(ctx context.Context, bucket string, opt *cos.BucketPutOptions) (location string, errRet error)

func (*CosService) TencentCosPutBucket

func (me *CosService) TencentCosPutBucket(ctx context.Context, bucket string, opt *cos.BucketPutOptions) (errRet error)

TencentCosPutBucket - To support MAZ config, We use tencentcloud cos sdk instead of aws s3

func (*CosService) TencentCosPutBucketACLBody

func (me *CosService) TencentCosPutBucketACLBody(
	ctx context.Context,
	bucket string,
	reqBody string,
	header string,
) (errRet error)

func (*CosService) TencentcloudHeadBucket

func (me *CosService) TencentcloudHeadBucket(ctx context.Context, bucket string) (code int, header http.Header, errRet error)

Jump to

Keyboard shortcuts

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