Documentation ¶
Index ¶
- Constants
- Variables
- func New() 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 SetReqClient ¶ added in v1.4.0
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 ¶ added in v1.4.0
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 ¶ added in v1.4.0
UseStsClient returns sts client for service
func (*Backend) UseTagClient ¶ added in v1.4.0
UseTagClient returns tag client for service
func (*Backend) Workspaces ¶
Workspaces returns a list of names for the workspaces
type LogRoundTripper ¶ added in v1.4.0
type LogRoundTripper struct { }
Click to show internal directories.
Click to hide internal directories.