Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Client ¶
type Client interface { InitWithBackend() error InitWithoutBackend() error Apply() error Destroy() error Plan() (string, error) JSONPlan() error Output(string) (map[string]map[string]interface{}, error) OutputWithLegacyStorage() (map[string]map[string]interface{}, error) Version() (string, error) Import(string) error ImportWithLegacyStorage() error WorkspaceList() ([]string, error) WorkspaceNewFromExistingStateFile(string, string) error WorkspaceNewIfNotExists(string) error WorkspaceSelect(string) error WorkspaceDelete(string) error WorkspaceDeleteWithForce(string) error StatePull(string) ([]byte, error) CurrentStateVersion(string) (StateVersion, error) SavePlanToBackend(string) error GetPlanFromBackend(string) error SetModel(models.Terraform) }
type LegacyStorageAction ¶
type LegacyStorageAction struct { Client Client Model models.Terraform PlanFile storage.PlanFile StateFile storage.StateFile Logger logger.Logger }
func (*LegacyStorageAction) Apply ¶
func (a *LegacyStorageAction) Apply() (LegacyStorageResult, error)
func (*LegacyStorageAction) Destroy ¶
func (a *LegacyStorageAction) Destroy() (LegacyStorageResult, error)
func (*LegacyStorageAction) Plan ¶
func (a *LegacyStorageAction) Plan() (LegacyStorageResult, error)
type LegacyStorageResult ¶
type LegacyStorageResult struct { Version storage.Version Output map[string]map[string]interface{} }
func (LegacyStorageResult) RawOutput ¶
func (r LegacyStorageResult) RawOutput() map[string]interface{}
func (LegacyStorageResult) SanitizedOutput ¶
func (r LegacyStorageResult) SanitizedOutput() map[string]string
type MigratedFromStorageAction ¶
type MigratedFromStorageAction struct { Client Client Model models.Terraform Logger logger.Logger EnvName string StateFile storage.StateFile }
func (*MigratedFromStorageAction) Apply ¶
func (a *MigratedFromStorageAction) Apply() (Result, error)
func (*MigratedFromStorageAction) Destroy ¶
func (a *MigratedFromStorageAction) Destroy() (Result, error)
func (*MigratedFromStorageAction) Plan ¶
func (a *MigratedFromStorageAction) Plan() (Result, error)
type Result ¶
func (Result) SanitizedOutput ¶
type StateVersion ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.