Documentation ¶
Index ¶
- Variables
- func Next(subdir string) (uint, error)
- type Command
- type Stack
- func (s Stack) ActionCommand(action string, inputStacks []Stack, additionalArgs ...string) (*Command, error)
- func (s Stack) CmdOutput(action string, args ...string) (string, error)
- func (s Stack) Destroy(inputStacks []Stack, additionalArgs ...string) error
- func (s Stack) Exists() (bool, error)
- func (s Stack) GeneratePlan(inputStacks []Stack, additionalArgs ...string) (plan []byte, err error)
- func (s Stack) Output(name string) (string, error)
- func (s Stack) Outputs(names ...string) (out []string, err error)
- func (s Stack) RemoveFromState(names []string) error
- func (s Stack) RemoveState() error
- func (s Stack) RunAction(action string, inputStacks []Stack, additionalArgs ...string) error
- func (s Stack) RunInteractiveAction(action string, inputStacks []Stack, additionalArgs ...string) error
- func (s Stack) StateList() (state []string, err error)
- func (s Stack) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var AWSSession *session.Session
View Source
var Legacy = Stack{/* contains filtered or unexported fields */}
Functions ¶
Types ¶
type Command ¶
type Command struct { Stack Args []string // args for command Action string // terraform action name UseApplyArgs bool // Adds the args configured by "terracanary args" for plan/apply/destroy type commands Init bool // Perform terraform init before running command OutputSeparators bool // Print big ====== boundaries around this command in output Interactive bool // Allow input from StdIn Stdout io.Writer // If present, stdout will go here (otherwise, to stderr) Stderr io.Writer // If present, stderr will go here (otherwise, to stderr) }
func (Command) InitTerraform ¶
type Stack ¶
type Stack struct { Subdir string Version uint InputAlias string // Used for input stacks to provide alternate input variable prefix WorkingDirectory string // Override normal working directory for Subdir // contains filtered or unexported fields }
func All ¶
Returns stacks sorted by version, filtered by argument (or "" for any) This may include the legacy stack, if no filter is given
func (Stack) ActionCommand ¶
func (Stack) GeneratePlan ¶
func (Stack) RemoveFromState ¶
func (Stack) RemoveState ¶
func (Stack) RunInteractiveAction ¶
Click to show internal directories.
Click to hide internal directories.