Documentation ¶
Index ¶
- type Service
- func (m *Service) AssignIPAddress(r *request.AssignIPAddressRequest) (*upcloud.IPAddress, error)
- func (m *Service) AttachNetworkRouter(r *request.AttachNetworkRouterRequest) error
- func (m *Service) AttachStorage(r *request.AttachStorageRequest) (*upcloud.ServerDetails, error)
- func (m *Service) CloneStorage(r *request.CloneStorageRequest) (*upcloud.StorageDetails, error)
- func (m *Service) CreateBackup(r *request.CreateBackupRequest) (*upcloud.StorageDetails, error)
- func (m *Service) CreateFirewallRule(r *request.CreateFirewallRuleRequest) (*upcloud.FirewallRule, error)
- func (m *Service) CreateFirewallRules(r *request.CreateFirewallRulesRequest) error
- func (m *Service) CreateNetwork(r *request.CreateNetworkRequest) (*upcloud.Network, error)
- func (m *Service) CreateNetworkInterface(r *request.CreateNetworkInterfaceRequest) (*upcloud.Interface, error)
- func (m *Service) CreateRouter(r *request.CreateRouterRequest) (*upcloud.Router, error)
- func (m *Service) CreateServer(r *request.CreateServerRequest) (*upcloud.ServerDetails, error)
- func (m *Service) CreateStorage(r *request.CreateStorageRequest) (*upcloud.StorageDetails, error)
- func (m *Service) CreateStorageImport(r *request.CreateStorageImportRequest) (*upcloud.StorageImportDetails, error)
- func (m *Service) DeleteFirewallRule(r *request.DeleteFirewallRuleRequest) error
- func (m *Service) DeleteNetwork(r *request.DeleteNetworkRequest) error
- func (m *Service) DeleteNetworkInterface(r *request.DeleteNetworkInterfaceRequest) error
- func (m *Service) DeleteRouter(r *request.DeleteRouterRequest) error
- func (m *Service) DeleteServer(r *request.DeleteServerRequest) error
- func (m *Service) DeleteServerAndStorages(r *request.DeleteServerAndStoragesRequest) error
- func (m *Service) DeleteStorage(r *request.DeleteStorageRequest) error
- func (m *Service) DetachNetworkRouter(r *request.DetachNetworkRouterRequest) error
- func (m *Service) DetachStorage(r *request.DetachStorageRequest) (*upcloud.ServerDetails, error)
- func (m *Service) EjectCDROM(r *request.EjectCDROMRequest) (*upcloud.ServerDetails, error)
- func (m *Service) GetAccount() (*upcloud.Account, error)
- func (m *Service) GetFirewallRuleDetails(r *request.GetFirewallRuleDetailsRequest) (*upcloud.FirewallRule, error)
- func (m *Service) GetFirewallRules(r *request.GetFirewallRulesRequest) (*upcloud.FirewallRules, error)
- func (m *Service) GetIPAddressDetails(r *request.GetIPAddressDetailsRequest) (*upcloud.IPAddress, error)
- func (m *Service) GetIPAddresses() (*upcloud.IPAddresses, error)
- func (m *Service) GetNetworkDetails(r *request.GetNetworkDetailsRequest) (*upcloud.Network, error)
- func (m *Service) GetNetworks() (*upcloud.Networks, error)
- func (m *Service) GetNetworksInZone(r *request.GetNetworksInZoneRequest) (*upcloud.Networks, error)
- func (m *Service) GetPlans() (*upcloud.Plans, error)
- func (m *Service) GetRouterDetails(r *request.GetRouterDetailsRequest) (*upcloud.Router, error)
- func (m *Service) GetRouters() (*upcloud.Routers, error)
- func (m *Service) GetServerConfigurations() (*upcloud.ServerConfigurations, error)
- func (m *Service) GetServerDetails(r *request.GetServerDetailsRequest) (*upcloud.ServerDetails, error)
- func (m *Service) GetServerNetworks(r *request.GetServerNetworksRequest) (*upcloud.Networking, error)
- func (m *Service) GetServers() (*upcloud.Servers, error)
- func (m *Service) GetStorageDetails(r *request.GetStorageDetailsRequest) (*upcloud.StorageDetails, error)
- func (m *Service) GetStorageImportDetails(r *request.GetStorageImportDetailsRequest) (*upcloud.StorageImportDetails, error)
- func (m *Service) GetStorages(r *request.GetStoragesRequest) (*upcloud.Storages, error)
- func (m *Service) LoadCDROM(r *request.LoadCDROMRequest) (*upcloud.ServerDetails, error)
- func (m *Service) ModifyIPAddress(r *request.ModifyIPAddressRequest) (*upcloud.IPAddress, error)
- func (m *Service) ModifyNetwork(r *request.ModifyNetworkRequest) (*upcloud.Network, error)
- func (m *Service) ModifyNetworkInterface(r *request.ModifyNetworkInterfaceRequest) (*upcloud.Interface, error)
- func (m *Service) ModifyRouter(r *request.ModifyRouterRequest) (*upcloud.Router, error)
- func (m *Service) ModifyServer(r *request.ModifyServerRequest) (*upcloud.ServerDetails, error)
- func (m *Service) ModifyStorage(r *request.ModifyStorageRequest) (*upcloud.StorageDetails, error)
- func (m *Service) ReleaseIPAddress(r *request.ReleaseIPAddressRequest) error
- func (m *Service) RestartServer(r *request.RestartServerRequest) (*upcloud.ServerDetails, error)
- func (m *Service) RestoreBackup(r *request.RestoreBackupRequest) error
- func (m *Service) StartServer(r *request.StartServerRequest) (*upcloud.ServerDetails, error)
- func (m *Service) StopServer(r *request.StopServerRequest) (*upcloud.ServerDetails, error)
- func (m *Service) TemplatizeStorage(r *request.TemplatizeStorageRequest) (*upcloud.StorageDetails, error)
- func (m *Service) WaitForServerState(r *request.WaitForServerStateRequest) (*upcloud.ServerDetails, error)
- func (m *Service) WaitForStorageImportCompletion(r *request.WaitForStorageImportCompletionRequest) (*upcloud.StorageImportDetails, error)
- func (m *Service) WaitForStorageState(r *request.WaitForStorageStateRequest) (*upcloud.StorageDetails, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service represents a mock upcloud API service
func (*Service) AssignIPAddress ¶
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 ¶
func (m *Service) AttachStorage(r *request.AttachStorageRequest) (*upcloud.ServerDetails, error)
AttachStorage implements service.Storage.AttachStorage
func (*Service) CloneStorage ¶
func (m *Service) CloneStorage(r *request.CloneStorageRequest) (*upcloud.StorageDetails, error)
CloneStorage implements service.Storage.CloneStorage
func (*Service) CreateBackup ¶
func (m *Service) CreateBackup(r *request.CreateBackupRequest) (*upcloud.StorageDetails, error)
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 ¶
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 ¶
CreateRouter implements service.Network.CreateRouter
func (*Service) CreateServer ¶
func (m *Service) CreateServer(r *request.CreateServerRequest) (*upcloud.ServerDetails, error)
CreateServer implements service.Server.CreateServer
func (*Service) CreateStorage ¶
func (m *Service) CreateStorage(r *request.CreateStorageRequest) (*upcloud.StorageDetails, error)
CreateStorage implements service.Storage.CreateStorage
func (*Service) CreateStorageImport ¶
func (m *Service) CreateStorageImport(r *request.CreateStorageImportRequest) (*upcloud.StorageImportDetails, error)
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 ¶
func (m *Service) DetachStorage(r *request.DetachStorageRequest) (*upcloud.ServerDetails, error)
DetachStorage implements service.Storage.DetachStorage
func (*Service) EjectCDROM ¶
func (m *Service) EjectCDROM(r *request.EjectCDROMRequest) (*upcloud.ServerDetails, error)
EjectCDROM implements service.Storage.EjectCDROM
func (*Service) GetAccount ¶
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 ¶
GetNetworkDetails implements service.Network.GetNetworkDetails
func (*Service) GetNetworks ¶
GetNetworks implements service.Network.GetNetworks
func (*Service) GetNetworksInZone ¶
GetNetworksInZone implements service.Network.GetNetworksInZone
func (*Service) GetRouterDetails ¶
GetRouterDetails implements service.Network.GetRouterDetails
func (*Service) GetRouters ¶
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 ¶
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 ¶
func (m *Service) GetStorageImportDetails(r *request.GetStorageImportDetailsRequest) (*upcloud.StorageImportDetails, error)
GetStorageImportDetails implements service.Storage.GetStorageImportDetails
func (*Service) GetStorages ¶
GetStorages implements service.Storage.GetStorages
func (*Service) LoadCDROM ¶
func (m *Service) LoadCDROM(r *request.LoadCDROMRequest) (*upcloud.ServerDetails, error)
LoadCDROM implements service.Storage.LoadCDDROM
func (*Service) ModifyIPAddress ¶
ModifyIPAddress implements service.Network.ModifyIPAddress
func (*Service) ModifyNetwork ¶
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 ¶
ModifyRouter implements service.Network.ModifyRouter
func (*Service) ModifyServer ¶
func (m *Service) ModifyServer(r *request.ModifyServerRequest) (*upcloud.ServerDetails, error)
ModifyServer implements service.Server.ModifyServer
func (*Service) ModifyStorage ¶
func (m *Service) ModifyStorage(r *request.ModifyStorageRequest) (*upcloud.StorageDetails, error)
ModifyStorage implements service.Storage.ModifyStorage
func (*Service) ReleaseIPAddress ¶
func (m *Service) ReleaseIPAddress(r *request.ReleaseIPAddressRequest) error
ReleaseIPAddress implements service.Network.ReleaseIPAddress
func (*Service) RestartServer ¶
func (m *Service) RestartServer(r *request.RestartServerRequest) (*upcloud.ServerDetails, error)
RestartServer implements service.Server.RestartServer
func (*Service) RestoreBackup ¶
func (m *Service) RestoreBackup(r *request.RestoreBackupRequest) error
RestoreBackup implements service.Storage.RestoreBackup
func (*Service) StartServer ¶
func (m *Service) StartServer(r *request.StartServerRequest) (*upcloud.ServerDetails, error)
StartServer implements service.Server.StartServer
func (*Service) StopServer ¶
func (m *Service) StopServer(r *request.StopServerRequest) (*upcloud.ServerDetails, error)
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