Documentation ¶
Index ¶
- Constants
- func FreshOutput(remoteState *RemoteState, rootPath string) (map[string]string, error)
- func FreshShow(remoteState *RemoteState, rootPath 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 Show(rootPath string) (string, error)
- type ApplyInput
- type ApplyOutput
- type BackendConfig
- type BackendObj
- type CmdOutput
- type DestroyInput
- type DestroyOutput
- type FreshApplyInput
- type FreshDestroyInput
- type FreshPlanInput
- type PlanInput
- type PlanOutput
- type PlanResourceDiff
- type RemoteState
- type ResourceDiff
- type S3Backend
Constants ¶
View Source
const AppName = "app"
Variables ¶
This section is empty.
Functions ¶
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 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 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 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 ¶
Click to show internal directories.
Click to hide internal directories.