Documentation ¶
Index ¶
- type Client
- func (_m *Client) EXPECT() *Client_Expecter
- func (_m *Client) GetMetricData(ctx context.Context, params *cloudwatch.GetMetricDataInput, ...) (*cloudwatch.GetMetricDataOutput, error)
- func (_m *Client) PutMetricData(ctx context.Context, params *cloudwatch.PutMetricDataInput, ...) (*cloudwatch.PutMetricDataOutput, error)
- type Client_Expecter
- type Client_GetMetricData_Call
- func (_c *Client_GetMetricData_Call) Return(_a0 *cloudwatch.GetMetricDataOutput, _a1 error) *Client_GetMetricData_Call
- func (_c *Client_GetMetricData_Call) Run(run func(ctx context.Context, params *cloudwatch.GetMetricDataInput, ...)) *Client_GetMetricData_Call
- func (_c *Client_GetMetricData_Call) RunAndReturn(...) *Client_GetMetricData_Call
- type Client_PutMetricData_Call
- func (_c *Client_PutMetricData_Call) Return(_a0 *cloudwatch.PutMetricDataOutput, _a1 error) *Client_PutMetricData_Call
- func (_c *Client_PutMetricData_Call) Run(run func(ctx context.Context, params *cloudwatch.PutMetricDataInput, ...)) *Client_PutMetricData_Call
- func (_c *Client_PutMetricData_Call) RunAndReturn(...) *Client_PutMetricData_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
func NewClient(t mockConstructorTestingTNewClient) *Client
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Client) EXPECT ¶
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) GetMetricData ¶
func (_m *Client) GetMetricData(ctx context.Context, params *cloudwatch.GetMetricDataInput, optFns ...func(*cloudwatch.Options)) (*cloudwatch.GetMetricDataOutput, error)
GetMetricData provides a mock function with given fields: ctx, params, optFns
func (*Client) PutMetricData ¶
func (_m *Client) PutMetricData(ctx context.Context, params *cloudwatch.PutMetricDataInput, optFns ...func(*cloudwatch.Options)) (*cloudwatch.PutMetricDataOutput, error)
PutMetricData provides a mock function with given fields: ctx, params, optFns
type Client_Expecter ¶
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) GetMetricData ¶
func (_e *Client_Expecter) GetMetricData(ctx interface{}, params interface{}, optFns ...interface{}) *Client_GetMetricData_Call
GetMetricData is a helper method to define mock.On call
- ctx context.Context
- params *cloudwatch.GetMetricDataInput
- optFns ...func(*cloudwatch.Options)
func (*Client_Expecter) PutMetricData ¶
func (_e *Client_Expecter) PutMetricData(ctx interface{}, params interface{}, optFns ...interface{}) *Client_PutMetricData_Call
PutMetricData is a helper method to define mock.On call
- ctx context.Context
- params *cloudwatch.PutMetricDataInput
- optFns ...func(*cloudwatch.Options)
type Client_GetMetricData_Call ¶
Client_GetMetricData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMetricData'
func (*Client_GetMetricData_Call) Return ¶
func (_c *Client_GetMetricData_Call) Return(_a0 *cloudwatch.GetMetricDataOutput, _a1 error) *Client_GetMetricData_Call
func (*Client_GetMetricData_Call) Run ¶
func (_c *Client_GetMetricData_Call) Run(run func(ctx context.Context, params *cloudwatch.GetMetricDataInput, optFns ...func(*cloudwatch.Options))) *Client_GetMetricData_Call
func (*Client_GetMetricData_Call) RunAndReturn ¶
func (_c *Client_GetMetricData_Call) RunAndReturn(run func(context.Context, *cloudwatch.GetMetricDataInput, ...func(*cloudwatch.Options)) (*cloudwatch.GetMetricDataOutput, error)) *Client_GetMetricData_Call
type Client_PutMetricData_Call ¶
Client_PutMetricData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutMetricData'
func (*Client_PutMetricData_Call) Return ¶
func (_c *Client_PutMetricData_Call) Return(_a0 *cloudwatch.PutMetricDataOutput, _a1 error) *Client_PutMetricData_Call
func (*Client_PutMetricData_Call) Run ¶
func (_c *Client_PutMetricData_Call) Run(run func(ctx context.Context, params *cloudwatch.PutMetricDataInput, optFns ...func(*cloudwatch.Options))) *Client_PutMetricData_Call
func (*Client_PutMetricData_Call) RunAndReturn ¶
func (_c *Client_PutMetricData_Call) RunAndReturn(run func(context.Context, *cloudwatch.PutMetricDataInput, ...func(*cloudwatch.Options)) (*cloudwatch.PutMetricDataOutput, error)) *Client_PutMetricData_Call