mock

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	mock.Mock
}

Service represents a mock upcloud API service

func (*Service) AssignIPAddress

func (m *Service) AssignIPAddress(r *request.AssignIPAddressRequest) (*upcloud.IPAddress, error)

AssignIPAddress implements service.Network.AssignIPAddress

func (*Service) AttachNetworkRouter added in v1.1.0

func (m *Service) AttachNetworkRouter(r *request.AttachNetworkRouterRequest) error

AttachNetworkRouter implements service.Network.AttachNetworkRouter

func (*Service) AttachStorage

AttachStorage implements service.Storage.AttachStorage

func (*Service) CloneStorage

CloneStorage implements service.Storage.CloneStorage

func (*Service) CreateBackup

CreateBackup implements service.Storage.CreateBackup

func (*Service) CreateFirewallRule

func (m *Service) CreateFirewallRule(r *request.CreateFirewallRuleRequest) (*upcloud.FirewallRule, error)

CreateFirewallRule implements service.Firewall.CreateFirewallRule

func (*Service) CreateFirewallRules

func (m *Service) CreateFirewallRules(r *request.CreateFirewallRulesRequest) error

CreateFirewallRules implements service.Firewall.CreateFirewallRules

func (*Service) CreateNetwork

func (m *Service) CreateNetwork(r *request.CreateNetworkRequest) (*upcloud.Network, error)

CreateNetwork implements service.Network.CreateNetwork

func (*Service) CreateNetworkInterface

func (m *Service) CreateNetworkInterface(r *request.CreateNetworkInterfaceRequest) (*upcloud.Interface, error)

CreateNetworkInterface implements service.Network.CreateNetworkInterface

func (*Service) CreateRouter

func (m *Service) CreateRouter(r *request.CreateRouterRequest) (*upcloud.Router, error)

CreateRouter implements service.Network.CreateRouter

func (*Service) CreateServer

CreateServer implements service.Server.CreateServer

func (*Service) CreateStorage

CreateStorage implements service.Storage.CreateStorage

func (*Service) CreateStorageImport

CreateStorageImport implements service.Storage.CreateStorageImport

func (*Service) DeleteFirewallRule

func (m *Service) DeleteFirewallRule(r *request.DeleteFirewallRuleRequest) error

DeleteFirewallRule implements service.Firewall.DeleteFirewallRule

func (*Service) DeleteNetwork

func (m *Service) DeleteNetwork(r *request.DeleteNetworkRequest) error

DeleteNetwork implements service.Network.DeleteNetwork

func (*Service) DeleteNetworkInterface

func (m *Service) DeleteNetworkInterface(r *request.DeleteNetworkInterfaceRequest) error

DeleteNetworkInterface implements service.Network.DeleteNetworkInterface

func (*Service) DeleteRouter

func (m *Service) DeleteRouter(r *request.DeleteRouterRequest) error

DeleteRouter implements service.Network.DeleteRouter

func (*Service) DeleteServer

func (m *Service) DeleteServer(r *request.DeleteServerRequest) error

DeleteServer implements service.Server.DeleteServer

func (*Service) DeleteServerAndStorages

func (m *Service) DeleteServerAndStorages(r *request.DeleteServerAndStoragesRequest) error

DeleteServerAndStorages implements service.Server.DeleteServerAndStorages

func (*Service) DeleteStorage

func (m *Service) DeleteStorage(r *request.DeleteStorageRequest) error

DeleteStorage implements service.Storage.DeleteStorage

func (*Service) DetachNetworkRouter added in v1.1.0

func (m *Service) DetachNetworkRouter(r *request.DetachNetworkRouterRequest) error

DetachNetworkRouter implements service.Network.DetachNetworkRouter

func (*Service) DetachStorage

DetachStorage implements service.Storage.DetachStorage

func (*Service) EjectCDROM

EjectCDROM implements service.Storage.EjectCDROM

func (*Service) GetAccount

func (m *Service) GetAccount() (*upcloud.Account, error)

GetAccount implements service.Account.GetAccount

func (*Service) GetFirewallRuleDetails

func (m *Service) GetFirewallRuleDetails(r *request.GetFirewallRuleDetailsRequest) (*upcloud.FirewallRule, error)

GetFirewallRuleDetails implements service.Firewall.GetFirewallRuleDetails

func (*Service) GetFirewallRules

func (m *Service) GetFirewallRules(r *request.GetFirewallRulesRequest) (*upcloud.FirewallRules, error)

GetFirewallRules implements service.Firewall.GetFirewallRules

func (*Service) GetIPAddressDetails

func (m *Service) GetIPAddressDetails(r *request.GetIPAddressDetailsRequest) (*upcloud.IPAddress, error)

GetIPAddressDetails implements service.Network.GetIPAddressDetails

func (*Service) GetIPAddresses

func (m *Service) GetIPAddresses() (*upcloud.IPAddresses, error)

GetIPAddresses implements service.Network.GetIPAddresses

func (*Service) GetNetworkDetails

func (m *Service) GetNetworkDetails(r *request.GetNetworkDetailsRequest) (*upcloud.Network, error)

