Documentation ¶
Overview ¶
Package recorder provides the ability to filter *configservice.ConfigurationRecorder objects
Index ¶
- type Recorder
- func (r *Recorder) AllSupported(enabled bool) *Recorder
- func (r *Recorder) Assert(t *testing.T, recorders ...*configservice.ConfigurationRecorder) *Recorder
- func (r *Recorder) Filter(filter shared.Filter) *Recorder
- func (r *Recorder) First(t *testing.T, recorders ...*configservice.ConfigurationRecorder) *Recorder
- func (r *Recorder) IncludeGlobalResourceTypes(enabled bool) *Recorder
- func (r *Recorder) Name(name string) *Recorder
- func (r *Recorder) Recording(t *testing.T, statuses ...*configservice.ConfigurationRecorderStatus) bool
- func (r *Recorder) ResourceTypes(types ...string) *Recorder
- func (r *Recorder) RoleArn(arn string) *Recorder
- func (r *Recorder) Selected() *configservice.ConfigurationRecorder
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 (*Recorder) AllSupported ¶
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) 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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (r *Recorder) Selected() *configservice.ConfigurationRecorder
Selected returns the currently selected *configservice.ConfigurationRecorder