cloudwatch

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 {
	DescribeAlarms(ctx context.Context, params *cloudwatch.DescribeAlarmsInput, optFns ...func(*cloudwatch.Options)) (*cloudwatch.DescribeAlarmsOutput, error)
}

type Cloudwatch

type Cloudwatch interface {
	DescribeAlarms(ctx context.Context, region *string, filters []string) ([]types.MetricAlarm, 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) DescribeAlarms

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

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *MockClient_Expecter

type MockClient_DescribeAlarms_Call

type MockClient_DescribeAlarms_Call struct {
	*mock.Call
}

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

func (*MockClient_DescribeAlarms_Call) Return

func (*MockClient_DescribeAlarms_Call) Run

type MockClient_Expecter

type MockClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockClient_Expecter) DescribeAlarms

func (_e *MockClient_Expecter) DescribeAlarms(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeAlarms_Call

DescribeAlarms is a helper method to define mock.On call

  • ctx context.Context
  • params *servicecloudwatch.DescribeAlarmsInput
  • optFns ...func(*servicecloudwatch.Options)

type MockCloudwatch

type MockCloudwatch struct {
	mock.Mock
}

MockCloudwatch is an autogenerated mock type for the Cloudwatch type

func NewMockCloudwatch

func NewMockCloudwatch(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCloudwatch

NewMockCloudwatch creates a new instance of MockCloudwatch. 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 (*MockCloudwatch) DescribeAlarms

func (_m *MockCloudwatch) DescribeAlarms(ctx context.Context, region *string, filters []string) ([]types.MetricAlarm, error)

DescribeAlarms provides a mock function with given fields: ctx, region, filters

func (*MockCloudwatch) EXPECT

type MockCloudwatch_DescribeAlarms_Call

type MockCloudwatch_DescribeAlarms_Call struct {
	*mock.Call
}

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

func (*MockCloudwatch_DescribeAlarms_Call) Return

func (*MockCloudwatch_DescribeAlarms_Call) Run

func (*MockCloudwatch_DescribeAlarms_Call) RunAndReturn

type MockCloudwatch_Expecter

type MockCloudwatch_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockCloudwatch_Expecter) DescribeAlarms

func (_e *MockCloudwatch_Expecter) DescribeAlarms(ctx interface{}, region interface{}, filters interface{}) *MockCloudwatch_DescribeAlarms_Call

DescribeAlarms is a helper method to define mock.On call

  • ctx context.Context
  • region *string
  • filters []string

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

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

func (*Provider) DescribeAlarms

func (p *Provider) DescribeAlarms(ctx context.Context, region *string, filters []string) ([]types.MetricAlarm, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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