bus

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

Overview

Package bus provides testing for *cloudwatchevents.EventBus objects

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bus

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

Bus contains the necessary properties for testing *cloudwatchevents.EventBus objects

func New

func New(client client.ConfigProvider) *Bus

New returns a new *Bus

func (*Bus) Arn

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

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

func (*Bus) Assert

func (r *Bus) Assert(t *testing.T, buses ...*cloudwatchevents.EventBus) *Bus

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 bus if buses is not provided, *cloudwatchevents.EventBus objects will be retreived from AWS

func (*Bus) Filter

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

Filter adds the 'filter' provided to the filter list

func (*Bus) First

func (r *Bus) First(t *testing.T, buses ...*cloudwatchevents.EventBus) *Bus

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

func (*Bus) Name

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

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

func (*Bus) Policy

func (r *Bus) Policy() *policy.Policy

Policy returns a new *policy.Policy

func (*Bus) Selected

func (r *Bus) Selected() *cloudwatchevents.EventBus

Selected returns the currently selected *cloudwatchevents.EventBus

Directories

Path Synopsis
Package policy provides testing for Cloudwatch Event Bus permissions policies
Package policy provides testing for Cloudwatch Event Bus permissions policies

Jump to

Keyboard shortcuts

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