cos

package
v1.4.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MPL-2.0 Imports: 26 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

func New() backend.Backend

New creates a new backend for TencentCloud cos remote state.

func SetReqClient added in v1.4.0

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 added in v1.4.0

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 added in v1.4.0

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

UseStsClient returns sts client for service

func (*Backend) UseTagClient added in v1.4.0

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 added in v1.4.0

type LogRoundTripper struct {
}

func (*LogRoundTripper) RoundTrip added in v1.4.0

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