group

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

Documentation

Overview

Package group contains the necessary properties for testing *cloudwatchlogs.group objects

Index

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 New

func New(client client.ConfigProvider) *Group

New returns a new *Group

func (*Group) Arn

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

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

func (r *Group) Assert(t *testing.T, groups ...*cloudwatchlogs.LogGroup) *Group

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) Filter

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

Filter adds the 'filter' provided to the filter list

func (*Group) First

func (r *Group) First(t *testing.T, groups ...*cloudwatchlogs.LogGroup) *Group

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

func (r *Group) KmsKeyID(id string) *Group

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

func (r *Group) LogGroupName(name string) *Group

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) Name

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

Name adds the Name filter as an alias to the LogGroupName filter

func (*Group) RetentionInDays

func (r *Group) RetentionInDays(days int64) *Group

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

Jump to

Keyboard shortcuts

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