Documentation ¶
Index ¶
- func Colourise(msg, status string) string
- func ColouriseDiff(d diff.Diff, longFormat bool) string
- func ColouriseStatus(status string) string
- func Errorf(err error, message string, parts ...interface{}) error
- func GetStackOutput(stack types.Stack) (string, []string)
- func GetStackSetSummary(stackSet *types.StackSet, long bool) string
- func GetStackSummary(stack types.Stack, long bool) string
- func Indent(prefix string, in string) string
- func StackHasSettled(stack types.Stack) bool
- func WaitForStackToSettle(stackName string) (string, []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Colourise ¶
Colourise wraps a message in an appropriate colour based on the accompanying status string
func ColouriseDiff ¶
ColouriseDiff wraps a diff object in nice colours
func ColouriseStatus ¶
ColouriseStatus wraps a status code in an appropriate colour
func GetStackOutput ¶
GetStackOutput returns a pretty representation of a CloudFormation stack's status
func GetStackSetSummary ¶ added in v1.3.0
func GetStackSummary ¶
GetStackSummary returns a string representation of an existing stack. If long is false, only the stack status and stack outputs will be included. If long is true, resources and parameters will be also included in the output.
func StackHasSettled ¶
StackHasSettled returns whether a given status represents a stack that has settled, i.e. is not updating
func WaitForStackToSettle ¶
WaitForStackToSettle blocks excute until a stack has finished updating and then returns its status
Types ¶
This section is empty.