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 Indent(prefix string, in string) string
- func StackHasSettled(stack types.Stack) bool
- type UI
- func (u *UI) FormatChangeSet(ctx context.Context, stackName, changeSetName string) (string, error)
- func (u *UI) GetStackOutput(ctx context.Context, stack types.Stack) (string, []string)
- func (u *UI) GetStackSummary(ctx context.Context, stack types.Stack, long bool) string
- func (u *UI) WaitForStackToSettle(ctx context.Context, 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 StackHasSettled ¶
StackHasSettled returns whether a given status represents a stack that has settled, i.e. is not updating
Types ¶
type UI ¶ added in v0.2.0
type UI struct {
// contains filtered or unexported fields
}
func (*UI) FormatChangeSet ¶ added in v0.3.0
func (*UI) GetStackOutput ¶ added in v0.2.0
GetStackOutput returns a pretty representation of a CloudFormation stack's status
func (*UI) GetStackSummary ¶ added in v0.2.0
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.
Click to show internal directories.
Click to hide internal directories.