Documentation ¶
Index ¶
- Constants
- type Options
- type Store
- func (c *Store) DeleteLock(ref string) error
- func (c *Store) DeleteState(ref string) error
- func (c *Store) GetLock(ref string) (*types.Lock, error)
- func (c *Store) GetState(ref string) (map[string]interface{}, bool, error)
- func (c *Store) Init() error
- func (c *Store) PutLock(ref string, lock types.Lock) error
- func (c *Store) PutState(ref string, state, metadata map[string]interface{}, encrypted bool) error
- func (c *Store) WithClient(client *mongo.Client) *Store
Constants ¶
View Source
const ( DefaultLockCollectionName = "terraform_locks" DefaultStateCollectionName = "terraform_states" DefaultConnectTimeout = 60 DefaultQueryTimeout = 5 )
Defaults
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { LockCollectionName string StateCollectionName string Database string URI string ConnectTimeout int QueryTimeout int }
Options MongoDB backend options
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store MongoDB store
func (*Store) DeleteState ¶
DeleteState deletes a state
Click to show internal directories.
Click to hide internal directories.