Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsOutputNotFound ¶
IsOutputNotFound asserts outputNotFoundError.
func IsOutputsNotAccessible ¶
IsOutputsNotAccessible asserts outputsNotAccessibleError.
func IsStackNotFound ¶
IsStackNotFound asserts stackNotFoundError and stack not found errors from the upstream's API message.
FIXME: The validation error returned by the CloudFormation API doesn't make things easy to check, other than looking for the returned string. There's no constant in the AWS golang SDK for defining this string, it comes from the service. This is the same in setup/error.go.
func IsTooManyStacks ¶
IsTooManyStacks asserts tooManyStacksError.
Types ¶
type CF ¶
type CF interface {
DescribeStacks(input *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error)
}
CF provides a set of methods to work with CloudFormation stacks. *CloudFormation struct from "github.com/aws/aws-sdk-go/service/cloudformation" fulfils this interface.
type CloudFormation ¶
type CloudFormation struct {
// contains filtered or unexported fields
}
func New ¶
func New(config Config) (*CloudFormation, error)
func (*CloudFormation) DescribeOutputsAndStatus ¶
func (c *CloudFormation) DescribeOutputsAndStatus(stackName string) ([]Output, string, error)
DescribeOutputsAndStatus returns stack outputs, stack status and error. The stack status is returned when the error is nil or the error is matched by IsOutputsNotAccessible.
func (*CloudFormation) GetOutputValue ¶
func (c *CloudFormation) GetOutputValue(outputs []Output, key string) (string, error)