logs

package
v0.0.0-...-19bd712 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 7 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 {
	DescribeMetricFilters(ctx context.Context, params *cloudwatchlogs.DescribeMetricFiltersInput, optFns ...func(*cloudwatchlogs.Options)) (*cloudwatchlogs.DescribeMetricFiltersOutput, error)
}

type CloudwatchLogs

type CloudwatchLogs interface {
	DescribeMetricFilters(ctx context.Context, region *string, logGroup string) ([]types.MetricFilter, 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) DescribeMetricFilters

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

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *MockClient_Expecter

type MockClient_DescribeMetricFilters_Call

type MockClient_DescribeMetricFilters_Call struct {
	*mock.Call
}

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

func (*MockClient_DescribeMetricFilters_Call) Run

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

type MockCloudwatchLogs struct {
	mock.Mock
}

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

type MockCloudwatchLogs_DescribeMetricFilters_Call

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

func (*MockCloudwatchLogs_DescribeMetricFilters_Call) RunAndReturn

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
}

func NewCloudwatchLogsProvider

func NewCloudwatchLogsProvider(log *logp.Logger, cfg aws.Config, factory awslib.CrossRegionFactory[Client]) *Provider

func (*Provider) DescribeMetricFilters

func (p *Provider) DescribeMetricFilters(ctx context.Context, region *string, logGroup string) ([]types.MetricFilter, error)

Jump to

Keyboard shortcuts

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