oss

package
v0.12.13 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: MPL-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const TerraformUA = "HashiCorp-Terraform"

Variables

View Source
var ClientErrorCatcher = Catcher{"AliyunGoClientFailure", 10, 3}
View Source
var ServiceBusyCatcher = Catcher{"ServiceUnavailable", 10, 3}
View Source
var TerraformVersion = strings.TrimSuffix(version.String(), "-dev")

Functions

func New

func New() backend.Backend

New creates a new backend for OSS remote state.

Types

type Backend

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

func (*Backend) DeleteWorkspace

func (b *Backend) DeleteWorkspace(name string) error

func (*Backend) StateMgr

func (b *Backend) StateMgr(name string) (state.State, error)

func (*Backend) Workspaces

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

type Catcher

type Catcher struct {
	Reason           string
	RetryCount       int
	RetryWaitSeconds int
}

type Invoker

type Invoker struct {
	// contains filtered or unexported fields
}

func NewInvoker

func NewInvoker() Invoker

func (*Invoker) AddCatcher

func (a *Invoker) AddCatcher(catcher Catcher)

func (*Invoker) Run

func (a *Invoker) Run(f func() error) error

type RemoteClient

type RemoteClient struct {
	// contains filtered or unexported fields
}

func (*RemoteClient) Delete

func (c *RemoteClient) Delete() error

func (*RemoteClient) Get

func (c *RemoteClient) Get() (payload *remote.Payload, err error)

func (*RemoteClient) Lock

func (c *RemoteClient) Lock(info *state.LockInfo) (string, error)

func (*RemoteClient) Put

func (c *RemoteClient) Put(data []byte) error

func (*RemoteClient) Unlock

func (c *RemoteClient) Unlock(id string) error

type TableStorePrimaryKeyMeta

type TableStorePrimaryKeyMeta struct {
	PKName string
	PKType string
}

Jump to

Keyboard shortcuts

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