Documentation ¶
Index ¶
- type Client
- type Cloudwatch
- type MockClient
- type MockClient_DescribeAlarms_Call
- func (_c *MockClient_DescribeAlarms_Call) Return(_a0 *servicecloudwatch.DescribeAlarmsOutput, _a1 error) *MockClient_DescribeAlarms_Call
- func (_c *MockClient_DescribeAlarms_Call) Run(...) *MockClient_DescribeAlarms_Call
- func (_c *MockClient_DescribeAlarms_Call) RunAndReturn(...) *MockClient_DescribeAlarms_Call
- type MockClient_Expecter
- type MockCloudwatch
- type MockCloudwatch_DescribeAlarms_Call
- func (_c *MockCloudwatch_DescribeAlarms_Call) Return(_a0 []types.MetricAlarm, _a1 error) *MockCloudwatch_DescribeAlarms_Call
- func (_c *MockCloudwatch_DescribeAlarms_Call) Run(run func(ctx context.Context, region *string, filters []string)) *MockCloudwatch_DescribeAlarms_Call
- func (_c *MockCloudwatch_DescribeAlarms_Call) RunAndReturn(run func(context.Context, *string, []string) ([]types.MetricAlarm, error)) *MockCloudwatch_DescribeAlarms_Call
- type MockCloudwatch_Expecter
- type Provider
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 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) DescribeAlarms ¶
func (_m *MockClient) DescribeAlarms(ctx context.Context, params *servicecloudwatch.DescribeAlarmsInput, optFns ...func(*servicecloudwatch.Options)) (*servicecloudwatch.DescribeAlarmsOutput, error)
DescribeAlarms provides a mock function with given fields: ctx, params, optFns
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
type MockClient_DescribeAlarms_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 (_c *MockClient_DescribeAlarms_Call) Return(_a0 *servicecloudwatch.DescribeAlarmsOutput, _a1 error) *MockClient_DescribeAlarms_Call
func (*MockClient_DescribeAlarms_Call) Run ¶
func (_c *MockClient_DescribeAlarms_Call) Run(run func(ctx context.Context, params *servicecloudwatch.DescribeAlarmsInput, optFns ...func(*servicecloudwatch.Options))) *MockClient_DescribeAlarms_Call
func (*MockClient_DescribeAlarms_Call) RunAndReturn ¶
func (_c *MockClient_DescribeAlarms_Call) RunAndReturn(run func(context.Context, *servicecloudwatch.DescribeAlarmsInput, ...func(*servicecloudwatch.Options)) (*servicecloudwatch.DescribeAlarmsOutput, error)) *MockClient_DescribeAlarms_Call
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 ¶
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 ¶
func (_m *MockCloudwatch) EXPECT() *MockCloudwatch_Expecter
type MockCloudwatch_DescribeAlarms_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 (_c *MockCloudwatch_DescribeAlarms_Call) Return(_a0 []types.MetricAlarm, _a1 error) *MockCloudwatch_DescribeAlarms_Call
func (*MockCloudwatch_DescribeAlarms_Call) Run ¶
func (_c *MockCloudwatch_DescribeAlarms_Call) Run(run func(ctx context.Context, region *string, filters []string)) *MockCloudwatch_DescribeAlarms_Call
func (*MockCloudwatch_DescribeAlarms_Call) RunAndReturn ¶
func (_c *MockCloudwatch_DescribeAlarms_Call) RunAndReturn(run func(context.Context, *string, []string) ([]types.MetricAlarm, error)) *MockCloudwatch_DescribeAlarms_Call
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
}