ec2

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 30, 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) 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_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)

Jump to

Keyboard shortcuts

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