Documentation ¶
Index ¶
- type Double
- func (d *Double) CancelUpdateStack(stackName string) error
- func (d *Double) Create(stack *cfn.Stack) (string, error)
- func (d *Double) CreateAndWait(stack *cfn.Stack) error
- func (d *Double) Delete(stackName string) error
- func (d *Double) DeleteAndWait(stackName string) error
- func (d *Double) DeleteAndWaitWithRoleARN(stackName, roleARN string) error
- func (d *Double) Describe(name string) (*cfn.StackDescription, error)
- func (d *Double) DescribeChangeSet(id, stack string) (*cfn.ChangeSetDescription, error)
- func (d *Double) DescribeStackEvents(input *sdk.DescribeStackEventsInput) (*sdk.DescribeStackEventsOutput, error)
- func (d *Double) ErrorEvents(stackName string) ([]cfn.StackEvent, error)
- func (d *Double) Events(stackName string) ([]cfn.StackEvent, error)
- func (d *Double) Exists(name string) (bool, error)
- func (d *Double) ListStacksWithTags(tags map[string]string) ([]cfn.StackDescription, error)
- func (d *Double) Metadata(opt cfn.MetadataOpts) (string, error)
- func (d *Double) Outputs(stack *cfn.Stack) (map[string]string, error)
- func (d *Double) StackResources(name string) ([]*cfn.StackResource, error)
- func (d *Double) TemplateBody(name string) (string, error)
- func (d *Double) TemplateBodyFromChangeSet(changeSetID, stackName string) (string, error)
- func (d *Double) Update(stack *cfn.Stack) (string, error)
- func (d *Double) UpdateAndWait(stack *cfn.Stack) error
- func (d *Double) WaitForCreate(ctx context.Context, stack string) error
- func (d *Double) WaitForUpdate(ctx context.Context, stackName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Double ¶
type Double struct { CreateFn func(stack *cfn.Stack) (string, error) CreateAndWaitFn func(stack *cfn.Stack) error DescribeChangeSetFn func(changeSetID, stackName string) (*cfn.ChangeSetDescription, error) WaitForCreateFn func(ctx context.Context, stackName string) error UpdateFn func(stack *cfn.Stack) (string, error) UpdateAndWaitFn func(stack *cfn.Stack) error WaitForUpdateFn func(ctx context.Context, stackName string) error DeleteFn func(stackName string) error DeleteAndWaitFn func(stackName string) error DeleteAndWaitWithRoleARNFn func(stackName, roleARN string) error DescribeFn func(name string) (*cfn.StackDescription, error) ExistsFn func(name string) (bool, error) MetadataFn func(opt cfn.MetadataOpts) (string, error) TemplateBodyFn func(name string) (string, error) TemplateBodyFromChangeSetFn func(changeSetID, stackName string) (string, error) OutputsFn func(stack *cfn.Stack) (map[string]string, error) EventsFn func(stackName string) ([]cfn.StackEvent, error) StackResourcesFn func(name string) ([]*cfn.StackResource, error) ErrorEventsFn func(stackName string) ([]cfn.StackEvent, error) ListStacksWithTagsFn func(tags map[string]string) ([]cfn.StackDescription, error) DescribeStackEventsFn func(input *sdk.DescribeStackEventsInput) (*sdk.DescribeStackEventsOutput, error) CancelUpdateStackFn func(stackName string) error }
Double is a test double for cloudformation.CloudFormation
func (*Double) CancelUpdateStack ¶ added in v1.29.1
CancelUpdateStack calls the stubbed function.
func (*Double) CreateAndWait ¶
CreateAndWait calls the stubbed function.
func (*Double) DeleteAndWait ¶
DeleteAndWait calls the stubbed function.
func (*Double) DeleteAndWaitWithRoleARN ¶
DeleteAndWaitWithRoleARN calls the stubbed function.
func (*Double) Describe ¶
func (d *Double) Describe(name string) (*cfn.StackDescription, error)
Describe calls the stubbed function.
func (*Double) DescribeChangeSet ¶
func (d *Double) DescribeChangeSet(id, stack string) (*cfn.ChangeSetDescription, error)
DescribeChangeSet calls the stubbed function.
func (*Double) DescribeStackEvents ¶
func (d *Double) DescribeStackEvents(input *sdk.DescribeStackEventsInput) (*sdk.DescribeStackEventsOutput, error)
DescribeStackEvents calls the stubbed function.
func (*Double) ErrorEvents ¶
func (d *Double) ErrorEvents(stackName string) ([]cfn.StackEvent, error)
ErrorEvents calls the stubbed function.
func (*Double) Events ¶
func (d *Double) Events(stackName string) ([]cfn.StackEvent, error)
Events calls the stubbed function.
func (*Double) ListStacksWithTags ¶
ListStacksWithTags calls the stubbed function.
func (*Double) Metadata ¶
func (d *Double) Metadata(opt cfn.MetadataOpts) (string, error)
Metadata calls the stubbed function.
func (*Double) StackResources ¶
func (d *Double) StackResources(name string) ([]*cfn.StackResource, error)
StackResources calls the stubbed function.
func (*Double) TemplateBody ¶
TemplateBody calls the stubbed function.
func (*Double) TemplateBodyFromChangeSet ¶
TemplateBodyFromChangeSet calls the stubbed function.
func (*Double) UpdateAndWait ¶
UpdateAndWait calls the stubbed function.
func (*Double) WaitForCreate ¶
WaitForCreate calls the stubbed function.