Documentation
¶
Index ¶
- Variables
- func New(enc encryption.StateEncryption) backend.Backend
- type Backend
- type Catcher
- type Invoker
- type RemoteClient
- func (c *RemoteClient) Delete() error
- func (c *RemoteClient) Get() (payload *remote.Payload, err error)
- func (c *RemoteClient) IsLockingEnabled() bool
- func (c *RemoteClient) Lock(info *statemgr.LockInfo) (string, error)
- func (c *RemoteClient) Put(data []byte) error
- func (c *RemoteClient) Unlock(id string) error
Constants ¶
This section is empty.
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(enc encryption.StateEncryption) backend.Backend
New creates a new backend for OSS remote state.
Types ¶
type Backend ¶
func (*Backend) Workspaces ¶
type Invoker ¶
type Invoker struct {
// contains filtered or unexported fields
}
func NewInvoker ¶
func NewInvoker() Invoker
func (*Invoker) AddCatcher ¶
type RemoteClient ¶
type RemoteClient struct {
// contains filtered or unexported fields
}
func (*RemoteClient) Delete ¶
func (c *RemoteClient) Delete() error
func (*RemoteClient) IsLockingEnabled ¶
func (c *RemoteClient) IsLockingEnabled() bool
func (*RemoteClient) Put ¶
func (c *RemoteClient) Put(data []byte) error
func (*RemoteClient) Unlock ¶
func (c *RemoteClient) Unlock(id string) error
Click to show internal directories.
Click to hide internal directories.