cos

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MPL-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROVIDER_SECRET_ID                    = "TENCENTCLOUD_SECRET_ID"
	PROVIDER_SECRET_KEY                   = "TENCENTCLOUD_SECRET_KEY"
	PROVIDER_SECURITY_TOKEN               = "TENCENTCLOUD_SECURITY_TOKEN"
	PROVIDER_REGION                       = "TENCENTCLOUD_REGION"
	PROVIDER_ASSUME_ROLE_ARN              = "TENCENTCLOUD_ASSUME_ROLE_ARN"
	PROVIDER_ASSUME_ROLE_SESSION_NAME     = "TENCENTCLOUD_ASSUME_ROLE_SESSION_NAME"
	PROVIDER_ASSUME_ROLE_SESSION_DURATION = "TENCENTCLOUD_ASSUME_ROLE_SESSION_DURATION"
)

Default value from environment variable

View Source
const REQUEST_CLIENT = "TENCENTCLOUD_API_REQUEST_CLIENT"

Variables

View Source
var ReqClient = "Terraform-latest"

Functions

func New

New creates a new backend for TencentCloud cos remote state.

func SetReqClient

func SetReqClient(name string)

Types

type Backend

type Backend struct {
	*schema.Backend
	// contains filtered or unexported fields
}

Backend implements "backend".Backend for tencentCloud cos

func (*Backend) DeleteWorkspace

func (b *Backend) DeleteWorkspace(name string, _ bool) error

DeleteWorkspace deletes the named workspaces. The "default" state cannot be deleted.

func (*Backend) NewClientProfile

func (b *Backend) NewClientProfile(timeout int) *profile.ClientProfile

NewClientProfile returns a new ClientProfile

func (*Backend) StateMgr

func (b *Backend) StateMgr(name string) (statemgr.Full, error)

StateMgr manage the state, if the named state not exists, a new file will created

func (*Backend) UseStsClient

func (b *Backend) UseStsClient() *sts.Client

UseStsClient returns sts client for service

func (*Backend) UseTagClient

func (b *Backend) UseTagClient() *tag.Client

UseTagClient returns tag client for service

func (*Backend) Workspaces

func (b *Backend) Workspaces() ([]string, error)

Workspaces returns a list of names for the workspaces

type LogRoundTripper

type LogRoundTripper struct {
}

func (*LogRoundTripper) RoundTrip

func (me *LogRoundTripper) RoundTrip(request *http.Request) (response *http.Response, errRet error)

Jump to

Keyboard shortcuts

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