recorder

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

Documentation

Overview

Package recorder provides the ability to filter *configservice.ConfigurationRecorder objects

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

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

Recorder contains the necessary properties for testing *configservice.ConfigurationRecorder objects

func New

func New(client client.ConfigProvider) *Recorder

New returns a new *Recorder

func (*Recorder) AllSupported

func (r *Recorder) AllSupported(enabled bool) *Recorder

AllSupported adds the AllSupported filter to the filter list the AllSupported filter: filters recorders by AllSupported where 'enabled' provided is the expected AllSupported value

func (*Recorder) Assert

func (r *Recorder) Assert(t *testing.T, recorders ...*configservice.ConfigurationRecorder) *Recorder

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 recorder if recorders is not provided, *configservice.ConfigurationRecorder objects will be retreived from AWS

func (*Recorder) Filter

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

Filter adds the 'filter' provided to the filter list

func (*Recorder) First

func (r *Recorder) First(t *testing.T, recorders ...*configservice.ConfigurationRecorder) *Recorder

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 recorders is not provided, *configservice.ConfigurationRecorder objects will be retreived from AWS

func (*Recorder) IncludeGlobalResourceTypes

func (r *Recorder) IncludeGlobalResourceTypes(enabled bool) *Recorder

IncludeGlobalResourceTypes adds the IncludeGlobalResourceTypes filter to the filter list the IncludeGlobalResourceTypes filter: filters recorders by IncludeGlobalResourceTypes where 'enabled' provided is the expected IncludeGlobalResourceTypes value

func (*Recorder) Name

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

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

func (*Recorder) Recording

func (r *Recorder) Recording(t *testing.T,
	statuses ...*configservice.ConfigurationRecorderStatus) bool

Recording returns the RecorderStatus.Recording value of the selected recorder

func (*Recorder) ResourceTypes

func (r *Recorder) ResourceTypes(types ...string) *Recorder

ResourceTypes adds the ResourceTypes filter to the filter list the ResourceTypes filter: filters recorders by ResourceTypes where 'types' provided is the expected ResourceTypes value slice

func (*Recorder) RoleArn

func (r *Recorder) RoleArn(arn string) *Recorder

RoleArn adds the RoleArn filter to the filter list the RoleArn filter: filters recorders by RoleArn where 'arn' provided is the expected RoleARN value

func (*Recorder) Selected

Selected returns the currently selected *configservice.ConfigurationRecorder

Jump to

Keyboard shortcuts

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