Documentation ¶
Overview ¶
Package deliverychannel provides the ability to filter *configservice.DeliveryChannel objects
Index ¶
- type DeliveryChannel
- func (d *DeliveryChannel) Assert(t *testing.T, channels ...*configservice.DeliveryChannel) *DeliveryChannel
- func (d *DeliveryChannel) BucketKeyPrefix(prefix string) *DeliveryChannel
- func (d *DeliveryChannel) BucketName(name string) *DeliveryChannel
- func (d *DeliveryChannel) Filter(filter shared.Filter) *DeliveryChannel
- func (d *DeliveryChannel) First(t *testing.T, channels ...*configservice.DeliveryChannel) *DeliveryChannel
- func (d *DeliveryChannel) Frequency(freq string) *DeliveryChannel
- func (d *DeliveryChannel) Name(name string) *DeliveryChannel
- func (d *DeliveryChannel) Selected() *configservice.DeliveryChannel
- func (d *DeliveryChannel) TopicArn(arn string) *DeliveryChannel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeliveryChannel ¶
type DeliveryChannel struct {
// contains filtered or unexported fields
}
DeliveryChannel contains the necessary properties for testing *configservice.DeliveryChannel objects
func New ¶
func New(client client.ConfigProvider) *DeliveryChannel
New returns a new *DeliveryChannel
func (*DeliveryChannel) Assert ¶
func (d *DeliveryChannel) Assert(t *testing.T, channels ...*configservice.DeliveryChannel) *DeliveryChannel
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 channel if channels is not provided, *configservice.DeliveryChannel objects will be retreived from AWS
func (*DeliveryChannel) BucketKeyPrefix ¶
func (d *DeliveryChannel) BucketKeyPrefix(prefix string) *DeliveryChannel
BucketKeyPrefix adds the BucketKeyPrefix filter to the filter list the BucketKeyPrefix filter: filters channels by BucketKeyPrefix where 'prefix' provided is the expected S3KeyPrefix value
func (*DeliveryChannel) BucketName ¶
func (d *DeliveryChannel) BucketName(name string) *DeliveryChannel
BucketName adds the BucketName filter to the filter list the BucketName filter: filters channels by BucketName where 'name' provided is the expected S3BucketName value
func (*DeliveryChannel) Filter ¶
func (d *DeliveryChannel) Filter(filter shared.Filter) *DeliveryChannel
Filter adds the 'filter' provided to the filter list
func (*DeliveryChannel) First ¶
func (d *DeliveryChannel) First(t *testing.T, channels ...*configservice.DeliveryChannel) *DeliveryChannel
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 channels is not provided, *configservice.DeliveryChannel objects will be retreived from AWS
func (*DeliveryChannel) Frequency ¶
func (d *DeliveryChannel) Frequency(freq string) *DeliveryChannel
Frequency adds the Frequency filter to the filter list the Frequency filter: filters channels by Frequency where 'freq' provided is the expected DeliveryFrequency value
func (*DeliveryChannel) Name ¶
func (d *DeliveryChannel) Name(name string) *DeliveryChannel
Name adds the Name filter to the filter list the Name filter: filters channels by Name where 'name' provided is the expected Name value
func (*DeliveryChannel) Selected ¶
func (d *DeliveryChannel) Selected() *configservice.DeliveryChannel
Selected returns the currently selected *configservice.DeliveryChannel
func (*DeliveryChannel) TopicArn ¶
func (d *DeliveryChannel) TopicArn(arn string) *DeliveryChannel
TopicArn adds the TopicArn filter to the filter list the TopicArn filter: filters channels by TopicArn where 'arn' provided is the expected TopicARN value