Documentation ¶
Index ¶
- Constants
- func CheckTerraform() (string, error)
- func FreshOutput(remoteState *RemoteState, rootPath string) (map[string]string, error)
- func GenerateBackendConfig(remoteState *RemoteState, rootPath string) (string, error)
- func Get(rootPath string) error
- func GetBackendConfigFilename(rootPath string) string
- func IsStateEmpty(rootPath string) (bool, error)
- func Output(rootPath string) (map[string]string, error)
- func ReenableRemoteState(remoteState *RemoteState, rootPath string) (string, error)
- func State(rootPath string) (string, error)
- type ApplyCommand
- type ApplyInput
- type ApplyOutput
- type BackendConfig
- type BackendObj
- type CmdOutput
- type DestroyCommand
- type DestroyInput
- type DestroyOutput
- type FreshApplyInput
- type FreshDestroyInput
- type FreshPlanInput
- type GetCommand
- type InitCommand
- type Meta
- type OutputCommand
- type PlanCommand
- type PlanInput
- type PlanOutput
- type PlanResourceDiff
- type RemoteState
- type ResourceDiff
- type S3Backend
- type StateCommand
- type TaintCommand
- type TfCommand
- type UntaintCommand
- type ValidateCommand
Constants ¶
View Source
const AppName = "app"
Variables ¶
This section is empty.
Functions ¶
func CheckTerraform ¶ added in v0.10.1
func FreshOutput ¶
func FreshOutput(remoteState *RemoteState, rootPath string) (map[string]string, error)
func GenerateBackendConfig ¶
func GenerateBackendConfig(remoteState *RemoteState, rootPath string) (string, error)
func IsStateEmpty ¶
func ReenableRemoteState ¶
func ReenableRemoteState(remoteState *RemoteState, rootPath string) (string, error)
Types ¶
type ApplyCommand ¶ added in v0.10.1
type ApplyCommand struct {
TfCommand
}
func (*ApplyCommand) Run ¶ added in v0.10.1
func (c *ApplyCommand) Run(args []string) int
type ApplyInput ¶
type ApplyOutput ¶
type ApplyOutput struct { ExitCode int Stdout string Stderr string Warnings []string Outputs map[string]string Diff *ResourceDiff }
func Apply ¶
func Apply(input *ApplyInput) (*ApplyOutput, error)
func FreshApply ¶
func FreshApply(input *FreshApplyInput) (*ApplyOutput, error)
type BackendConfig ¶
type BackendConfig struct {
Terraform []BackendObj `json:"terraform"`
}
type BackendObj ¶
type BackendObj struct {
Backend []S3Backend `json:"backend"`
}
type DestroyCommand ¶ added in v0.10.1
type DestroyCommand struct {
TfCommand
}
func (*DestroyCommand) Run ¶ added in v0.10.1
func (c *DestroyCommand) Run(args []string) int
type DestroyInput ¶
type DestroyOutput ¶
type DestroyOutput struct { ExitCode int Stdout string Stderr string Warnings []string Diff *ResourceDiff }
func Destroy ¶
func Destroy(input *DestroyInput) (*DestroyOutput, error)
func FreshDestroy ¶
func FreshDestroy(input *FreshDestroyInput) (*DestroyOutput, error)
type FreshApplyInput ¶
type FreshDestroyInput ¶
type FreshPlanInput ¶
type GetCommand ¶ added in v0.10.1
type GetCommand struct {
TfCommand
}
func (*GetCommand) Run ¶ added in v0.10.1
func (c *GetCommand) Run(args []string) int
type InitCommand ¶ added in v0.10.1
type InitCommand struct {
TfCommand
}
func (*InitCommand) Run ¶ added in v0.10.1
func (c *InitCommand) Run(args []string) int
type Meta ¶ added in v0.10.1
type Meta struct { Color bool // True if output should be colored Ui *ui.StreamedUi // Ui for output }
type OutputCommand ¶ added in v0.10.1
type OutputCommand struct {
TfCommand
}
func (*OutputCommand) Run ¶ added in v0.10.1
func (c *OutputCommand) Run(args []string) int
type PlanCommand ¶ added in v0.10.1
type PlanCommand struct {
TfCommand
}
func (*PlanCommand) Run ¶ added in v0.10.1
func (c *PlanCommand) Run(args []string) int
type PlanOutput ¶
type PlanOutput struct { ExitCode int Stdout string Stderr string Warnings []string Diff *PlanResourceDiff }
func FreshPlan ¶
func FreshPlan(input *FreshPlanInput) (*PlanOutput, error)
func Plan ¶
func Plan(input *PlanInput) (*PlanOutput, error)
type PlanResourceDiff ¶
type RemoteState ¶
func GetRemoteStateForApp ¶
func GetRemoteStateForApp(rs *RemoteState, namespace, appName string) (*RemoteState, error)
func GetRemoteStateForSlotId ¶
func GetRemoteStateForSlotId(rs *RemoteState, namespace, appName, slotId string) (*RemoteState, error)
type ResourceDiff ¶
type StateCommand ¶ added in v0.12.0
type StateCommand struct {
TfCommand
}
func (*StateCommand) Run ¶ added in v0.12.0
func (c *StateCommand) Run(args []string) int
type TaintCommand ¶ added in v0.10.1
type TaintCommand struct {
TfCommand
}
func (*TaintCommand) Run ¶ added in v0.10.1
func (c *TaintCommand) Run(args []string) int
type TfCommand ¶ added in v0.10.1
type TfCommand struct {
Meta
}
type UntaintCommand ¶ added in v0.10.1
type UntaintCommand struct {
TfCommand
}
func (*UntaintCommand) Run ¶ added in v0.10.1
func (c *UntaintCommand) Run(args []string) int
type ValidateCommand ¶ added in v0.10.1
type ValidateCommand struct {
TfCommand
}
func (*ValidateCommand) Run ¶ added in v0.10.1
func (c *ValidateCommand) Run(args []string) int
Click to show internal directories.
Click to hide internal directories.