Documentation ¶
Overview ¶
Package bus provides testing for *cloudwatchevents.EventBus objects
Index ¶
- type Bus
- func (r *Bus) Arn(arn string) *Bus
- func (r *Bus) Assert(t *testing.T, buses ...*cloudwatchevents.EventBus) *Bus
- func (r *Bus) Filter(filter shared.Filter) *Bus
- func (r *Bus) First(t *testing.T, buses ...*cloudwatchevents.EventBus) *Bus
- func (r *Bus) Name(name string) *Bus
- func (r *Bus) Policy() *policy.Policy
- func (r *Bus) Selected() *cloudwatchevents.EventBus
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 (*Bus) Arn ¶
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 ¶
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) First ¶
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 ¶
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) Selected ¶
func (r *Bus) Selected() *cloudwatchevents.EventBus
Selected returns the currently selected *cloudwatchevents.EventBus