cloudformationtest

package
v1.33.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

func (d *Double) CancelUpdateStack(stackName string) error

CancelUpdateStack calls the stubbed function.

func (*Double) Create

func (d *Double) Create(stack *cfn.Stack) (string, error)

Create calls the stubbed function.

func (*Double) CreateAndWait

func (d *Double) CreateAndWait(stack *cfn.Stack) error

CreateAndWait calls the stubbed function.

func (*Double) Delete

func (d *Double) Delete(stackName string) error

Delete calls the stubbed function.

func (*Double) DeleteAndWait

func (d *Double) DeleteAndWait(stackName string) error

DeleteAndWait calls the stubbed function.

func (*Double) DeleteAndWaitWithRoleARN

func (d *Double) DeleteAndWaitWithRoleARN(stackName, roleARN string) error

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) Exists

func (d *Double) Exists(name string) (bool, error)

Exists calls the stubbed function.

func (*Double) ListStacksWithTags

func (d *Double) ListStacksWithTags(tags map[string]string) ([]cfn.StackDescription, error)

ListStacksWithTags calls the stubbed function.

func (*Double) Metadata

func (d *Double) Metadata(opt cfn.MetadataOpts) (string, error)

Metadata calls the stubbed function.

func (*Double) Outputs

func (d *Double) Outputs(stack *cfn.Stack) (map[string]string, error)

Outputs calls the stubbed function.

func (*Double) StackResources

func (d *Double) StackResources(name string) ([]*cfn.StackResource, error)

StackResources calls the stubbed function.

func (*Double) TemplateBody

func (d *Double) TemplateBody(name string) (string, error)

TemplateBody calls the stubbed function.

func (*Double) TemplateBodyFromChangeSet

func (d *Double) TemplateBodyFromChangeSet(changeSetID, stackName string) (string, error)

TemplateBodyFromChangeSet calls the stubbed function.

func (*Double) Update

func (d *Double) Update(stack *cfn.Stack) (string, error)

Update calls the stubbed function.

func (*Double) UpdateAndWait

func (d *Double) UpdateAndWait(stack *cfn.Stack) error

UpdateAndWait calls the stubbed function.

func (*Double) WaitForCreate

func (d *Double) WaitForCreate(ctx context.Context, stack string) error

WaitForCreate calls the stubbed function.

func (*Double) WaitForUpdate

func (d *Double) WaitForUpdate(ctx context.Context, stackName string) error

WaitForUpdate calls the stubbed function.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL