cos

package
v0.14.0-alpha20201007 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROVIDER_SECRET_ID  = "TENCENTCLOUD_SECRET_ID"
	PROVIDER_SECRET_KEY = "TENCENTCLOUD_SECRET_KEY"
	PROVIDER_REGION     = "TENCENTCLOUD_REGION"
)

Default value from environment variable

Variables

This section is empty.

Functions

func New

func New() backend.Backend

New creates a new backend for TencentCloud cos remote state.

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) error

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

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) Workspaces

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

Workspaces returns a list of names for the workspaces

Jump to

Keyboard shortcuts

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