Documentation ¶
Overview ¶
Package client is a generated GoMock package.
Index ¶
- type MockECSClient
- func (m *MockECSClient) DeleteDisk(request *ecs.DeleteDiskRequest) (*ecs.DeleteDiskResponse, error)
- func (m *MockECSClient) DeleteInstance(request *ecs.DeleteInstanceRequest) (*ecs.DeleteInstanceResponse, error)
- func (m *MockECSClient) DeleteNetworkInterface(request *ecs.DeleteNetworkInterfaceRequest) (*ecs.DeleteNetworkInterfaceResponse, error)
- func (m *MockECSClient) DescribeDisks(request *ecs.DescribeDisksRequest) (*ecs.DescribeDisksResponse, error)
- func (m *MockECSClient) DescribeInstances(request *ecs.DescribeInstancesRequest) (*ecs.DescribeInstancesResponse, error)
- func (m *MockECSClient) DescribeNetworkInterfaces(request *ecs.DescribeNetworkInterfacesRequest) (*ecs.DescribeNetworkInterfacesResponse, error)
- func (m *MockECSClient) EXPECT() *MockECSClientMockRecorder
- func (m *MockECSClient) RunInstances(request *ecs.RunInstancesRequest) (*ecs.RunInstancesResponse, error)
- type MockECSClientMockRecorder
- func (mr *MockECSClientMockRecorder) DeleteDisk(request interface{}) *gomock.Call
- func (mr *MockECSClientMockRecorder) DeleteInstance(request interface{}) *gomock.Call
- func (mr *MockECSClientMockRecorder) DeleteNetworkInterface(request interface{}) *gomock.Call
- func (mr *MockECSClientMockRecorder) DescribeDisks(request interface{}) *gomock.Call
- func (mr *MockECSClientMockRecorder) DescribeInstances(request interface{}) *gomock.Call
- func (mr *MockECSClientMockRecorder) DescribeNetworkInterfaces(request interface{}) *gomock.Call
- func (mr *MockECSClientMockRecorder) RunInstances(request interface{}) *gomock.Call
- type MockPluginSPI
- func (m *MockPluginSPI) EXPECT() *MockPluginSPIMockRecorder
- func (m *MockPluginSPI) NewDeleteInstanceRequest(instanceID string, force bool) (*ecs.DeleteInstanceRequest, error)
- func (m *MockPluginSPI) NewDescribeInstancesRequest(machineName, instanceID string, tags map[string]string) (*ecs.DescribeInstancesRequest, error)
- func (m *MockPluginSPI) NewECSClient(secret *v1.Secret, region string) (spi.ECSClient, error)
- func (m *MockPluginSPI) NewInstanceDataDisks(disks []api.AlicloudDataDisk, machineName string) []ecs.RunInstancesDataDisk
- func (m *MockPluginSPI) NewRunInstanceTags(tags map[string]string) ([]ecs.RunInstancesTag, error)
- func (m *MockPluginSPI) NewRunInstancesRequest(providerSpec *api.ProviderSpec, machineName string, userData []byte) (*ecs.RunInstancesRequest, error)
- type MockPluginSPIMockRecorder
- func (mr *MockPluginSPIMockRecorder) NewDeleteInstanceRequest(instanceID, force interface{}) *gomock.Call
- func (mr *MockPluginSPIMockRecorder) NewDescribeInstancesRequest(machineName, instanceID, tags interface{}) *gomock.Call
- func (mr *MockPluginSPIMockRecorder) NewECSClient(secret, region interface{}) *gomock.Call
- func (mr *MockPluginSPIMockRecorder) NewInstanceDataDisks(disks, machineName interface{}) *gomock.Call
- func (mr *MockPluginSPIMockRecorder) NewRunInstanceTags(tags interface{}) *gomock.Call
- func (mr *MockPluginSPIMockRecorder) NewRunInstancesRequest(providerSpec, machineName, userData interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockECSClient ¶
type MockECSClient struct {
// contains filtered or unexported fields
}
MockECSClient is a mock of ECSClient interface.
func NewMockECSClient ¶
func NewMockECSClient(ctrl *gomock.Controller) *MockECSClient
NewMockECSClient creates a new mock instance.
func (*MockECSClient) DeleteDisk ¶ added in v0.6.0
func (m *MockECSClient) DeleteDisk(request *ecs.DeleteDiskRequest) (*ecs.DeleteDiskResponse, error)
DeleteDisk mocks base method.
func (*MockECSClient) DeleteInstance ¶
func (m *MockECSClient) DeleteInstance(request *ecs.DeleteInstanceRequest) (*ecs.DeleteInstanceResponse, error)
DeleteInstance mocks base method.
func (*MockECSClient) DeleteNetworkInterface ¶ added in v0.6.0
func (m *MockECSClient) DeleteNetworkInterface(request *ecs.DeleteNetworkInterfaceRequest) (*ecs.DeleteNetworkInterfaceResponse, error)
DeleteNetworkInterface mocks base method.
func (*MockECSClient) DescribeDisks ¶ added in v0.6.0
func (m *MockECSClient) DescribeDisks(request *ecs.DescribeDisksRequest) (*ecs.DescribeDisksResponse, error)
DescribeDisks mocks base method.
func (*MockECSClient) DescribeInstances ¶
func (m *MockECSClient) DescribeInstances(request *ecs.DescribeInstancesRequest) (*ecs.DescribeInstancesResponse, error)
DescribeInstances mocks base method.
func (*MockECSClient) DescribeNetworkInterfaces ¶ added in v0.6.0
func (m *MockECSClient) DescribeNetworkInterfaces(request *ecs.DescribeNetworkInterfacesRequest) (*ecs.DescribeNetworkInterfacesResponse, error)
DescribeNetworkInterfaces mocks base method.
func (*MockECSClient) EXPECT ¶
func (m *MockECSClient) EXPECT() *MockECSClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockECSClient) RunInstances ¶
func (m *MockECSClient) RunInstances(request *ecs.RunInstancesRequest) (*ecs.RunInstancesResponse, error)
RunInstances mocks base method.
type MockECSClientMockRecorder ¶
type MockECSClientMockRecorder struct {
// contains filtered or unexported fields
}
MockECSClientMockRecorder is the mock recorder for MockECSClient.
func (*MockECSClientMockRecorder) DeleteDisk ¶ added in v0.6.0
func (mr *MockECSClientMockRecorder) DeleteDisk(request interface{}) *gomock.Call
DeleteDisk indicates an expected call of DeleteDisk.
func (*MockECSClientMockRecorder) DeleteInstance ¶
func (mr *MockECSClientMockRecorder) DeleteInstance(request interface{}) *gomock.Call
DeleteInstance indicates an expected call of DeleteInstance.
func (*MockECSClientMockRecorder) DeleteNetworkInterface ¶ added in v0.6.0
func (mr *MockECSClientMockRecorder) DeleteNetworkInterface(request interface{}) *gomock.Call
DeleteNetworkInterface indicates an expected call of DeleteNetworkInterface.
func (*MockECSClientMockRecorder) DescribeDisks ¶ added in v0.6.0
func (mr *MockECSClientMockRecorder) DescribeDisks(request interface{}) *gomock.Call
DescribeDisks indicates an expected call of DescribeDisks.
func (*MockECSClientMockRecorder) DescribeInstances ¶
func (mr *MockECSClientMockRecorder) DescribeInstances(request interface{}) *gomock.Call
DescribeInstances indicates an expected call of DescribeInstances.
func (*MockECSClientMockRecorder) DescribeNetworkInterfaces ¶ added in v0.6.0
func (mr *MockECSClientMockRecorder) DescribeNetworkInterfaces(request interface{}) *gomock.Call
DescribeNetworkInterfaces indicates an expected call of DescribeNetworkInterfaces.
func (*MockECSClientMockRecorder) RunInstances ¶
func (mr *MockECSClientMockRecorder) RunInstances(request interface{}) *gomock.Call
RunInstances indicates an expected call of RunInstances.
type MockPluginSPI ¶ added in v0.6.0
type MockPluginSPI struct {
// contains filtered or unexported fields
}
MockPluginSPI is a mock of PluginSPI interface.
func NewMockPluginSPI ¶ added in v0.6.0
func NewMockPluginSPI(ctrl *gomock.Controller) *MockPluginSPI
NewMockPluginSPI creates a new mock instance.
func (*MockPluginSPI) EXPECT ¶ added in v0.6.0
func (m *MockPluginSPI) EXPECT() *MockPluginSPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPluginSPI) NewDeleteInstanceRequest ¶ added in v0.6.0
func (m *MockPluginSPI) NewDeleteInstanceRequest(instanceID string, force bool) (*ecs.DeleteInstanceRequest, error)
NewDeleteInstanceRequest mocks base method.
func (*MockPluginSPI) NewDescribeInstancesRequest ¶ added in v0.6.0
func (m *MockPluginSPI) NewDescribeInstancesRequest(machineName, instanceID string, tags map[string]string) (*ecs.DescribeInstancesRequest, error)
NewDescribeInstancesRequest mocks base method.
func (*MockPluginSPI) NewECSClient ¶ added in v0.6.0
NewECSClient mocks base method.
func (*MockPluginSPI) NewInstanceDataDisks ¶ added in v0.6.0
func (m *MockPluginSPI) NewInstanceDataDisks(disks []api.AlicloudDataDisk, machineName string) []ecs.RunInstancesDataDisk
NewInstanceDataDisks mocks base method.
func (*MockPluginSPI) NewRunInstanceTags ¶ added in v0.6.0
func (m *MockPluginSPI) NewRunInstanceTags(tags map[string]string) ([]ecs.RunInstancesTag, error)
NewRunInstanceTags mocks base method.
func (*MockPluginSPI) NewRunInstancesRequest ¶ added in v0.6.0
func (m *MockPluginSPI) NewRunInstancesRequest(providerSpec *api.ProviderSpec, machineName string, userData []byte) (*ecs.RunInstancesRequest, error)
NewRunInstancesRequest mocks base method.
type MockPluginSPIMockRecorder ¶ added in v0.6.0
type MockPluginSPIMockRecorder struct {
// contains filtered or unexported fields
}
MockPluginSPIMockRecorder is the mock recorder for MockPluginSPI.
func (*MockPluginSPIMockRecorder) NewDeleteInstanceRequest ¶ added in v0.6.0
func (mr *MockPluginSPIMockRecorder) NewDeleteInstanceRequest(instanceID, force interface{}) *gomock.Call
NewDeleteInstanceRequest indicates an expected call of NewDeleteInstanceRequest.
func (*MockPluginSPIMockRecorder) NewDescribeInstancesRequest ¶ added in v0.6.0
func (mr *MockPluginSPIMockRecorder) NewDescribeInstancesRequest(machineName, instanceID, tags interface{}) *gomock.Call
NewDescribeInstancesRequest indicates an expected call of NewDescribeInstancesRequest.
func (*MockPluginSPIMockRecorder) NewECSClient ¶ added in v0.6.0
func (mr *MockPluginSPIMockRecorder) NewECSClient(secret, region interface{}) *gomock.Call
NewECSClient indicates an expected call of NewECSClient.
func (*MockPluginSPIMockRecorder) NewInstanceDataDisks ¶ added in v0.6.0
func (mr *MockPluginSPIMockRecorder) NewInstanceDataDisks(disks, machineName interface{}) *gomock.Call
NewInstanceDataDisks indicates an expected call of NewInstanceDataDisks.
func (*MockPluginSPIMockRecorder) NewRunInstanceTags ¶ added in v0.6.0
func (mr *MockPluginSPIMockRecorder) NewRunInstanceTags(tags interface{}) *gomock.Call
NewRunInstanceTags indicates an expected call of NewRunInstanceTags.
func (*MockPluginSPIMockRecorder) NewRunInstancesRequest ¶ added in v0.6.0
func (mr *MockPluginSPIMockRecorder) NewRunInstancesRequest(providerSpec, machineName, userData interface{}) *gomock.Call
NewRunInstancesRequest indicates an expected call of NewRunInstancesRequest.