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) 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_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
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) 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_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)