Documentation
¶
Overview ¶
Package cloud is a generated GoMock package.
Package mock_cloud is a generated GoMock package.
Index ¶
- func ECSQueryEndpoint(regionId string, ecsClient ECSInterface) error
- func UnmarshalAcsResponse(jsonBytes []byte, res responses.AcsResponse)
- type ECSInterface
- type MockECSInterface
- func (m *MockECSInterface) CreateDisk(request *ecs.CreateDiskRequest) (*ecs.CreateDiskResponse, error)
- func (m *MockECSInterface) DeleteDisk(request *ecs.DeleteDiskRequest) (*ecs.DeleteDiskResponse, error)
- func (m *MockECSInterface) DescribeAvailableResource(request *ecs.DescribeAvailableResourceRequest) (*ecs.DescribeAvailableResourceResponse, error)
- func (m *MockECSInterface) DescribeDisks(request *ecs.DescribeDisksRequest) (*ecs.DescribeDisksResponse, error)
- func (m *MockECSInterface) DescribeInstanceTypes(request *ecs.DescribeInstanceTypesRequest) (*ecs.DescribeInstanceTypesResponse, error)
- func (m *MockECSInterface) DescribeInstances(request *ecs.DescribeInstancesRequest) (*ecs.DescribeInstancesResponse, error)
- func (m *MockECSInterface) DescribeRegions(request *ecs.DescribeRegionsRequest) (*ecs.DescribeRegionsResponse, error)
- func (m *MockECSInterface) DescribeSnapshots(request *ecs.DescribeSnapshotsRequest) (*ecs.DescribeSnapshotsResponse, error)
- func (m *MockECSInterface) EXPECT() *MockECSInterfaceMockRecorder
- func (m *MockECSInterface) ResizeDisk(request *ecs.ResizeDiskRequest) (*ecs.ResizeDiskResponse, error)
- type MockECSInterfaceMockRecorder
- func (mr *MockECSInterfaceMockRecorder) CreateDisk(request interface{}) *gomock.Call
- func (mr *MockECSInterfaceMockRecorder) DeleteDisk(request interface{}) *gomock.Call
- func (mr *MockECSInterfaceMockRecorder) DescribeAvailableResource(request interface{}) *gomock.Call
- func (mr *MockECSInterfaceMockRecorder) DescribeDisks(request interface{}) *gomock.Call
- func (mr *MockECSInterfaceMockRecorder) DescribeInstanceTypes(request interface{}) *gomock.Call
- func (mr *MockECSInterfaceMockRecorder) DescribeInstances(request interface{}) *gomock.Call
- func (mr *MockECSInterfaceMockRecorder) DescribeRegions(request interface{}) *gomock.Call
- func (mr *MockECSInterfaceMockRecorder) DescribeSnapshots(request interface{}) *gomock.Call
- func (mr *MockECSInterfaceMockRecorder) ResizeDisk(request interface{}) *gomock.Call
- type MockSTSInterface
- type MockSTSInterfaceMockRecorder
- type STSInterface
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 { CreateDisk(request *ecs.CreateDiskRequest) (response *ecs.CreateDiskResponse, err error) 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) ResizeDisk(request *ecs.ResizeDiskRequest) (response *ecs.ResizeDiskResponse, err error) DescribeSnapshots(request *ecs.DescribeSnapshotsRequest) (response *ecs.DescribeSnapshotsResponse, 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) CreateDisk ¶ added in v1.5.0
func (m *MockECSInterface) CreateDisk(request *ecs.CreateDiskRequest) (*ecs.CreateDiskResponse, error)
CreateDisk mocks base method.
func (*MockECSInterface) DeleteDisk ¶
func (m *MockECSInterface) DeleteDisk(request *ecs.DeleteDiskRequest) (*ecs.DeleteDiskResponse, error)
DeleteDisk mocks base method.
func (*MockECSInterface) DescribeAvailableResource ¶
func (m *MockECSInterface) DescribeAvailableResource(request *ecs.DescribeAvailableResourceRequest) (*ecs.DescribeAvailableResourceResponse, error)
DescribeAvailableResource mocks base method.
func (*MockECSInterface) DescribeDisks ¶ added in v1.4.0
func (m *MockECSInterface) DescribeDisks(request *ecs.DescribeDisksRequest) (*ecs.DescribeDisksResponse, error)
DescribeDisks mocks base method.
func (*MockECSInterface) DescribeInstanceTypes ¶ added in v1.4.0
func (m *MockECSInterface) DescribeInstanceTypes(request *ecs.DescribeInstanceTypesRequest) (*ecs.DescribeInstanceTypesResponse, error)
DescribeInstanceTypes mocks base method.
func (*MockECSInterface) DescribeInstances ¶
func (m *MockECSInterface) DescribeInstances(request *ecs.DescribeInstancesRequest) (*ecs.DescribeInstancesResponse, error)
DescribeInstances mocks base method.
func (*MockECSInterface) DescribeRegions ¶
func (m *MockECSInterface) DescribeRegions(request *ecs.DescribeRegionsRequest) (*ecs.DescribeRegionsResponse, error)
DescribeRegions mocks base method.
func (*MockECSInterface) DescribeSnapshots ¶ added in v1.5.0
func (m *MockECSInterface) DescribeSnapshots(request *ecs.DescribeSnapshotsRequest) (*ecs.DescribeSnapshotsResponse, error)
DescribeSnapshots mocks base method.
func (*MockECSInterface) EXPECT ¶
func (m *MockECSInterface) EXPECT() *MockECSInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockECSInterface) ResizeDisk ¶ added in v1.5.0
func (m *MockECSInterface) ResizeDisk(request *ecs.ResizeDiskRequest) (*ecs.ResizeDiskResponse, error)
ResizeDisk mocks base method.
type MockECSInterfaceMockRecorder ¶
type MockECSInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockECSInterfaceMockRecorder is the mock recorder for MockECSInterface.
func (*MockECSInterfaceMockRecorder) CreateDisk ¶ added in v1.5.0
func (mr *MockECSInterfaceMockRecorder) CreateDisk(request interface{}) *gomock.Call
CreateDisk indicates an expected call of CreateDisk.
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.
func (*MockECSInterfaceMockRecorder) DescribeSnapshots ¶ added in v1.5.0
func (mr *MockECSInterfaceMockRecorder) DescribeSnapshots(request interface{}) *gomock.Call
DescribeSnapshots indicates an expected call of DescribeSnapshots.
func (*MockECSInterfaceMockRecorder) ResizeDisk ¶ added in v1.5.0
func (mr *MockECSInterfaceMockRecorder) ResizeDisk(request interface{}) *gomock.Call
ResizeDisk indicates an expected call of ResizeDisk.
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
func (m *MockSTSInterface) EXPECT() *MockSTSInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSTSInterface) GetCallerIdentity ¶ added in v1.4.0
func (m *MockSTSInterface) GetCallerIdentity(request *sts.GetCallerIdentityRequest) (*sts.GetCallerIdentityResponse, error)
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)
}