Documentation ¶
Overview ¶
Package mock_utils is a generated GoMock package.
Index ¶
- type MockClientService
- func (m *MockClientService) CreateDatacenter(name, location string) (*ionoscloud.Datacenter, error)
- func (m *MockClientService) CreateIpBlock(size int32, location string) (*ionoscloud.IpBlock, error)
- func (m *MockClientService) CreateLan(datacenterId, name string, public bool) (*ionoscloud.LanPost, error)
- func (m *MockClientService) CreateNat(datacenterId, name string, publicIps, flowlogs, natRules []string, ...) (*ionoscloud.NatGateway, error)
- func (m *MockClientService) CreateServer(datacenterId string, server ionoscloud.Server) (*ionoscloud.Server, error)
- func (m *MockClientService) EXPECT() *MockClientServiceMockRecorder
- func (m *MockClientService) GetDatacenter(datacenterId string) (*ionoscloud.Datacenter, error)
- func (m *MockClientService) GetDatacenters() (*ionoscloud.Datacenters, error)
- func (m *MockClientService) GetImageById(imageId string) (*ionoscloud.Image, error)
- func (m *MockClientService) GetImages() (*ionoscloud.Images, error)
- func (m *MockClientService) GetIpBlockIps(ipBlock *ionoscloud.IpBlock) (*[]string, error)
- func (m *MockClientService) GetLan(datacenterId, LanId string) (*ionoscloud.Lan, error)
- func (m *MockClientService) GetLans(datacenterId string) (*ionoscloud.Lans, error)
- func (m *MockClientService) GetLocationById(regionId, locationId string) (*ionoscloud.Location, error)
- func (m *MockClientService) GetNat(datacenterId, natId string) (*ionoscloud.NatGateway, error)
- func (m *MockClientService) GetNats(datacenterId string) (*ionoscloud.NatGateways, error)
- func (m *MockClientService) GetNic(datacenterId, ServerId, NicId string) (*ionoscloud.Nic, error)
- func (m *MockClientService) GetServer(datacenterId, serverId string, depth int32) (*ionoscloud.Server, error)
- func (m *MockClientService) GetTemplates() (*ionoscloud.Templates, error)
- func (m *MockClientService) PatchNat(datacenterId, natId, name string, publicIps []string, ...) (*ionoscloud.NatGateway, error)
- func (m *MockClientService) RemoveDatacenter(datacenterId string) error
- func (m *MockClientService) RemoveIpBlock(ipBlockId string) error
- func (m *MockClientService) RemoveLan(datacenterId, lanId string) error
- func (m *MockClientService) RemoveNat(datacenterId, natId string) error
- func (m *MockClientService) RemoveNic(datacenterId, serverId, nicId string) error
- func (m *MockClientService) RemoveServer(datacenterId, serverId string) error
- func (m *MockClientService) RemoveVolume(datacenterId, volumeId string) error
- func (m *MockClientService) RestartServer(datacenterId, serverId string) error
- func (m *MockClientService) ResumeServer(datacenterId, serverId string) error
- func (m *MockClientService) StartServer(datacenterId, serverId string) error
- func (m *MockClientService) StopServer(datacenterId, serverId string) error
- func (m *MockClientService) SuspendServer(datacenterId, serverId string) error
- func (m *MockClientService) UpdateCloudInitFile(cloudInitYAML, key string, value []interface{}, single_value bool, ...) (string, error)
- func (m *MockClientService) WaitForNicIpChange(datacenterId, ServerId, NicId string, timeout int) error
- type MockClientServiceMockRecorder
- func (mr *MockClientServiceMockRecorder) CreateDatacenter(name, location interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) CreateIpBlock(size, location interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) CreateLan(datacenterId, name, public interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) CreateNat(...) *gomock.Call
- func (mr *MockClientServiceMockRecorder) CreateServer(datacenterId, server interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) GetDatacenter(datacenterId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) GetDatacenters() *gomock.Call
- func (mr *MockClientServiceMockRecorder) GetImageById(imageId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) GetImages() *gomock.Call
- func (mr *MockClientServiceMockRecorder) GetIpBlockIps(ipBlock interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) GetLan(datacenterId, LanId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) GetLans(datacenterId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) GetLocationById(regionId, locationId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) GetNat(datacenterId, natId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) GetNats(datacenterId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) GetNic(datacenterId, ServerId, NicId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) GetServer(datacenterId, serverId, depth interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) GetTemplates() *gomock.Call
- func (mr *MockClientServiceMockRecorder) PatchNat(datacenterId, natId, name, publicIps, lansToGateways interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) RemoveDatacenter(datacenterId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) RemoveIpBlock(ipBlockId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) RemoveLan(datacenterId, lanId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) RemoveNat(datacenterId, natId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) RemoveNic(datacenterId, serverId, nicId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) RemoveServer(datacenterId, serverId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) RemoveVolume(datacenterId, volumeId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) RestartServer(datacenterId, serverId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) ResumeServer(datacenterId, serverId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) StartServer(datacenterId, serverId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) StopServer(datacenterId, serverId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) SuspendServer(datacenterId, serverId interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) UpdateCloudInitFile(cloudInitYAML, key, value, single_value, behaviour interface{}) *gomock.Call
- func (mr *MockClientServiceMockRecorder) WaitForNicIpChange(datacenterId, ServerId, NicId, timeout interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClientService ¶
type MockClientService struct {
// contains filtered or unexported fields
}
MockClientService is a mock of ClientService interface.
func NewMockClientService ¶
func NewMockClientService(ctrl *gomock.Controller) *MockClientService
NewMockClientService creates a new mock instance.
func (*MockClientService) CreateDatacenter ¶
func (m *MockClientService) CreateDatacenter(name, location string) (*ionoscloud.Datacenter, error)
CreateDatacenter mocks base method.
func (*MockClientService) CreateIpBlock ¶
func (m *MockClientService) CreateIpBlock(size int32, location string) (*ionoscloud.IpBlock, error)
CreateIpBlock mocks base method.
func (*MockClientService) CreateLan ¶
func (m *MockClientService) CreateLan(datacenterId, name string, public bool) (*ionoscloud.LanPost, error)
CreateLan mocks base method.
func (*MockClientService) CreateNat ¶
func (m *MockClientService) CreateNat(datacenterId, name string, publicIps, flowlogs, natRules []string, lansToGateways map[string][]string, sourceSubnet string, skipDefaultRules bool) (*ionoscloud.NatGateway, error)
CreateNat mocks base method.
func (*MockClientService) CreateServer ¶
func (m *MockClientService) CreateServer(datacenterId string, server ionoscloud.Server) (*ionoscloud.Server, error)
CreateServer mocks base method.
func (*MockClientService) EXPECT ¶
func (m *MockClientService) EXPECT() *MockClientServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientService) GetDatacenter ¶
func (m *MockClientService) GetDatacenter(datacenterId string) (*ionoscloud.Datacenter, error)
GetDatacenter mocks base method.
func (*MockClientService) GetDatacenters ¶
func (m *MockClientService) GetDatacenters() (*ionoscloud.Datacenters, error)
GetDatacenters mocks base method.
func (*MockClientService) GetImageById ¶
func (m *MockClientService) GetImageById(imageId string) (*ionoscloud.Image, error)
GetImageById mocks base method.
func (*MockClientService) GetImages ¶
func (m *MockClientService) GetImages() (*ionoscloud.Images, error)
GetImages mocks base method.
func (*MockClientService) GetIpBlockIps ¶
func (m *MockClientService) GetIpBlockIps(ipBlock *ionoscloud.IpBlock) (*[]string, error)
GetIpBlockIps mocks base method.
func (*MockClientService) GetLan ¶
func (m *MockClientService) GetLan(datacenterId, LanId string) (*ionoscloud.Lan, error)
GetLan mocks base method.
func (*MockClientService) GetLans ¶
func (m *MockClientService) GetLans(datacenterId string) (*ionoscloud.Lans, error)
GetLans mocks base method.
func (*MockClientService) GetLocationById ¶
func (m *MockClientService) GetLocationById(regionId, locationId string) (*ionoscloud.Location, error)
GetLocationById mocks base method.
func (*MockClientService) GetNat ¶
func (m *MockClientService) GetNat(datacenterId, natId string) (*ionoscloud.NatGateway, error)
GetNat mocks base method.
func (*MockClientService) GetNats ¶
func (m *MockClientService) GetNats(datacenterId string) (*ionoscloud.NatGateways, error)
GetNats mocks base method.
func (*MockClientService) GetNic ¶
func (m *MockClientService) GetNic(datacenterId, ServerId, NicId string) (*ionoscloud.Nic, error)
GetNic mocks base method.
func (*MockClientService) GetServer ¶
func (m *MockClientService) GetServer(datacenterId, serverId string, depth int32) (*ionoscloud.Server, error)
GetServer mocks base method.
func (*MockClientService) GetTemplates ¶
func (m *MockClientService) GetTemplates() (*ionoscloud.Templates, error)
GetTemplates mocks base method.
func (*MockClientService) PatchNat ¶
func (m *MockClientService) PatchNat(datacenterId, natId, name string, publicIps []string, lansToGateways []ionoscloud.NatGatewayLanProperties) (*ionoscloud.NatGateway, error)
PatchNat mocks base method.
func (*MockClientService) RemoveDatacenter ¶
func (m *MockClientService) RemoveDatacenter(datacenterId string) error
RemoveDatacenter mocks base method.
func (*MockClientService) RemoveIpBlock ¶
func (m *MockClientService) RemoveIpBlock(ipBlockId string) error
RemoveIpBlock mocks base method.
func (*MockClientService) RemoveLan ¶
func (m *MockClientService) RemoveLan(datacenterId, lanId string) error
RemoveLan mocks base method.
func (*MockClientService) RemoveNat ¶
func (m *MockClientService) RemoveNat(datacenterId, natId string) error
RemoveNat mocks base method.
func (*MockClientService) RemoveNic ¶
func (m *MockClientService) RemoveNic(datacenterId, serverId, nicId string) error
RemoveNic mocks base method.
func (*MockClientService) RemoveServer ¶
func (m *MockClientService) RemoveServer(datacenterId, serverId string) error
RemoveServer mocks base method.
func (*MockClientService) RemoveVolume ¶
func (m *MockClientService) RemoveVolume(datacenterId, volumeId string) error
RemoveVolume mocks base method.
func (*MockClientService) RestartServer ¶
func (m *MockClientService) RestartServer(datacenterId, serverId string) error
RestartServer mocks base method.
func (*MockClientService) ResumeServer ¶
func (m *MockClientService) ResumeServer(datacenterId, serverId string) error
ResumeServer mocks base method.
func (*MockClientService) StartServer ¶
func (m *MockClientService) StartServer(datacenterId, serverId string) error
StartServer mocks base method.
func (*MockClientService) StopServer ¶
func (m *MockClientService) StopServer(datacenterId, serverId string) error
StopServer mocks base method.
func (*MockClientService) SuspendServer ¶
func (m *MockClientService) SuspendServer(datacenterId, serverId string) error
SuspendServer mocks base method.
func (*MockClientService) UpdateCloudInitFile ¶
func (m *MockClientService) UpdateCloudInitFile(cloudInitYAML, key string, value []interface{}, single_value bool, behaviour string) (string, error)
UpdateCloudInitFile mocks base method.
func (*MockClientService) WaitForNicIpChange ¶
func (m *MockClientService) WaitForNicIpChange(datacenterId, ServerId, NicId string, timeout int) error
WaitForNicIpChange mocks base method.
type MockClientServiceMockRecorder ¶
type MockClientServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockClientServiceMockRecorder is the mock recorder for MockClientService.
func (*MockClientServiceMockRecorder) CreateDatacenter ¶
func (mr *MockClientServiceMockRecorder) CreateDatacenter(name, location interface{}) *gomock.Call
CreateDatacenter indicates an expected call of CreateDatacenter.
func (*MockClientServiceMockRecorder) CreateIpBlock ¶
func (mr *MockClientServiceMockRecorder) CreateIpBlock(size, location interface{}) *gomock.Call
CreateIpBlock indicates an expected call of CreateIpBlock.
func (*MockClientServiceMockRecorder) CreateLan ¶
func (mr *MockClientServiceMockRecorder) CreateLan(datacenterId, name, public interface{}) *gomock.Call
CreateLan indicates an expected call of CreateLan.
func (*MockClientServiceMockRecorder) CreateNat ¶
func (mr *MockClientServiceMockRecorder) CreateNat(datacenterId, name, publicIps, flowlogs, natRules, lansToGateways, sourceSubnet, skipDefaultRules interface{}) *gomock.Call
CreateNat indicates an expected call of CreateNat.
func (*MockClientServiceMockRecorder) CreateServer ¶
func (mr *MockClientServiceMockRecorder) CreateServer(datacenterId, server interface{}) *gomock.Call
CreateServer indicates an expected call of CreateServer.
func (*MockClientServiceMockRecorder) GetDatacenter ¶
func (mr *MockClientServiceMockRecorder) GetDatacenter(datacenterId interface{}) *gomock.Call
GetDatacenter indicates an expected call of GetDatacenter.
func (*MockClientServiceMockRecorder) GetDatacenters ¶
func (mr *MockClientServiceMockRecorder) GetDatacenters() *gomock.Call
GetDatacenters indicates an expected call of GetDatacenters.
func (*MockClientServiceMockRecorder) GetImageById ¶
func (mr *MockClientServiceMockRecorder) GetImageById(imageId interface{}) *gomock.Call
GetImageById indicates an expected call of GetImageById.
func (*MockClientServiceMockRecorder) GetImages ¶
func (mr *MockClientServiceMockRecorder) GetImages() *gomock.Call
GetImages indicates an expected call of GetImages.
func (*MockClientServiceMockRecorder) GetIpBlockIps ¶
func (mr *MockClientServiceMockRecorder) GetIpBlockIps(ipBlock interface{}) *gomock.Call
GetIpBlockIps indicates an expected call of GetIpBlockIps.
func (*MockClientServiceMockRecorder) GetLan ¶
func (mr *MockClientServiceMockRecorder) GetLan(datacenterId, LanId interface{}) *gomock.Call
GetLan indicates an expected call of GetLan.
func (*MockClientServiceMockRecorder) GetLans ¶
func (mr *MockClientServiceMockRecorder) GetLans(datacenterId interface{}) *gomock.Call
GetLans indicates an expected call of GetLans.
func (*MockClientServiceMockRecorder) GetLocationById ¶
func (mr *MockClientServiceMockRecorder) GetLocationById(regionId, locationId interface{}) *gomock.Call
GetLocationById indicates an expected call of GetLocationById.
func (*MockClientServiceMockRecorder) GetNat ¶
func (mr *MockClientServiceMockRecorder) GetNat(datacenterId, natId interface{}) *gomock.Call
GetNat indicates an expected call of GetNat.
func (*MockClientServiceMockRecorder) GetNats ¶
func (mr *MockClientServiceMockRecorder) GetNats(datacenterId interface{}) *gomock.Call
GetNats indicates an expected call of GetNats.
func (*MockClientServiceMockRecorder) GetNic ¶
func (mr *MockClientServiceMockRecorder) GetNic(datacenterId, ServerId, NicId interface{}) *gomock.Call
GetNic indicates an expected call of GetNic.
func (*MockClientServiceMockRecorder) GetServer ¶
func (mr *MockClientServiceMockRecorder) GetServer(datacenterId, serverId, depth interface{}) *gomock.Call
GetServer indicates an expected call of GetServer.
func (*MockClientServiceMockRecorder) GetTemplates ¶
func (mr *MockClientServiceMockRecorder) GetTemplates() *gomock.Call
GetTemplates indicates an expected call of GetTemplates.
func (*MockClientServiceMockRecorder) PatchNat ¶
func (mr *MockClientServiceMockRecorder) PatchNat(datacenterId, natId, name, publicIps, lansToGateways interface{}) *gomock.Call
PatchNat indicates an expected call of PatchNat.
func (*MockClientServiceMockRecorder) RemoveDatacenter ¶
func (mr *MockClientServiceMockRecorder) RemoveDatacenter(datacenterId interface{}) *gomock.Call
RemoveDatacenter indicates an expected call of RemoveDatacenter.
func (*MockClientServiceMockRecorder) RemoveIpBlock ¶
func (mr *MockClientServiceMockRecorder) RemoveIpBlock(ipBlockId interface{}) *gomock.Call
RemoveIpBlock indicates an expected call of RemoveIpBlock.
func (*MockClientServiceMockRecorder) RemoveLan ¶
func (mr *MockClientServiceMockRecorder) RemoveLan(datacenterId, lanId interface{}) *gomock.Call
RemoveLan indicates an expected call of RemoveLan.
func (*MockClientServiceMockRecorder) RemoveNat ¶
func (mr *MockClientServiceMockRecorder) RemoveNat(datacenterId, natId interface{}) *gomock.Call
RemoveNat indicates an expected call of RemoveNat.
func (*MockClientServiceMockRecorder) RemoveNic ¶
func (mr *MockClientServiceMockRecorder) RemoveNic(datacenterId, serverId, nicId interface{}) *gomock.Call
RemoveNic indicates an expected call of RemoveNic.
func (*MockClientServiceMockRecorder) RemoveServer ¶
func (mr *MockClientServiceMockRecorder) RemoveServer(datacenterId, serverId interface{}) *gomock.Call
RemoveServer indicates an expected call of RemoveServer.
func (*MockClientServiceMockRecorder) RemoveVolume ¶
func (mr *MockClientServiceMockRecorder) RemoveVolume(datacenterId, volumeId interface{}) *gomock.Call
RemoveVolume indicates an expected call of RemoveVolume.
func (*MockClientServiceMockRecorder) RestartServer ¶
func (mr *MockClientServiceMockRecorder) RestartServer(datacenterId, serverId interface{}) *gomock.Call
RestartServer indicates an expected call of RestartServer.
func (*MockClientServiceMockRecorder) ResumeServer ¶
func (mr *MockClientServiceMockRecorder) ResumeServer(datacenterId, serverId interface{}) *gomock.Call
ResumeServer indicates an expected call of ResumeServer.
func (*MockClientServiceMockRecorder) StartServer ¶
func (mr *MockClientServiceMockRecorder) StartServer(datacenterId, serverId interface{}) *gomock.Call
StartServer indicates an expected call of StartServer.
func (*MockClientServiceMockRecorder) StopServer ¶
func (mr *MockClientServiceMockRecorder) StopServer(datacenterId, serverId interface{}) *gomock.Call
StopServer indicates an expected call of StopServer.
func (*MockClientServiceMockRecorder) SuspendServer ¶
func (mr *MockClientServiceMockRecorder) SuspendServer(datacenterId, serverId interface{}) *gomock.Call
SuspendServer indicates an expected call of SuspendServer.
func (*MockClientServiceMockRecorder) UpdateCloudInitFile ¶
func (mr *MockClientServiceMockRecorder) UpdateCloudInitFile(cloudInitYAML, key, value, single_value, behaviour interface{}) *gomock.Call
UpdateCloudInitFile indicates an expected call of UpdateCloudInitFile.
func (*MockClientServiceMockRecorder) WaitForNicIpChange ¶
func (mr *MockClientServiceMockRecorder) WaitForNicIpChange(datacenterId, ServerId, NicId, timeout interface{}) *gomock.Call
WaitForNicIpChange indicates an expected call of WaitForNicIpChange.