Documentation ¶
Index ¶
- type Client
- type CloudwatchLogs
- type MockClient
- type MockClient_DescribeMetricFilters_Call
- func (_c *MockClient_DescribeMetricFilters_Call) Return(_a0 *cloudwatchlogs.DescribeMetricFiltersOutput, _a1 error) *MockClient_DescribeMetricFilters_Call
- func (_c *MockClient_DescribeMetricFilters_Call) Run(...) *MockClient_DescribeMetricFilters_Call
- func (_c *MockClient_DescribeMetricFilters_Call) RunAndReturn(...) *MockClient_DescribeMetricFilters_Call
- type MockClient_Expecter
- type MockCloudwatchLogs
- type MockCloudwatchLogs_DescribeMetricFilters_Call
- func (_c *MockCloudwatchLogs_DescribeMetricFilters_Call) Return(_a0 []types.MetricFilter, _a1 error) *MockCloudwatchLogs_DescribeMetricFilters_Call
- func (_c *MockCloudwatchLogs_DescribeMetricFilters_Call) Run(run func(ctx context.Context, region *string, logGroup string)) *MockCloudwatchLogs_DescribeMetricFilters_Call
- func (_c *MockCloudwatchLogs_DescribeMetricFilters_Call) RunAndReturn(run func(context.Context, *string, string) ([]types.MetricFilter, error)) *MockCloudwatchLogs_DescribeMetricFilters_Call
- type MockCloudwatchLogs_Expecter
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
DescribeMetricFilters(ctx context.Context, params *cloudwatchlogs.DescribeMetricFiltersInput, optFns ...func(*cloudwatchlogs.Options)) (*cloudwatchlogs.DescribeMetricFiltersOutput, error)
}
type CloudwatchLogs ¶
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) DescribeMetricFilters ¶
func (_m *MockClient) DescribeMetricFilters(ctx context.Context, params *cloudwatchlogs.DescribeMetricFiltersInput, optFns ...func(*cloudwatchlogs.Options)) (*cloudwatchlogs.DescribeMetricFiltersOutput, error)
DescribeMetricFilters provides a mock function with given fields: ctx, params, optFns
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
type MockClient_DescribeMetricFilters_Call ¶
MockClient_DescribeMetricFilters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeMetricFilters'
func (*MockClient_DescribeMetricFilters_Call) Return ¶
func (_c *MockClient_DescribeMetricFilters_Call) Return(_a0 *cloudwatchlogs.DescribeMetricFiltersOutput, _a1 error) *MockClient_DescribeMetricFilters_Call
func (*MockClient_DescribeMetricFilters_Call) Run ¶
func (_c *MockClient_DescribeMetricFilters_Call) Run(run func(ctx context.Context, params *cloudwatchlogs.DescribeMetricFiltersInput, optFns ...func(*cloudwatchlogs.Options))) *MockClient_DescribeMetricFilters_Call
func (*MockClient_DescribeMetricFilters_Call) RunAndReturn ¶
func (_c *MockClient_DescribeMetricFilters_Call) RunAndReturn(run func(context.Context, *cloudwatchlogs.DescribeMetricFiltersInput, ...func(*cloudwatchlogs.Options)) (*cloudwatchlogs.DescribeMetricFiltersOutput, error)) *MockClient_DescribeMetricFilters_Call
type MockClient_Expecter ¶
type MockClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClient_Expecter) DescribeMetricFilters ¶
func (_e *MockClient_Expecter) DescribeMetricFilters(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeMetricFilters_Call
DescribeMetricFilters is a helper method to define mock.On call
- ctx context.Context
- params *cloudwatchlogs.DescribeMetricFiltersInput
- optFns ...func(*cloudwatchlogs.Options)
type MockCloudwatchLogs ¶
MockCloudwatchLogs is an autogenerated mock type for the CloudwatchLogs type
func NewMockCloudwatchLogs ¶
func NewMockCloudwatchLogs(t interface { mock.TestingT Cleanup(func()) }) *MockCloudwatchLogs
NewMockCloudwatchLogs creates a new instance of MockCloudwatchLogs. 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 (*MockCloudwatchLogs) DescribeMetricFilters ¶
func (_m *MockCloudwatchLogs) DescribeMetricFilters(ctx context.Context, region *string, logGroup string) ([]types.MetricFilter, error)
DescribeMetricFilters provides a mock function with given fields: ctx, region, logGroup
func (*MockCloudwatchLogs) EXPECT ¶
func (_m *MockCloudwatchLogs) EXPECT() *MockCloudwatchLogs_Expecter
type MockCloudwatchLogs_DescribeMetricFilters_Call ¶
MockCloudwatchLogs_DescribeMetricFilters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeMetricFilters'
func (*MockCloudwatchLogs_DescribeMetricFilters_Call) Return ¶
func (_c *MockCloudwatchLogs_DescribeMetricFilters_Call) Return(_a0 []types.MetricFilter, _a1 error) *MockCloudwatchLogs_DescribeMetricFilters_Call
func (*MockCloudwatchLogs_DescribeMetricFilters_Call) Run ¶
func (_c *MockCloudwatchLogs_DescribeMetricFilters_Call) Run(run func(ctx context.Context, region *string, logGroup string)) *MockCloudwatchLogs_DescribeMetricFilters_Call
func (*MockCloudwatchLogs_DescribeMetricFilters_Call) RunAndReturn ¶
func (_c *MockCloudwatchLogs_DescribeMetricFilters_Call) RunAndReturn(run func(context.Context, *string, string) ([]types.MetricFilter, error)) *MockCloudwatchLogs_DescribeMetricFilters_Call
type MockCloudwatchLogs_Expecter ¶
type MockCloudwatchLogs_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCloudwatchLogs_Expecter) DescribeMetricFilters ¶
func (_e *MockCloudwatchLogs_Expecter) DescribeMetricFilters(ctx interface{}, region interface{}, logGroup interface{}) *MockCloudwatchLogs_DescribeMetricFilters_Call
DescribeMetricFilters is a helper method to define mock.On call
- ctx context.Context
- region *string
- logGroup string
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}