ec2

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EC2

type EC2 struct {
	mock.Mock
}

EC2 is an autogenerated mock type for the EC2 type

func NewEC2

func NewEC2(t interface {
	mock.TestingT
	Cleanup(func())
}) *EC2

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

type EC2_DescribeInstances_Call struct {
	*mock.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 (*EC2_DescribeInstances_Call) Run

type EC2_DescribeRegions_Call

type EC2_DescribeRegions_Call struct {
	*mock.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 (*EC2_DescribeRegions_Call) Run

type EC2_DescribeSpotPriceHistory_Call

type EC2_DescribeSpotPriceHistory_Call struct {
	*mock.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 (*EC2_DescribeSpotPriceHistory_Call) Run

type EC2_DescribeVolumes_Call added in v0.4.0

type EC2_DescribeVolumes_Call struct {
	*mock.Call
}

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 (*EC2_DescribeVolumes_Call) Run added in v0.4.0

func (*EC2_DescribeVolumes_Call) RunAndReturn added in v0.4.0

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)

Jump to

Keyboard shortcuts

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