Documentation ¶
Overview ¶
Package group contains the necessary properties for testing *cloudwatchlogs.group objects
Index ¶
- type Group
- func (r *Group) Arn(arn string) *Group
- func (r *Group) Assert(t *testing.T, groups ...*cloudwatchlogs.LogGroup) *Group
- func (r *Group) Filter(filter shared.Filter) *Group
- func (r *Group) First(t *testing.T, groups ...*cloudwatchlogs.LogGroup) *Group
- func (r *Group) KmsKeyID(id string) *Group
- func (r *Group) LogGroupName(name string) *Group
- func (r *Group) Name(name string) *Group
- func (r *Group) RetentionInDays(days int64) *Group
- func (r *Group) Selected() *cloudwatchlogs.LogGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group contains the necessary properties for testing *cloudwatchlogs.LogGroup objects
func (*Group) Arn ¶
Arn adds the Arn filter to the filter list the Arn filter: filters groups by Arn where 'arn' provided is the expected Arn value
func (*Group) 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 group if groups is not provided, *cloudwatchlogs.LogGroup objects will be retreived from AWS
func (*Group) 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 groups is not provided, *cloudwatchlogs.LogGroup objects will be retreived from AWS
func (*Group) KmsKeyID ¶
KmsKeyID adds the KmsKeyID filter to the filter list the KmsKeyID filter: filters groups by KmsKeyId where 'id' provided is the expected KmsKeyId value
func (*Group) LogGroupName ¶
LogGroupName adds the LogGroupName filter to the filter list the LogGroupName filter: filters groups by LogGroupName where 'name' provided is the expected LogGroupName value
func (*Group) RetentionInDays ¶
RetentionInDays adds the RetentionInDays filter to the filter list the RetentionInDays filter: filters groups by RetentionInDays where 'name' provided is the expected RetentionInDays value
func (*Group) Selected ¶
func (r *Group) Selected() *cloudwatchlogs.LogGroup
Selected returns the currently selected *cloudwatchlogs.LogGroup