Documentation ¶
Index ¶
- type Client
- type Config
- type ConfigService
- type MockClient
- func (_m *MockClient) DescribeConfigurationRecorderStatus(ctx context.Context, ...) (*serviceconfigservice.DescribeConfigurationRecorderStatusOutput, error)
- func (_m *MockClient) DescribeConfigurationRecorders(ctx context.Context, ...) (*serviceconfigservice.DescribeConfigurationRecordersOutput, error)
- func (_m *MockClient) EXPECT() *MockClient_Expecter
- type MockClient_DescribeConfigurationRecorderStatus_Call
- func (_c *MockClient_DescribeConfigurationRecorderStatus_Call) Return(_a0 *serviceconfigservice.DescribeConfigurationRecorderStatusOutput, _a1 error) *MockClient_DescribeConfigurationRecorderStatus_Call
- func (_c *MockClient_DescribeConfigurationRecorderStatus_Call) Run(run func(ctx context.Context, ...)) *MockClient_DescribeConfigurationRecorderStatus_Call
- func (_c *MockClient_DescribeConfigurationRecorderStatus_Call) RunAndReturn(...) *MockClient_DescribeConfigurationRecorderStatus_Call
- type MockClient_DescribeConfigurationRecorders_Call
- func (_c *MockClient_DescribeConfigurationRecorders_Call) Return(_a0 *serviceconfigservice.DescribeConfigurationRecordersOutput, _a1 error) *MockClient_DescribeConfigurationRecorders_Call
- func (_c *MockClient_DescribeConfigurationRecorders_Call) Run(run func(ctx context.Context, ...)) *MockClient_DescribeConfigurationRecorders_Call
- func (_c *MockClient_DescribeConfigurationRecorders_Call) RunAndReturn(...) *MockClient_DescribeConfigurationRecorders_Call
- type MockClient_Expecter
- func (_e *MockClient_Expecter) DescribeConfigurationRecorderStatus(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeConfigurationRecorderStatus_Call
- func (_e *MockClient_Expecter) DescribeConfigurationRecorders(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeConfigurationRecorders_Call
- type MockConfigService
- type MockConfigService_DescribeConfigRecorders_Call
- func (_c *MockConfigService_DescribeConfigRecorders_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockConfigService_DescribeConfigRecorders_Call
- func (_c *MockConfigService_DescribeConfigRecorders_Call) Run(run func(ctx context.Context)) *MockConfigService_DescribeConfigRecorders_Call
- func (_c *MockConfigService_DescribeConfigRecorders_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockConfigService_DescribeConfigRecorders_Call
- type MockConfigService_Expecter
- type Provider
- type Recorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { DescribeConfigurationRecorders(ctx context.Context, params *configSDK.DescribeConfigurationRecordersInput, optFns ...func(*configSDK.Options)) (*configSDK.DescribeConfigurationRecordersOutput, error) DescribeConfigurationRecorderStatus(ctx context.Context, params *configSDK.DescribeConfigurationRecorderStatusInput, optFns ...func(*configSDK.Options)) (*configSDK.DescribeConfigurationRecorderStatusOutput, error) }
type Config ¶
type Config struct { // Currently, only one configuration recorder per region is supported but might change in the future, hence the array. Recorders []Recorder `json:"recorders"` // contains filtered or unexported fields }
func (Config) GetResourceArn ¶
func (Config) GetResourceName ¶
func (Config) GetResourceType ¶
type ConfigService ¶
type ConfigService interface {
DescribeConfigRecorders(ctx context.Context) ([]awslib.AwsResource, error)
}
type MockClient ¶
MockClient is an autogenerated mock type for the Client type
func NewMockClient ¶
func NewMockClient(t interface { mock.TestingT Cleanup(func()) }) *MockClient
NewMockClient creates a new instance of MockClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockClient) DescribeConfigurationRecorderStatus ¶
func (_m *MockClient) DescribeConfigurationRecorderStatus(ctx context.Context, params *serviceconfigservice.DescribeConfigurationRecorderStatusInput, optFns ...func(*serviceconfigservice.Options)) (*serviceconfigservice.DescribeConfigurationRecorderStatusOutput, error)
DescribeConfigurationRecorderStatus provides a mock function with given fields: ctx, params, optFns
func (*MockClient) DescribeConfigurationRecorders ¶
func (_m *MockClient) DescribeConfigurationRecorders(ctx context.Context, params *serviceconfigservice.DescribeConfigurationRecordersInput, optFns ...func(*serviceconfigservice.Options)) (*serviceconfigservice.DescribeConfigurationRecordersOutput, error)
DescribeConfigurationRecorders provides a mock function with given fields: ctx, params, optFns
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
type MockClient_DescribeConfigurationRecorderStatus_Call ¶
MockClient_DescribeConfigurationRecorderStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeConfigurationRecorderStatus'
func (*MockClient_DescribeConfigurationRecorderStatus_Call) Run ¶
func (_c *MockClient_DescribeConfigurationRecorderStatus_Call) Run(run func(ctx context.Context, params *serviceconfigservice.DescribeConfigurationRecorderStatusInput, optFns ...func(*serviceconfigservice.Options))) *MockClient_DescribeConfigurationRecorderStatus_Call
func (*MockClient_DescribeConfigurationRecorderStatus_Call) RunAndReturn ¶
func (_c *MockClient_DescribeConfigurationRecorderStatus_Call) RunAndReturn(run func(context.Context, *serviceconfigservice.DescribeConfigurationRecorderStatusInput, ...func(*serviceconfigservice.Options)) (*serviceconfigservice.DescribeConfigurationRecorderStatusOutput, error)) *MockClient_DescribeConfigurationRecorderStatus_Call
type MockClient_DescribeConfigurationRecorders_Call ¶
MockClient_DescribeConfigurationRecorders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeConfigurationRecorders'
func (*MockClient_DescribeConfigurationRecorders_Call) Run ¶
func (_c *MockClient_DescribeConfigurationRecorders_Call) Run(run func(ctx context.Context, params *serviceconfigservice.DescribeConfigurationRecordersInput, optFns ...func(*serviceconfigservice.Options))) *MockClient_DescribeConfigurationRecorders_Call
func (*MockClient_DescribeConfigurationRecorders_Call) RunAndReturn ¶
func (_c *MockClient_DescribeConfigurationRecorders_Call) RunAndReturn(run func(context.Context, *serviceconfigservice.DescribeConfigurationRecordersInput, ...func(*serviceconfigservice.Options)) (*serviceconfigservice.DescribeConfigurationRecordersOutput, error)) *MockClient_DescribeConfigurationRecorders_Call
type MockClient_Expecter ¶
type MockClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClient_Expecter) DescribeConfigurationRecorderStatus ¶
func (_e *MockClient_Expecter) DescribeConfigurationRecorderStatus(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeConfigurationRecorderStatus_Call
DescribeConfigurationRecorderStatus is a helper method to define mock.On call
- ctx context.Context
- params *serviceconfigservice.DescribeConfigurationRecorderStatusInput
- optFns ...func(*serviceconfigservice.Options)
func (*MockClient_Expecter) DescribeConfigurationRecorders ¶
func (_e *MockClient_Expecter) DescribeConfigurationRecorders(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeConfigurationRecorders_Call
DescribeConfigurationRecorders is a helper method to define mock.On call
- ctx context.Context
- params *serviceconfigservice.DescribeConfigurationRecordersInput
- optFns ...func(*serviceconfigservice.Options)
type MockConfigService ¶
MockConfigService is an autogenerated mock type for the ConfigService type
func NewMockConfigService ¶
func NewMockConfigService(t interface { mock.TestingT Cleanup(func()) }) *MockConfigService
NewMockConfigService creates a new instance of MockConfigService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockConfigService) DescribeConfigRecorders ¶
func (_m *MockConfigService) DescribeConfigRecorders(ctx context.Context) ([]awslib.AwsResource, error)
DescribeConfigRecorders provides a mock function with given fields: ctx
func (*MockConfigService) EXPECT ¶
func (_m *MockConfigService) EXPECT() *MockConfigService_Expecter
type MockConfigService_DescribeConfigRecorders_Call ¶
MockConfigService_DescribeConfigRecorders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeConfigRecorders'
func (*MockConfigService_DescribeConfigRecorders_Call) Return ¶
func (_c *MockConfigService_DescribeConfigRecorders_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockConfigService_DescribeConfigRecorders_Call
func (*MockConfigService_DescribeConfigRecorders_Call) Run ¶
func (_c *MockConfigService_DescribeConfigRecorders_Call) Run(run func(ctx context.Context)) *MockConfigService_DescribeConfigRecorders_Call
func (*MockConfigService_DescribeConfigRecorders_Call) RunAndReturn ¶
func (_c *MockConfigService_DescribeConfigRecorders_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockConfigService_DescribeConfigRecorders_Call
type MockConfigService_Expecter ¶
type MockConfigService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockConfigService_Expecter) DescribeConfigRecorders ¶
func (_e *MockConfigService_Expecter) DescribeConfigRecorders(ctx interface{}) *MockConfigService_DescribeConfigRecorders_Call
DescribeConfigRecorders is a helper method to define mock.On call
- ctx context.Context
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func (*Provider) DescribeConfigRecorders ¶
type Recorder ¶
type Recorder struct { types.ConfigurationRecorder Status []types.ConfigurationRecorderStatus `json:"statuses"` }