cloud

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package cloud is a generated GoMock package.

Package mock_cloud is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ECSQueryEndpoint

func ECSQueryEndpoint(regionId string, ecsClient ECSInterface) error

func UnmarshalAcsResponse

func UnmarshalAcsResponse(jsonBytes []byte, res responses.AcsResponse)

Create a response object from json, useful for testing.

Example:

var describeRegionsResponse = ecs.CreateDescribeRegionsResponse()
UnmarshalAcsResponse([]byte(`{...}`), describeRegionsResponse)

Types

type ECSInterface

type ECSInterface interface {
	DescribeAvailableResource(request *ecs.DescribeAvailableResourceRequest) (response *ecs.DescribeAvailableResourceResponse, err error)
	DeleteDisk(request *ecs.DeleteDiskRequest) (response *ecs.DeleteDiskResponse, err error)
	DescribeRegions(request *ecs.DescribeRegionsRequest) (response *ecs.DescribeRegionsResponse, err error)
	DescribeInstances(request *ecs.DescribeInstancesRequest) (response *ecs.DescribeInstancesResponse, err error)
	DescribeInstanceTypes(request *ecs.DescribeInstanceTypesRequest) (response *ecs.DescribeInstanceTypesResponse, err error)
	DescribeDisks(request *ecs.DescribeDisksRequest) (response *ecs.DescribeDisksResponse, err error)
}

type MockECSInterface

type MockECSInterface struct {
	// contains filtered or unexported fields
}

MockECSInterface is a mock of ECSInterface interface.

func NewMockECSInterface

func NewMockECSInterface(ctrl *gomock.Controller) *MockECSInterface

NewMockECSInterface creates a new mock instance.

func (*MockECSInterface) DeleteDisk

func (m *MockECSInterface) DeleteDisk(request *ecs.DeleteDiskRequest) (*ecs.DeleteDiskResponse, error)

DeleteDisk mocks base method.

func (*MockECSInterface) DescribeAvailableResource

DescribeAvailableResource mocks base method.

func (*MockECSInterface) DescribeDisks added in v1.4.0

DescribeDisks mocks base method.

func (*MockECSInterface) DescribeInstanceTypes added in v1.4.0

DescribeInstanceTypes mocks base method.

func (*MockECSInterface) DescribeInstances

DescribeInstances mocks base method.

func (*MockECSInterface) DescribeRegions

DescribeRegions mocks base method.

func (*MockECSInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockECSInterfaceMockRecorder

type MockECSInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockECSInterfaceMockRecorder is the mock recorder for MockECSInterface.

func (*MockECSInterfaceMockRecorder) DeleteDisk

func (mr *MockECSInterfaceMockRecorder) DeleteDisk(request interface{}) *gomock.Call

DeleteDisk indicates an expected call of DeleteDisk.

func (*MockECSInterfaceMockRecorder) DescribeAvailableResource

func (mr *MockECSInterfaceMockRecorder) DescribeAvailableResource(request interface{}) *gomock.Call

DescribeAvailableResource indicates an expected call of DescribeAvailableResource.

func (*MockECSInterfaceMockRecorder) DescribeDisks added in v1.4.0

func (mr *MockECSInterfaceMockRecorder) DescribeDisks(request interface{}) *gomock.Call

DescribeDisks indicates an expected call of DescribeDisks.

func (*MockECSInterfaceMockRecorder) DescribeInstanceTypes added in v1.4.0

func (mr *MockECSInterfaceMockRecorder) DescribeInstanceTypes(request interface{}) *gomock.Call

DescribeInstanceTypes indicates an expected call of DescribeInstanceTypes.

func (*MockECSInterfaceMockRecorder) DescribeInstances

func (mr *MockECSInterfaceMockRecorder) DescribeInstances(request interface{}) *gomock.Call

DescribeInstances indicates an expected call of DescribeInstances.

func (*MockECSInterfaceMockRecorder) DescribeRegions

func (mr *MockECSInterfaceMockRecorder) DescribeRegions(request interface{}) *gomock.Call

DescribeRegions indicates an expected call of DescribeRegions.

type MockSTSInterface added in v1.4.0

type MockSTSInterface struct {
	// contains filtered or unexported fields
}

MockSTSInterface is a mock of STSInterface interface.

func NewMockSTSInterface added in v1.4.0

func NewMockSTSInterface(ctrl *gomock.Controller) *MockSTSInterface

NewMockSTSInterface creates a new mock instance.

func (*MockSTSInterface) EXPECT added in v1.4.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSTSInterface) GetCallerIdentity added in v1.4.0

GetCallerIdentity mocks base method.

type MockSTSInterfaceMockRecorder added in v1.4.0

type MockSTSInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockSTSInterfaceMockRecorder is the mock recorder for MockSTSInterface.

func (*MockSTSInterfaceMockRecorder) GetCallerIdentity added in v1.4.0

func (mr *MockSTSInterfaceMockRecorder) GetCallerIdentity(request interface{}) *gomock.Call

GetCallerIdentity indicates an expected call of GetCallerIdentity.

type STSInterface added in v1.4.0

type STSInterface interface {
	GetCallerIdentity(request *sts.GetCallerIdentityRequest) (response *sts.GetCallerIdentityResponse, err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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