Documentation ¶
Index ¶
- Variables
- type Client
- type InfrastructureManager
- func (m InfrastructureManager) Create(keyPairName string, numberOfAvailabilityZones int, stackName string, ...) (Stack, error)
- func (m InfrastructureManager) Delete(client Client, stackName string) error
- func (m InfrastructureManager) Exists(stackName string, cloudFormationClient Client) (bool, error)
- type Stack
- type StackManager
- func (s StackManager) CreateOrUpdate(client Client, name string, template templates.Template) error
- func (s StackManager) Delete(client Client, name string) error
- func (s StackManager) Describe(client Client, name string) (Stack, error)
- func (s StackManager) WaitForCompletion(client Client, name string, sleepInterval time.Duration, action string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var StackNotFound error = errors.New("stack not found")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { CreateStack(input *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error) UpdateStack(input *cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error) DescribeStacks(input *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error) DeleteStack(input *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error) }
type InfrastructureManager ¶
type InfrastructureManager struct {
// contains filtered or unexported fields
}
func NewInfrastructureManager ¶
func NewInfrastructureManager(builder templateBuilder, stackManager stackManager) InfrastructureManager
type StackManager ¶
type StackManager struct {
// contains filtered or unexported fields
}
func NewStackManager ¶
func NewStackManager(logger logger) StackManager
func (StackManager) CreateOrUpdate ¶
func (StackManager) Describe ¶
func (s StackManager) Describe(client Client, name string) (Stack, error)
func (StackManager) WaitForCompletion ¶
Click to show internal directories.
Click to hide internal directories.