target

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Target

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

Target contains the necessary properties for testing *cloudwatchevents.Target objects

func New

func New(client client.ConfigProvider, rule *cloudwatchevents.Rule) *Target

New returns a new *Target

func (*Target) Arn

func (g *Target) Arn(arn string) *Target

Arn adds the Arn filter to the filter list the Arn filter: filters targets by Arn where 'arn' provided is the expected Arn value

func (*Target) Assert

func (g *Target) Assert(t *testing.T, targets ...*cloudwatchevents.Target) *Target

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 target if targets is not provided, *cloudwatchevents.Target objects will be retreived from AWS

func (*Target) Filter

func (g *Target) Filter(filter shared.Filter) *Target

Filter adds the 'filter' provided to the filter list

func (*Target) First

func (g *Target) First(t *testing.T, targets ...*cloudwatchevents.Target) *Target

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 targets is not provided, *cloudwatchevents.Target objects will be retreived from AWS

func (*Target) ID

func (g *Target) ID(id string) *Target

ID adds the ID filter to the filter list the ID filter: filters targets by ID where 'id' provided is the expected Id value

func (*Target) RoleArn

func (g *Target) RoleArn(arn string) *Target

RoleArn adds the RoleArn filter to the filter list the RoleArn filter: filters targets by RoleArn where 'arn' provided is the expected RoleArn value

func (*Target) Selected

func (g *Target) Selected() *cloudwatchevents.Target

Selected returns the currently selected *cloudwatchevents.Target

Jump to

Keyboard shortcuts

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