GetNetworkDetails implements service.Network.GetNetworkDetails

func (*Service) GetNetworks

func (m *Service) GetNetworks() (*upcloud.Networks, error)

GetNetworks implements service.Network.GetNetworks

func (*Service) GetNetworksInZone

func (m *Service) GetNetworksInZone(r *request.GetNetworksInZoneRequest) (*upcloud.Networks, error)

GetNetworksInZone implements service.Network.GetNetworksInZone

func (*Service) GetPlans

func (m *Service) GetPlans() (*upcloud.Plans, error)

GetPlans implements service.Plan.GetPlans

func (*Service) GetRouterDetails

func (m *Service) GetRouterDetails(r *request.GetRouterDetailsRequest) (*upcloud.Router, error)

GetRouterDetails implements service.Network.GetRouterDetails

func (*Service) GetRouters

func (m *Service) GetRouters() (*upcloud.Routers, error)

GetRouters implements service.Network.GetRouters

func (*Service) GetServerConfigurations

func (m *Service) GetServerConfigurations() (*upcloud.ServerConfigurations, error)

GetServerConfigurations implements service.Server.GetServerConfigurations

func (*Service) GetServerDetails

func (m *Service) GetServerDetails(r *request.GetServerDetailsRequest) (*upcloud.ServerDetails, error)

GetServerDetails implements service.Server.GetServerDetails

func (*Service) GetServerNetworks

func (m *Service) GetServerNetworks(r *request.GetServerNetworksRequest) (*upcloud.Networking, error)

GetServerNetworks implements service.Network.GetServerNetworks

func (*Service) GetServers

func (m *Service) GetServers() (*upcloud.Servers, error)

GetServers implements service.Server.GetServers

func (*Service) GetStorageDetails

func (m *Service) GetStorageDetails(r *request.GetStorageDetailsRequest) (*upcloud.StorageDetails, error)

GetStorageDetails implements service.Storage.GetStorageDetails

func (*Service) GetStorageImportDetails

GetStorageImportDetails implements service.Storage.GetStorageImportDetails

func (*Service) GetStorages

func (m *Service) GetStorages(r *request.GetStoragesRequest) (*upcloud.Storages, error)

GetStorages implements service.Storage.GetStorages

func (*Service) LoadCDROM

LoadCDROM implements service.Storage.LoadCDDROM

func (*Service) ModifyIPAddress

func (m *Service) ModifyIPAddress(r *request.ModifyIPAddressRequest) (*upcloud.IPAddress, error)

ModifyIPAddress implements service.Network.ModifyIPAddress

func (*Service) ModifyNetwork

func (m *Service) ModifyNetwork(r *request.ModifyNetworkRequest) (*upcloud.Network, error)

ModifyNetwork implements service.Network.ModifyNetwork

func (*Service) ModifyNetworkInterface

func (m *Service) ModifyNetworkInterface(r *request.ModifyNetworkInterfaceRequest) (*upcloud.Interface, error)

ModifyNetworkInterface implements service.Network.ModifyNetworkInterface

func (*Service) ModifyRouter

func (m *Service) ModifyRouter(r *request.ModifyRouterRequest) (*upcloud.Router, error)

ModifyRouter implements service.Network.ModifyRouter

func (*Service) ModifyServer

ModifyServer implements service.Server.ModifyServer

func (*Service) ModifyStorage

ModifyStorage implements service.Storage.ModifyStorage

func (*Service) ReleaseIPAddress

func (m *Service) ReleaseIPAddress(r *request.ReleaseIPAddressRequest) error

ReleaseIPAddress implements service.Network.ReleaseIPAddress

func (*Service) RestartServer

RestartServer implements service.Server.RestartServer

func (*Service) RestoreBackup

func (m *Service) RestoreBackup(r *request.RestoreBackupRequest) error

RestoreBackup implements service.Storage.RestoreBackup

func (*Service) StartServer

StartServer implements service.Server.StartServer

func (*Service) StopServer

StopServer implements service.Server.StopServer

func (*Service) TemplatizeStorage

func (m *Service) TemplatizeStorage(r *request.TemplatizeStorageRequest) (*upcloud.StorageDetails, error)

TemplatizeStorage implements service.Storage.TemplatizeStorage

func (*Service) WaitForServerState

func (m *Service) WaitForServerState(r *request.WaitForServerStateRequest) (*upcloud.ServerDetails, error)

WaitForServerState implements service.Server.WaitForServerState

func (*Service) WaitForStorageImportCompletion

func (m *Service) WaitForStorageImportCompletion(r *request.WaitForStorageImportCompletionRequest) (*upcloud.StorageImportDetails, error)

WaitForStorageImportCompletion implements service.Storage.WaitForStorageImportCompletion

func (*Service) WaitForStorageState

func (m *Service) WaitForStorageState(r *request.WaitForStorageStateRequest) (*upcloud.StorageDetails, error)

WaitForStorageState implements service.Storage.WaitForStorageState

Jump to

Keyboard shortcuts

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