rule

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

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

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

func New

func New(client client.ConfigProvider) *Rule

New returns a new *Rule

func (*Rule) Arn

func (r *Rule) Arn(arn string) *Rule

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

func (*Rule) Assert

func (r *Rule) Assert(t *testing.T, rules ...*cloudwatchevents.Rule) *Rule

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 rule if rules is not provided, *cloudwatchevents.Rule objects will be retreived from AWS

func (*Rule) Filter

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

Filter adds the 'filter' provided to the filter list

func (*Rule) First

func (r *Rule) First(t *testing.T, rules ...*cloudwatchevents.Rule) *Rule

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

func (*Rule) ManagedBy

func (r *Rule) ManagedBy(name string) *Rule

ManagedBy adds the ManagedBy filter to the filter list the ManagedBy filter: filters rules by ManagedBy where 'name' provided is the expected ManagedBy value

func (*Rule) Name

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

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

func (*Rule) RoleArn

func (r *Rule) RoleArn(arn string) *Rule

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

func (*Rule) SchedExpr

func (r *Rule) SchedExpr(expr string) *Rule

SchedExpr adds the SchedExpr filter to the filter list the SchedExpr filter: filters rules by SchedExpr where 'expr' provided is the expected ScheduleExpression value

func (*Rule) Selected

func (r *Rule) Selected() *cloudwatchevents.Rule

Selected returns the currently selected *cloudwatchevents.Rule

func (*Rule) State

func (r *Rule) State(state string) *Rule

State adds the State filter to the filter list the State filter: filters rules by State where 'state' provided is the expected State value

func (*Rule) Target

func (r *Rule) Target() *target.Target

Target returns a new *target.Target

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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