Documentation ¶
Index ¶
- Constants
- Variables
- func New(enc encryption.StateEncryption) backend.Backend
- func SetReqClient(name string)
- type Backend
- func (b *Backend) DeleteWorkspace(name string, _ bool) error
- func (b *Backend) NewClientProfile(timeout int) *profile.ClientProfile
- func (b *Backend) StateMgr(name string) (statemgr.Full, error)
- func (b *Backend) UseStsClient() *sts.Client
- func (b *Backend) UseTagClient() *tag.Client
- func (b *Backend) Workspaces() ([]string, error)
- type LogRoundTripper
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(enc encryption.StateEncryption) backend.Backend
New creates a new backend for TencentCloud cos remote state.
func SetReqClient ¶
func SetReqClient(name string)
Types ¶
type Backend ¶
Backend implements "backend".Backend for tencentCloud cos
func (*Backend) DeleteWorkspace ¶
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 ¶
StateMgr manage the state, if the named state not exists, a new file will created
func (*Backend) UseStsClient ¶
UseStsClient returns sts client for service
func (*Backend) UseTagClient ¶
UseTagClient returns tag client for service
func (*Backend) Workspaces ¶
Workspaces returns a list of names for the workspaces
type LogRoundTripper ¶
type LogRoundTripper struct { }
Click to show internal directories.
Click to hide internal directories.