Documentation ¶
Index ¶
- type EC2
- func (_m *EC2) DescribeInstances(ctx context.Context, e *serviceec2.DescribeInstancesInput, ...) (*serviceec2.DescribeInstancesOutput, error)
- func (_m *EC2) DescribeRegions(ctx context.Context, e *serviceec2.DescribeRegionsInput, ...) (*serviceec2.DescribeRegionsOutput, error)
- func (_m *EC2) DescribeSpotPriceHistory(ctx context.Context, input *serviceec2.DescribeSpotPriceHistoryInput, ...) (*serviceec2.DescribeSpotPriceHistoryOutput, error)
- func (_m *EC2) DescribeVolumes(_a0 context.Context, _a1 *serviceec2.DescribeVolumesInput, ...) (*serviceec2.DescribeVolumesOutput, error)
- func (_m *EC2) EXPECT() *EC2_Expecter
- type EC2_DescribeInstances_Call
- func (_c *EC2_DescribeInstances_Call) Return(_a0 *serviceec2.DescribeInstancesOutput, _a1 error) *EC2_DescribeInstances_Call
- func (_c *EC2_DescribeInstances_Call) Run(run func(ctx context.Context, e *serviceec2.DescribeInstancesInput, ...)) *EC2_DescribeInstances_Call
- func (_c *EC2_DescribeInstances_Call) RunAndReturn(...) *EC2_DescribeInstances_Call
- type EC2_DescribeRegions_Call
- func (_c *EC2_DescribeRegions_Call) Return(_a0 *serviceec2.DescribeRegionsOutput, _a1 error) *EC2_DescribeRegions_Call
- func (_c *EC2_DescribeRegions_Call) Run(run func(ctx context.Context, e *serviceec2.DescribeRegionsInput, ...)) *EC2_DescribeRegions_Call
- func (_c *EC2_DescribeRegions_Call) RunAndReturn(...) *EC2_DescribeRegions_Call
- type EC2_DescribeSpotPriceHistory_Call
- func (_c *EC2_DescribeSpotPriceHistory_Call) Return(_a0 *serviceec2.DescribeSpotPriceHistoryOutput, _a1 error) *EC2_DescribeSpotPriceHistory_Call
- func (_c *EC2_DescribeSpotPriceHistory_Call) Run(...) *EC2_DescribeSpotPriceHistory_Call
- func (_c *EC2_DescribeSpotPriceHistory_Call) RunAndReturn(...) *EC2_DescribeSpotPriceHistory_Call
- type EC2_DescribeVolumes_Call
- func (_c *EC2_DescribeVolumes_Call) Return(_a0 *serviceec2.DescribeVolumesOutput, _a1 error) *EC2_DescribeVolumes_Call
- func (_c *EC2_DescribeVolumes_Call) Run(run func(_a0 context.Context, _a1 *serviceec2.DescribeVolumesInput, ...)) *EC2_DescribeVolumes_Call
- func (_c *EC2_DescribeVolumes_Call) RunAndReturn(...) *EC2_DescribeVolumes_Call
- type EC2_Expecter
- func (_e *EC2_Expecter) DescribeInstances(ctx interface{}, e interface{}, optFns ...interface{}) *EC2_DescribeInstances_Call
- func (_e *EC2_Expecter) DescribeRegions(ctx interface{}, e interface{}, optFns ...interface{}) *EC2_DescribeRegions_Call
- func (_e *EC2_Expecter) DescribeSpotPriceHistory(ctx interface{}, input interface{}, optFns ...interface{}) *EC2_DescribeSpotPriceHistory_Call
- func (_e *EC2_Expecter) DescribeVolumes(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *EC2_DescribeVolumes_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EC2 ¶
EC2 is an autogenerated mock type for the EC2 type
func NewEC2 ¶
NewEC2 creates a new instance of EC2. 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 (*EC2) DescribeInstances ¶
func (_m *EC2) DescribeInstances(ctx context.Context, e *serviceec2.DescribeInstancesInput, optFns ...func(*serviceec2.Options)) (*serviceec2.DescribeInstancesOutput, error)
DescribeInstances provides a mock function with given fields: ctx, e, optFns
func (*EC2) DescribeRegions ¶
func (_m *EC2) DescribeRegions(ctx context.Context, e *serviceec2.DescribeRegionsInput, optFns ...func(*serviceec2.Options)) (*serviceec2.DescribeRegionsOutput, error)
DescribeRegions provides a mock function with given fields: ctx, e, optFns
func (*EC2) DescribeSpotPriceHistory ¶
func (_m *EC2) DescribeSpotPriceHistory(ctx context.Context, input *serviceec2.DescribeSpotPriceHistoryInput, optFns ...func(*serviceec2.Options)) (*serviceec2.DescribeSpotPriceHistoryOutput, error)
DescribeSpotPriceHistory provides a mock function with given fields: ctx, input, optFns
func (*EC2) DescribeVolumes ¶ added in v0.4.0
func (_m *EC2) DescribeVolumes(_a0 context.Context, _a1 *serviceec2.DescribeVolumesInput, _a2 ...func(*serviceec2.Options)) (*serviceec2.DescribeVolumesOutput, error)
DescribeVolumes provides a mock function with given fields: _a0, _a1, _a2
func (*EC2) EXPECT ¶
func (_m *EC2) EXPECT() *EC2_Expecter
type EC2_DescribeInstances_Call ¶
EC2_DescribeInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeInstances'
func (*EC2_DescribeInstances_Call) Return ¶
func (_c *EC2_DescribeInstances_Call) Return(_a0 *serviceec2.DescribeInstancesOutput, _a1 error) *EC2_DescribeInstances_Call
func (*EC2_DescribeInstances_Call) Run ¶
func (_c *EC2_DescribeInstances_Call) Run(run func(ctx context.Context, e *serviceec2.DescribeInstancesInput, optFns ...func(*serviceec2.Options))) *EC2_DescribeInstances_Call
func (*EC2_DescribeInstances_Call) RunAndReturn ¶
func (_c *EC2_DescribeInstances_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeInstancesInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeInstancesOutput, error)) *EC2_DescribeInstances_Call
type EC2_DescribeRegions_Call ¶
EC2_DescribeRegions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeRegions'
func (*EC2_DescribeRegions_Call) Return ¶
func (_c *EC2_DescribeRegions_Call) Return(_a0 *serviceec2.DescribeRegionsOutput, _a1 error) *EC2_DescribeRegions_Call
func (*EC2_DescribeRegions_Call) Run ¶
func (_c *EC2_DescribeRegions_Call) Run(run func(ctx context.Context, e *serviceec2.DescribeRegionsInput, optFns ...func(*serviceec2.Options))) *EC2_DescribeRegions_Call
func (*EC2_DescribeRegions_Call) RunAndReturn ¶
func (_c *EC2_DescribeRegions_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeRegionsInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeRegionsOutput, error)) *EC2_DescribeRegions_Call
type EC2_DescribeSpotPriceHistory_Call ¶
EC2_DescribeSpotPriceHistory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeSpotPriceHistory'
func (*EC2_DescribeSpotPriceHistory_Call) Return ¶
func (_c *EC2_DescribeSpotPriceHistory_Call) Return(_a0 *serviceec2.DescribeSpotPriceHistoryOutput, _a1 error) *EC2_DescribeSpotPriceHistory_Call
func (*EC2_DescribeSpotPriceHistory_Call) Run ¶
func (_c *EC2_DescribeSpotPriceHistory_Call) Run(run func(ctx context.Context, input *serviceec2.DescribeSpotPriceHistoryInput, optFns ...func(*serviceec2.Options))) *EC2_DescribeSpotPriceHistory_Call
func (*EC2_DescribeSpotPriceHistory_Call) RunAndReturn ¶
func (_c *EC2_DescribeSpotPriceHistory_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeSpotPriceHistoryInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeSpotPriceHistoryOutput, error)) *EC2_DescribeSpotPriceHistory_Call
type EC2_DescribeVolumes_Call ¶ added in v0.4.0
EC2_DescribeVolumes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeVolumes'
func (*EC2_DescribeVolumes_Call) Return ¶ added in v0.4.0
func (_c *EC2_DescribeVolumes_Call) Return(_a0 *serviceec2.DescribeVolumesOutput, _a1 error) *EC2_DescribeVolumes_Call
func (*EC2_DescribeVolumes_Call) Run ¶ added in v0.4.0
func (_c *EC2_DescribeVolumes_Call) Run(run func(_a0 context.Context, _a1 *serviceec2.DescribeVolumesInput, _a2 ...func(*serviceec2.Options))) *EC2_DescribeVolumes_Call
func (*EC2_DescribeVolumes_Call) RunAndReturn ¶ added in v0.4.0
func (_c *EC2_DescribeVolumes_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeVolumesInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeVolumesOutput, error)) *EC2_DescribeVolumes_Call
type EC2_Expecter ¶
type EC2_Expecter struct {
// contains filtered or unexported fields
}
func (*EC2_Expecter) DescribeInstances ¶
func (_e *EC2_Expecter) DescribeInstances(ctx interface{}, e interface{}, optFns ...interface{}) *EC2_DescribeInstances_Call
DescribeInstances is a helper method to define mock.On call
- ctx context.Context
- e *serviceec2.DescribeInstancesInput
- optFns ...func(*serviceec2.Options)
func (*EC2_Expecter) DescribeRegions ¶
func (_e *EC2_Expecter) DescribeRegions(ctx interface{}, e interface{}, optFns ...interface{}) *EC2_DescribeRegions_Call
DescribeRegions is a helper method to define mock.On call
- ctx context.Context
- e *serviceec2.DescribeRegionsInput
- optFns ...func(*serviceec2.Options)
func (*EC2_Expecter) DescribeSpotPriceHistory ¶
func (_e *EC2_Expecter) DescribeSpotPriceHistory(ctx interface{}, input interface{}, optFns ...interface{}) *EC2_DescribeSpotPriceHistory_Call
DescribeSpotPriceHistory is a helper method to define mock.On call
- ctx context.Context
- input *serviceec2.DescribeSpotPriceHistoryInput
- optFns ...func(*serviceec2.Options)
func (*EC2_Expecter) DescribeVolumes ¶ added in v0.4.0
func (_e *EC2_Expecter) DescribeVolumes(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *EC2_DescribeVolumes_Call
DescribeVolumes is a helper method to define mock.On call
- _a0 context.Context
- _a1 *serviceec2.DescribeVolumesInput
- _a2 ...func(*serviceec2.Options)