stack

package
v0.0.5-0...-3bd4ab3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Overview

Package stack contains the necessary properties for testing *cloudformation.Stack objects

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stack

type Stack struct {
	// contains filtered or unexported fields
}

Stack contains the necessary properties for testing *cloudformation.Stack objects

func New

func New(client client.ConfigProvider) *Stack

New returns a new *Stack

func (*Stack) Assert

func (r *Stack) Assert(t *testing.T, stacks ...*cloudformation.Stack) *Stack

Assert applies all filters that have been called, resets the list of filters, fails the test if there is not exactly one match, and stores the matched stack if stacks is not provided, *cloudformation.Stack objects will be retreived from AWS

func (*Stack) ChangeSetID

func (r *Stack) ChangeSetID(id string) *Stack

ChangeSetID adds the ChangeSetID filter to the filter list the ChangeSetId filter: filters stacks by ChangeSetId where 'id' provided is the expected ChangeSetId value

func (*Stack) Description

func (r *Stack) Description(desc string) *Stack

Description adds the Description filter to the filter list the Description filter: filters stacks by Description where 'desc' provided is the expected Description value

func (*Stack) Filter

func (r *Stack) Filter(filter shared.Filter) *Stack

Filter adds the 'filter' provided to the filter list

func (*Stack) First

func (r *Stack) First(t *testing.T, stacks ...*cloudformation.Stack) *Stack

First applies all filters that have been called, resets the list of filters, fails the test if there are no matches, and stores the first match if stacks is not provided, *cloudformation.Stack objects will be retreived from AWS

func (*Stack) Name

func (r *Stack) Name(name string) *Stack

Name adds the Name filter to the filter list the Name filter: filters stacks by Name where 'name' provided is the expected StackName value

func (*Stack) ParentID

func (r *Stack) ParentID(id string) *Stack

ParentID adds the ParentID filter to the filter list the ParentId filter: filters stacks by ParentId where 'id' provided is the expected ParentId value

func (*Stack) RoleARN

func (r *Stack) RoleARN(arn string) *Stack

RoleARN adds the RoleARN filter to the filter list the RoleARN filter: filters stacks by RoleARN where 'arn' provided is the expected RoleARN value

func (*Stack) RootID

func (r *Stack) RootID(id string) *Stack

RootID adds the RootID filter to the filter list the RootId filter: filters stacks by RootId where 'id' provided is the expected RootId value

func (*Stack) Selected

func (r *Stack) Selected() *cloudformation.Stack

Selected returns the currently selected *cloudformation.Stack

func (*Stack) StackID

func (r *Stack) StackID(id string) *Stack

StackID adds the StackID filter to the filter list the StackId filter: filters stacks by StackId where 'id' provided is the expected StackId value

func (*Stack) StackStatus

func (r *Stack) StackStatus(status string) *Stack

StackStatus adds the StackStatus filter to the filter list the StackStatus filter: filters stacks by StackStatus where 'status' provided is the expected StackStatus value

Jump to

Keyboard shortcuts

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