configservice

package
v0.0.0-...-fb54fd9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

func (c Config) GetRegion() string

func (Config) GetResourceArn

func (c Config) GetResourceArn() string

func (Config) GetResourceName

func (c Config) GetResourceName() string

func (Config) GetResourceType

func (c Config) GetResourceType() string

type ConfigService

type ConfigService interface {
	DescribeConfigRecorders(ctx context.Context) ([]awslib.AwsResource, error)
}

type MockClient

type MockClient struct {
	mock.Mock
}

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

DescribeConfigurationRecorderStatus provides a mock function with given fields: ctx, params, optFns

func (*MockClient) DescribeConfigurationRecorders

DescribeConfigurationRecorders provides a mock function with given fields: ctx, params, optFns

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *MockClient_Expecter

type MockClient_DescribeConfigurationRecorderStatus_Call

type MockClient_DescribeConfigurationRecorderStatus_Call struct {
	*mock.Call
}

MockClient_DescribeConfigurationRecorderStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeConfigurationRecorderStatus'

type MockClient_DescribeConfigurationRecorders_Call

type MockClient_DescribeConfigurationRecorders_Call struct {
	*mock.Call
}

MockClient_DescribeConfigurationRecorders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeConfigurationRecorders'

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

type MockConfigService struct {
	mock.Mock
}

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

type MockConfigService_DescribeConfigRecorders_Call

type MockConfigService_DescribeConfigRecorders_Call struct {
	*mock.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 (*MockConfigService_DescribeConfigRecorders_Call) Run

func (*MockConfigService_DescribeConfigRecorders_Call) RunAndReturn

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 NewProvider(log *logp.Logger, cfg aws.Config, factory awslib.CrossRegionFactory[Client], accountId string) *Provider

func (*Provider) DescribeConfigRecorders

func (p *Provider) DescribeConfigRecorders(ctx context.Context) ([]awslib.AwsResource, error)

type Recorder

type Recorder struct {
	types.ConfigurationRecorder
	Status []types.ConfigurationRecorderStatus `json:"statuses"`
}

Jump to

Keyboard shortcuts

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