Documentation ¶
Index ¶
- Variables
- type Account
- type Firewall
- type Host
- type IpAddress
- type ManagedDatabaseLogicalDatabaseManager
- type ManagedDatabaseServiceManager
- type ManagedDatabaseUserManager
- type Network
- type ObjectStorage
- type Plans
- type PriceZones
- type Server
- type Service
- func (s *Service) AssignIPAddress(r *request.AssignIPAddressRequest) (*upcloud.IPAddress, error)
- func (s *Service) AttachNetworkRouter(r *request.AttachNetworkRouterRequest) error
- func (s *Service) AttachStorage(r *request.AttachStorageRequest) (*upcloud.ServerDetails, error)
- func (s *Service) CancelManagedDatabaseConnection(r *request.CancelManagedDatabaseConnection) error
- func (s *Service) CloneManagedDatabase(r *request.CloneManagedDatabaseRequest) (*upcloud.ManagedDatabase, error)
- func (s *Service) CloneStorage(r *request.CloneStorageRequest) (*upcloud.StorageDetails, error)
- func (s *Service) CreateBackup(r *request.CreateBackupRequest) (*upcloud.StorageDetails, error)
- func (s *Service) CreateFirewallRule(r *request.CreateFirewallRuleRequest) (*upcloud.FirewallRule, error)
- func (s *Service) CreateFirewallRules(r *request.CreateFirewallRulesRequest) error
- func (s *Service) CreateManagedDatabase(r *request.CreateManagedDatabaseRequest) (*upcloud.ManagedDatabase, error)
- func (s *Service) CreateManagedDatabaseLogicalDatabase(r *request.CreateManagedDatabaseLogicalDatabaseRequest) (*upcloud.ManagedDatabaseLogicalDatabase, error)
- func (s *Service) CreateManagedDatabaseUser(r *request.CreateManagedDatabaseUserRequest) (*upcloud.ManagedDatabaseUser, error)
- func (s *Service) CreateNetwork(r *request.CreateNetworkRequest) (*upcloud.Network, error)
- func (s *Service) CreateNetworkInterface(r *request.CreateNetworkInterfaceRequest) (*upcloud.Interface, error)
- func (s *Service) CreateObjectStorage(r *request.CreateObjectStorageRequest) (*upcloud.ObjectStorageDetails, error)
- func (s *Service) CreateRouter(r *request.CreateRouterRequest) (*upcloud.Router, error)
- func (s *Service) CreateServer(r *request.CreateServerRequest) (*upcloud.ServerDetails, error)
- func (s *Service) CreateStorage(r *request.CreateStorageRequest) (*upcloud.StorageDetails, error)
- func (s *Service) CreateStorageImport(r *request.CreateStorageImportRequest) (*upcloud.StorageImportDetails, error)
- func (s *Service) CreateTag(r *request.CreateTagRequest) (*upcloud.Tag, error)
- func (s *Service) DeleteFirewallRule(r *request.DeleteFirewallRuleRequest) error
- func (s *Service) DeleteManagedDatabase(r *request.DeleteManagedDatabaseRequest) error
- func (s *Service) DeleteManagedDatabaseLogicalDatabase(r *request.DeleteManagedDatabaseLogicalDatabaseRequest) error
- func (s *Service) DeleteManagedDatabaseUser(r *request.DeleteManagedDatabaseUserRequest) error
- func (s *Service) DeleteNetwork(r *request.DeleteNetworkRequest) error
- func (s *Service) DeleteNetworkInterface(r *request.DeleteNetworkInterfaceRequest) error
- func (s *Service) DeleteObjectStorage(r *request.DeleteObjectStorageRequest) error
- func (s *Service) DeleteRouter(r *request.DeleteRouterRequest) error
- func (s *Service) DeleteServer(r *request.DeleteServerRequest) error
- func (s *Service) DeleteServerAndStorages(r *request.DeleteServerAndStoragesRequest) error
- func (s *Service) DeleteStorage(r *request.DeleteStorageRequest) error
- func (s *Service) DeleteTag(r *request.DeleteTagRequest) error
- func (s *Service) DetachNetworkRouter(r *request.DetachNetworkRouterRequest) error
- func (s *Service) DetachStorage(r *request.DetachStorageRequest) (*upcloud.ServerDetails, error)
- func (s *Service) EjectCDROM(r *request.EjectCDROMRequest) (*upcloud.ServerDetails, error)
- func (s *Service) GetAccount() (*upcloud.Account, error)
- func (s *Service) GetFirewallRuleDetails(r *request.GetFirewallRuleDetailsRequest) (*upcloud.FirewallRule, error)
- func (s *Service) GetFirewallRules(r *request.GetFirewallRulesRequest) (*upcloud.FirewallRules, error)
- func (s *Service) GetHostDetails(r *request.GetHostDetailsRequest) (*upcloud.Host, error)
- func (s *Service) GetHosts() (*upcloud.Hosts, error)
- func (s *Service) GetIPAddressDetails(r *request.GetIPAddressDetailsRequest) (*upcloud.IPAddress, error)
- func (s *Service) GetIPAddresses() (*upcloud.IPAddresses, error)
- func (s *Service) GetManagedDatabase(r *request.GetManagedDatabaseRequest) (*upcloud.ManagedDatabase, error)
- func (s *Service) GetManagedDatabaseConnections(r *request.GetManagedDatabaseConnectionsRequest) ([]upcloud.ManagedDatabaseConnection, error)
- func (s *Service) GetManagedDatabaseLogicalDatabases(r *request.GetManagedDatabaseLogicalDatabasesRequest) ([]upcloud.ManagedDatabaseLogicalDatabase, error)
- func (s *Service) GetManagedDatabaseLogs(r *request.GetManagedDatabaseLogsRequest) (*upcloud.ManagedDatabaseLogs, error)
- func (s *Service) GetManagedDatabaseMetrics(r *request.GetManagedDatabaseMetricsRequest) (*upcloud.ManagedDatabaseMetrics, error)
- func (s *Service) GetManagedDatabaseQueryStatisticsMySQL(r *request.GetManagedDatabaseQueryStatisticsRequest) ([]upcloud.ManagedDatabaseQueryStatisticsMySQL, error)
- func (s *Service) GetManagedDatabaseQueryStatisticsPostgreSQL(r *request.GetManagedDatabaseQueryStatisticsRequest) ([]upcloud.ManagedDatabaseQueryStatisticsPostgreSQL, error)
- func (s *Service) GetManagedDatabaseUser(r *request.GetManagedDatabaseUserRequest) (*upcloud.ManagedDatabaseUser, error)
- func (s *Service) GetManagedDatabaseUsers(r *request.GetManagedDatabaseUsersRequest) ([]upcloud.ManagedDatabaseUser, error)
- func (s *Service) GetManagedDatabases(r *request.GetManagedDatabasesRequest) ([]upcloud.ManagedDatabase, error)
- func (s *Service) GetNetworkDetails(r *request.GetNetworkDetailsRequest) (*upcloud.Network, error)
- func (s *Service) GetNetworks() (*upcloud.Networks, error)
- func (s *Service) GetNetworksInZone(r *request.GetNetworksInZoneRequest) (*upcloud.Networks, error)
- func (s *Service) GetObjectStorageDetails(r *request.GetObjectStorageDetailsRequest) (*upcloud.ObjectStorageDetails, error)
- func (s *Service) GetObjectStorages() (*upcloud.ObjectStorages, error)
- func (s *Service) GetPlans() (*upcloud.Plans, error)
- func (s *Service) GetPriceZones() (*upcloud.PriceZones, error)
- func (s *Service) GetRouterDetails(r *request.GetRouterDetailsRequest) (*upcloud.Router, error)
- func (s *Service) GetRouters() (*upcloud.Routers, error)
- func (s *Service) GetServerConfigurations() (*upcloud.ServerConfigurations, error)
- func (s *Service) GetServerDetails(r *request.GetServerDetailsRequest) (*upcloud.ServerDetails, error)
- func (s *Service) GetServerNetworks(r *request.GetServerNetworksRequest) (*upcloud.Networking, error)
- func (s *Service) GetServers() (*upcloud.Servers, error)
- func (s *Service) GetStorageDetails(r *request.GetStorageDetailsRequest) (*upcloud.StorageDetails, error)
- func (s *Service) GetStorageImportDetails(r *request.GetStorageImportDetailsRequest) (*upcloud.StorageImportDetails, error)
- func (s *Service) GetStorages(r *request.GetStoragesRequest) (*upcloud.Storages, error)
- func (s *Service) GetTags() (*upcloud.Tags, error)
- func (s *Service) GetTimeZones() (*upcloud.TimeZones, error)
- func (s *Service) GetZones() (*upcloud.Zones, error)
- func (s *Service) LoadCDROM(r *request.LoadCDROMRequest) (*upcloud.ServerDetails, error)
- func (s *Service) ModifyHost(r *request.ModifyHostRequest) (*upcloud.Host, error)
- func (s *Service) ModifyIPAddress(r *request.ModifyIPAddressRequest) (*upcloud.IPAddress, error)
- func (s *Service) ModifyManagedDatabase(r *request.ModifyManagedDatabaseRequest) (*upcloud.ManagedDatabase, error)
- func (s *Service) ModifyManagedDatabaseUser(r *request.ModifyManagedDatabaseUserRequest) (*upcloud.ManagedDatabaseUser, error)
- func (s *Service) ModifyNetwork(r *request.ModifyNetworkRequest) (*upcloud.Network, error)
- func (s *Service) ModifyNetworkInterface(r *request.ModifyNetworkInterfaceRequest) (*upcloud.Interface, error)
- func (s *Service) ModifyObjectStorage(r *request.ModifyObjectStorageRequest) (*upcloud.ObjectStorageDetails, error)
- func (s *Service) ModifyRouter(r *request.ModifyRouterRequest) (*upcloud.Router, error)
- func (s *Service) ModifyServer(r *request.ModifyServerRequest) (*upcloud.ServerDetails, error)
- func (s *Service) ModifyStorage(r *request.ModifyStorageRequest) (*upcloud.StorageDetails, error)
- func (s *Service) ModifyTag(r *request.ModifyTagRequest) (*upcloud.Tag, error)
- func (s *Service) ReleaseIPAddress(r *request.ReleaseIPAddressRequest) error
- func (s *Service) RestartServer(r *request.RestartServerRequest) (*upcloud.ServerDetails, error)
- func (s *Service) RestoreBackup(r *request.RestoreBackupRequest) error
- func (s *Service) ShutdownManagedDatabase(r *request.ShutdownManagedDatabaseRequest) (*upcloud.ManagedDatabase, error)
- func (s *Service) StartManagedDatabase(r *request.StartManagedDatabaseRequest) (*upcloud.ManagedDatabase, error)
- func (s *Service) StartServer(r *request.StartServerRequest) (*upcloud.ServerDetails, error)
- func (s *Service) StopServer(r *request.StopServerRequest) (*upcloud.ServerDetails, error)
- func (s *Service) TagServer(r *request.TagServerRequest) (*upcloud.ServerDetails, error)
- func (s *Service) TemplatizeStorage(r *request.TemplatizeStorageRequest) (*upcloud.StorageDetails, error)
- func (s *Service) UntagServer(r *request.UntagServerRequest) (*upcloud.ServerDetails, error)
- func (s *Service) WaitForManagedDatabaseState(r *request.WaitForManagedDatabaseStateRequest) (*upcloud.ManagedDatabase, error)
- func (s *Service) WaitForServerState(r *request.WaitForServerStateRequest) (*upcloud.ServerDetails, error)
- func (s *Service) WaitForStorageImportCompletion(r *request.WaitForStorageImportCompletionRequest) (*upcloud.StorageImportDetails, error)
- func (s *Service) WaitForStorageState(r *request.WaitForStorageStateRequest) (*upcloud.StorageDetails, error)
- type Storage
- type Tag
- type TimeZones
Constants ¶
This section is empty.
Variables ¶
var ErrCancelManagedDatabaseConnection = errors.New("managed database connection cancellation failed")
Functions ¶
This section is empty.
Types ¶
type Firewall ¶
type Firewall interface { GetFirewallRules(r *request.GetFirewallRulesRequest) (*upcloud.FirewallRules, error) GetFirewallRuleDetails(r *request.GetFirewallRuleDetailsRequest) (*upcloud.FirewallRule, error) CreateFirewallRule(r *request.CreateFirewallRuleRequest) (*upcloud.FirewallRule, error) CreateFirewallRules(r *request.CreateFirewallRulesRequest) error DeleteFirewallRule(r *request.DeleteFirewallRuleRequest) error }
type IpAddress ¶
type IpAddress interface { GetIPAddresses() (*upcloud.IPAddresses, error) GetIPAddressDetails(r *request.GetIPAddressDetailsRequest) (*upcloud.IPAddress, error) AssignIPAddress(r *request.AssignIPAddressRequest) (*upcloud.IPAddress, error) ModifyIPAddress(r *request.ModifyIPAddressRequest) (*upcloud.IPAddress, error) ReleaseIPAddress(r *request.ReleaseIPAddressRequest) error }
type ManagedDatabaseLogicalDatabaseManager ¶
type ManagedDatabaseLogicalDatabaseManager interface { CreateManagedDatabaseLogicalDatabase(r *request.CreateManagedDatabaseLogicalDatabaseRequest) (*upcloud.ManagedDatabaseLogicalDatabase, error) GetManagedDatabaseLogicalDatabases(r *request.GetManagedDatabaseLogicalDatabasesRequest) ([]upcloud.ManagedDatabaseLogicalDatabase, error) DeleteManagedDatabaseLogicalDatabase(r *request.DeleteManagedDatabaseLogicalDatabaseRequest) error }
type ManagedDatabaseServiceManager ¶
type ManagedDatabaseServiceManager interface { CancelManagedDatabaseConnection(r *request.CancelManagedDatabaseConnection) error CloneManagedDatabase(r *request.CloneManagedDatabaseRequest) (*upcloud.ManagedDatabase, error) CreateManagedDatabase(r *request.CreateManagedDatabaseRequest) (*upcloud.ManagedDatabase, error) GetManagedDatabase(r *request.GetManagedDatabaseRequest) (*upcloud.ManagedDatabase, error) GetManagedDatabases(r *request.GetManagedDatabasesRequest) ([]upcloud.ManagedDatabase, error) GetManagedDatabaseConnections(r *request.GetManagedDatabaseConnectionsRequest) ([]upcloud.ManagedDatabaseConnection, error) GetManagedDatabaseMetrics(r *request.GetManagedDatabaseMetricsRequest) (*upcloud.ManagedDatabaseMetrics, error) GetManagedDatabaseLogs(r *request.GetManagedDatabaseLogsRequest) (*upcloud.ManagedDatabaseLogs, error) GetManagedDatabaseQueryStatisticsMySQL(r *request.GetManagedDatabaseQueryStatisticsRequest) ([]upcloud.ManagedDatabaseQueryStatisticsMySQL, error) GetManagedDatabaseQueryStatisticsPostgreSQL(r *request.GetManagedDatabaseQueryStatisticsRequest) ([]upcloud.ManagedDatabaseQueryStatisticsPostgreSQL, error) DeleteManagedDatabase(r *request.DeleteManagedDatabaseRequest) error ModifyManagedDatabase(r *request.ModifyManagedDatabaseRequest) (*upcloud.ManagedDatabase, error) StartManagedDatabase(r *request.StartManagedDatabaseRequest) (*upcloud.ManagedDatabase, error) ShutdownManagedDatabase(r *request.ShutdownManagedDatabaseRequest) (*upcloud.ManagedDatabase, error) WaitForManagedDatabaseState(r *request.WaitForManagedDatabaseStateRequest) (*upcloud.ManagedDatabase, error) }
type ManagedDatabaseUserManager ¶
type ManagedDatabaseUserManager interface { CreateManagedDatabaseUser(r *request.CreateManagedDatabaseUserRequest) (*upcloud.ManagedDatabaseUser, error) GetManagedDatabaseUser(r *request.GetManagedDatabaseUserRequest) (*upcloud.ManagedDatabaseUser, error) GetManagedDatabaseUsers(r *request.GetManagedDatabaseUsersRequest) ([]upcloud.ManagedDatabaseUser, error) DeleteManagedDatabaseUser(r *request.DeleteManagedDatabaseUserRequest) error ModifyManagedDatabaseUser(r *request.ModifyManagedDatabaseUserRequest) (*upcloud.ManagedDatabaseUser, error) }
type Network ¶
type Network interface { GetNetworks() (*upcloud.Networks, error) GetNetworksInZone(r *request.GetNetworksInZoneRequest) (*upcloud.Networks, error) CreateNetwork(r *request.CreateNetworkRequest) (*upcloud.Network, error) GetNetworkDetails(r *request.GetNetworkDetailsRequest) (*upcloud.Network, error) ModifyNetwork(r *request.ModifyNetworkRequest) (*upcloud.Network, error) DeleteNetwork(r *request.DeleteNetworkRequest) error AttachNetworkRouter(r *request.AttachNetworkRouterRequest) error DetachNetworkRouter(r *request.DetachNetworkRouterRequest) error GetServerNetworks(r *request.GetServerNetworksRequest) (*upcloud.Networking, error) CreateNetworkInterface(r *request.CreateNetworkInterfaceRequest) (*upcloud.Interface, error) ModifyNetworkInterface(r *request.ModifyNetworkInterfaceRequest) (*upcloud.Interface, error) DeleteNetworkInterface(r *request.DeleteNetworkInterfaceRequest) error GetRouters() (*upcloud.Routers, error) GetRouterDetails(r *request.GetRouterDetailsRequest) (*upcloud.Router, error) CreateRouter(r *request.CreateRouterRequest) (*upcloud.Router, error) ModifyRouter(r *request.ModifyRouterRequest) (*upcloud.Router, error) DeleteRouter(r *request.DeleteRouterRequest) error }
type ObjectStorage ¶
type ObjectStorage interface { GetObjectStorages() (*upcloud.ObjectStorages, error) GetObjectStorageDetails(r *request.GetObjectStorageDetailsRequest) (*upcloud.ObjectStorageDetails, error) CreateObjectStorage(r *request.CreateObjectStorageRequest) (*upcloud.ObjectStorageDetails, error) ModifyObjectStorage(r *request.ModifyObjectStorageRequest) (*upcloud.ObjectStorageDetails, error) DeleteObjectStorage(r *request.DeleteObjectStorageRequest) error }
type PriceZones ¶
type PriceZones interface {
GetPriceZones() (*upcloud.PriceZones, error)
}
type Server ¶
type Server interface { GetServerConfigurations() (*upcloud.ServerConfigurations, error) GetServers() (*upcloud.Servers, error) GetServerDetails(r *request.GetServerDetailsRequest) (*upcloud.ServerDetails, error) CreateServer(r *request.CreateServerRequest) (*upcloud.ServerDetails, error) WaitForServerState(r *request.WaitForServerStateRequest) (*upcloud.ServerDetails, error) StartServer(r *request.StartServerRequest) (*upcloud.ServerDetails, error) StopServer(r *request.StopServerRequest) (*upcloud.ServerDetails, error) RestartServer(r *request.RestartServerRequest) (*upcloud.ServerDetails, error) ModifyServer(r *request.ModifyServerRequest) (*upcloud.ServerDetails, error) DeleteServer(r *request.DeleteServerRequest) error DeleteServerAndStorages(r *request.DeleteServerAndStoragesRequest) error }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents the API service. The specified client is used to communicate with the API
func (*Service) AssignIPAddress ¶
AssignIPAddress assigns the specified IP address to the specified server
func (*Service) AttachNetworkRouter ¶
func (s *Service) AttachNetworkRouter(r *request.AttachNetworkRouterRequest) error
AttachNetworkRouter attaches a router to the specified network.
func (*Service) AttachStorage ¶
func (s *Service) AttachStorage(r *request.AttachStorageRequest) (*upcloud.ServerDetails, error)
AttachStorage attaches the specified storage to the specified server
func (*Service) CancelManagedDatabaseConnection ¶
func (s *Service) CancelManagedDatabaseConnection(r *request.CancelManagedDatabaseConnection) error
CancelManagedDatabaseConnection (EXPERIMENTAL) cancels a current query of a database connection or terminates it entirely. In case of the server is unable to cancel the query or terminate the connection ErrCancelManagedDatabaseConnection is returned.
func (*Service) CloneManagedDatabase ¶
func (s *Service) CloneManagedDatabase(r *request.CloneManagedDatabaseRequest) (*upcloud.ManagedDatabase, error)
CloneManagedDatabase (EXPERIMENTAL) clones en existing managed database instance
func (*Service) CloneStorage ¶
func (s *Service) CloneStorage(r *request.CloneStorageRequest) (*upcloud.StorageDetails, error)
CloneStorage detaches the specified storage from the specified server
func (*Service) CreateBackup ¶
func (s *Service) CreateBackup(r *request.CreateBackupRequest) (*upcloud.StorageDetails, error)
CreateBackup creates a backup of the specified storage
func (*Service) CreateFirewallRule ¶
func (s *Service) CreateFirewallRule(r *request.CreateFirewallRuleRequest) (*upcloud.FirewallRule, error)
CreateFirewallRule creates the firewall rule
func (*Service) CreateFirewallRules ¶
func (s *Service) CreateFirewallRules(r *request.CreateFirewallRulesRequest) error
CreateFirewallRules creates multiple firewall rules
func (*Service) CreateManagedDatabase ¶
func (s *Service) CreateManagedDatabase(r *request.CreateManagedDatabaseRequest) (*upcloud.ManagedDatabase, error)
CreateManagedDatabase (EXPERIMENTAL) creates a new managed database instance
func (*Service) CreateManagedDatabaseLogicalDatabase ¶
func (s *Service) CreateManagedDatabaseLogicalDatabase(r *request.CreateManagedDatabaseLogicalDatabaseRequest) (*upcloud.ManagedDatabaseLogicalDatabase, error)
CreateManagedDatabaseLogicalDatabase (EXPERIMENTAL) creates a new logical database to an existing managed database instance
func (*Service) CreateManagedDatabaseUser ¶
func (s *Service) CreateManagedDatabaseUser(r *request.CreateManagedDatabaseUserRequest) (*upcloud.ManagedDatabaseUser, error)
CreateManagedDatabaseUser (EXPERIMENTAL) creates a new normal user to an existing managed database instance
func (*Service) CreateNetwork ¶
CreateNetwork creates a new network and returns the network details for the new network.
func (*Service) CreateNetworkInterface ¶
func (s *Service) CreateNetworkInterface(r *request.CreateNetworkInterfaceRequest) (*upcloud.Interface, error)
CreateNetworkInterface creates a new network interface on the specified server.
func (*Service) CreateObjectStorage ¶
func (s *Service) CreateObjectStorage(r *request.CreateObjectStorageRequest) (*upcloud.ObjectStorageDetails, error)
CreateObjectStorage creates a Object Storage and return the Object Storage details for the newly created device
func (*Service) CreateRouter ¶
CreateRouter creates a new router.
func (*Service) CreateServer ¶
func (s *Service) CreateServer(r *request.CreateServerRequest) (*upcloud.ServerDetails, error)
CreateServer creates a server and returns the server details for the newly created server
func (*Service) CreateStorage ¶
func (s *Service) CreateStorage(r *request.CreateStorageRequest) (*upcloud.StorageDetails, error)
CreateStorage creates the specified storage
func (*Service) CreateStorageImport ¶
func (s *Service) CreateStorageImport(r *request.CreateStorageImportRequest) (*upcloud.StorageImportDetails, error)
CreateStorageImport begins the process of importing an image onto a storage device. A `upcloud.StorageImportSourceHTTPImport` source will import from an HTTP source. `upcloud.StorageImportSourceDirectUpload` will directly upload the file specified in `SourceLocation`.
func (*Service) CreateTag ¶
CreateTag creates a new tag, optionally assigning it to one or more servers at the same time
func (*Service) DeleteFirewallRule ¶
func (s *Service) DeleteFirewallRule(r *request.DeleteFirewallRuleRequest) error
DeleteFirewallRule deletes the specified firewall rule
func (*Service) DeleteManagedDatabase ¶
func (s *Service) DeleteManagedDatabase(r *request.DeleteManagedDatabaseRequest) error
DeleteManagedDatabase (EXPERIMENTAL) deletes an existing managed database instance
func (*Service) DeleteManagedDatabaseLogicalDatabase ¶
func (s *Service) DeleteManagedDatabaseLogicalDatabase(r *request.DeleteManagedDatabaseLogicalDatabaseRequest) error
DeleteManagedDatabaseLogicalDatabase (EXPERIMENTAL) deletes an existing logical database of an existing managed database instance
func (*Service) DeleteManagedDatabaseUser ¶
func (s *Service) DeleteManagedDatabaseUser(r *request.DeleteManagedDatabaseUserRequest) error
DeleteManagedDatabaseUser (EXPERIMENTAL) deletes an existing user of an existing managed database instance
func (*Service) DeleteNetwork ¶
func (s *Service) DeleteNetwork(r *request.DeleteNetworkRequest) error
DeleteNetwork deletes the specified network.
func (*Service) DeleteNetworkInterface ¶
func (s *Service) DeleteNetworkInterface(r *request.DeleteNetworkInterfaceRequest) error
DeleteNetworkInterface removes the specified network interface from the specified server.
func (*Service) DeleteObjectStorage ¶
func (s *Service) DeleteObjectStorage(r *request.DeleteObjectStorageRequest) error
DeleteObjectStorage deletes the specific Object Storage
func (*Service) DeleteRouter ¶
func (s *Service) DeleteRouter(r *request.DeleteRouterRequest) error
DeleteRouter deletes the specified router.
func (*Service) DeleteServer ¶
func (s *Service) DeleteServer(r *request.DeleteServerRequest) error
DeleteServer deletes the specified server
func (*Service) DeleteServerAndStorages ¶
func (s *Service) DeleteServerAndStorages(r *request.DeleteServerAndStoragesRequest) error
DeleteServerAndStorages deletes the specified server and all attached storages
func (*Service) DeleteStorage ¶
func (s *Service) DeleteStorage(r *request.DeleteStorageRequest) error
DeleteStorage deletes the specified storage device
func (*Service) DeleteTag ¶
func (s *Service) DeleteTag(r *request.DeleteTagRequest) error
DeleteTag deletes the specified tag
func (*Service) DetachNetworkRouter ¶
func (s *Service) DetachNetworkRouter(r *request.DetachNetworkRouterRequest) error
DetachNetworkRouter detaches a router from the specified network.
func (*Service) DetachStorage ¶
func (s *Service) DetachStorage(r *request.DetachStorageRequest) (*upcloud.ServerDetails, error)
DetachStorage detaches the specified storage from the specified server
func (*Service) EjectCDROM ¶
func (s *Service) EjectCDROM(r *request.EjectCDROMRequest) (*upcloud.ServerDetails, error)
EjectCDROM ejects the storage from the CD-ROM device of a server
func (*Service) GetAccount ¶
GetAccount returns the current user's account
func (*Service) GetFirewallRuleDetails ¶
func (s *Service) GetFirewallRuleDetails(r *request.GetFirewallRuleDetailsRequest) (*upcloud.FirewallRule, error)
GetFirewallRuleDetails returns extended details about the specified firewall rule
func (*Service) GetFirewallRules ¶
func (s *Service) GetFirewallRules(r *request.GetFirewallRulesRequest) (*upcloud.FirewallRules, error)
GetFirewallRules returns the firewall rules for the specified server
func (*Service) GetHostDetails ¶
GetHostDetails returns the details for a single private host
func (*Service) GetIPAddressDetails ¶
func (s *Service) GetIPAddressDetails(r *request.GetIPAddressDetailsRequest) (*upcloud.IPAddress, error)
GetIPAddressDetails returns extended details about the specified IP address
func (*Service) GetIPAddresses ¶
func (s *Service) GetIPAddresses() (*upcloud.IPAddresses, error)
GetIPAddresses returns all IP addresses associated with the account
func (*Service) GetManagedDatabase ¶
func (s *Service) GetManagedDatabase(r *request.GetManagedDatabaseRequest) (*upcloud.ManagedDatabase, error)
GetManagedDatabase (EXPERIMENTAL) gets details of an existing managed database instance
func (*Service) GetManagedDatabaseConnections ¶
func (s *Service) GetManagedDatabaseConnections(r *request.GetManagedDatabaseConnectionsRequest) ([]upcloud.ManagedDatabaseConnection, error)
GetManagedDatabaseConnections (EXPERIMENTAL) returns a slice of connections from an existing managed database instance
func (*Service) GetManagedDatabaseLogicalDatabases ¶
func (s *Service) GetManagedDatabaseLogicalDatabases(r *request.GetManagedDatabaseLogicalDatabasesRequest) ([]upcloud.ManagedDatabaseLogicalDatabase, error)
GetManagedDatabaseLogicalDatabases (EXPERIMENTAL) returns a slice of all logical databases of an existing managed database instance
func (*Service) GetManagedDatabaseLogs ¶
func (s *Service) GetManagedDatabaseLogs(r *request.GetManagedDatabaseLogsRequest) (*upcloud.ManagedDatabaseLogs, error)
GetManagedDatabaseLogs (EXPERIMENTAL) returns logs of a managed database instance
func (*Service) GetManagedDatabaseMetrics ¶
func (s *Service) GetManagedDatabaseMetrics(r *request.GetManagedDatabaseMetricsRequest) (*upcloud.ManagedDatabaseMetrics, error)
GetManagedDatabaseMetrics (EXPERIMENTAL) returns metrics collection for the selected period
func (*Service) GetManagedDatabaseQueryStatisticsMySQL ¶
func (s *Service) GetManagedDatabaseQueryStatisticsMySQL(r *request.GetManagedDatabaseQueryStatisticsRequest) ([]upcloud.ManagedDatabaseQueryStatisticsMySQL, error)
GetManagedDatabaseQueryStatisticsMySQL (EXPERIMENTAL) returns MySQL query statistics of a managed database instance
func (*Service) GetManagedDatabaseQueryStatisticsPostgreSQL ¶
func (s *Service) GetManagedDatabaseQueryStatisticsPostgreSQL(r *request.GetManagedDatabaseQueryStatisticsRequest) ([]upcloud.ManagedDatabaseQueryStatisticsPostgreSQL, error)
GetManagedDatabaseQueryStatisticsPostgres (EXPERIMENTAL) returns PostgreSQL query statistics of a managed database instance
func (*Service) GetManagedDatabaseUser ¶
func (s *Service) GetManagedDatabaseUser(r *request.GetManagedDatabaseUserRequest) (*upcloud.ManagedDatabaseUser, error)
GetManagedDatabaseUser (EXPERIMENTAL) returns details of an existing user of an existing managed database instance
func (*Service) GetManagedDatabaseUsers ¶
func (s *Service) GetManagedDatabaseUsers(r *request.GetManagedDatabaseUsersRequest) ([]upcloud.ManagedDatabaseUser, error)
GetManagedDatabaseUsers (EXPERIMENTAL) returns a slice of all users of an existing managed database instance
func (*Service) GetManagedDatabases ¶
func (s *Service) GetManagedDatabases(r *request.GetManagedDatabasesRequest) ([]upcloud.ManagedDatabase, error)
GetManagedDatabases (EXPERIMENTAL) returns a slice of all managed database instances within an account
func (*Service) GetNetworkDetails ¶
GetNetworkDetails returns the details for the specified network.
func (*Service) GetNetworks ¶
GetNetworks returns the all the available networks
func (*Service) GetNetworksInZone ¶
GetNetworksInZone returns the all the available networks within the specified zone.
func (*Service) GetObjectStorageDetails ¶
func (s *Service) GetObjectStorageDetails(r *request.GetObjectStorageDetailsRequest) (*upcloud.ObjectStorageDetails, error)
GetObjectStorageDetails returns extended details about the specified Object Storage
func (*Service) GetObjectStorages ¶
func (s *Service) GetObjectStorages() (*upcloud.ObjectStorages, error)
GetObjectStorages returns the available objects storages
func (*Service) GetPriceZones ¶
func (s *Service) GetPriceZones() (*upcloud.PriceZones, error)
GetPriceZones returns the available price zones and their corresponding prices
func (*Service) GetRouterDetails ¶
GetRouterDetails returns the details for the specified router.
func (*Service) GetRouters ¶
GetRouters returns the all the available routers
func (*Service) GetServerConfigurations ¶
func (s *Service) GetServerConfigurations() (*upcloud.ServerConfigurations, error)
GetServerConfigurations returns the available pre-configured server configurations
func (*Service) GetServerDetails ¶
func (s *Service) GetServerDetails(r *request.GetServerDetailsRequest) (*upcloud.ServerDetails, error)
GetServerDetails returns extended details about the specified server
func (*Service) GetServerNetworks ¶
func (s *Service) GetServerNetworks(r *request.GetServerNetworksRequest) (*upcloud.Networking, error)
GetServerNetworks returns all the networks associated with the specified server.
func (*Service) GetServers ¶
GetServers returns the available servers
func (*Service) GetStorageDetails ¶
func (s *Service) GetStorageDetails(r *request.GetStorageDetailsRequest) (*upcloud.StorageDetails, error)
GetStorageDetails returns extended details about the specified piece of storage
func (*Service) GetStorageImportDetails ¶
func (s *Service) GetStorageImportDetails(r *request.GetStorageImportDetailsRequest) (*upcloud.StorageImportDetails, error)
GetStorageImportDetails gets updated details about the specified storage import.
func (*Service) GetStorages ¶
GetStorages returns all available storages
func (*Service) GetTimeZones ¶
GetTimeZones returns the available timezones
func (*Service) LoadCDROM ¶
func (s *Service) LoadCDROM(r *request.LoadCDROMRequest) (*upcloud.ServerDetails, error)
LoadCDROM loads a storage as a CD-ROM in the CD-ROM device of a server
func (*Service) ModifyHost ¶
ModifyHost modifies the configuration of an existing host.
func (*Service) ModifyIPAddress ¶
ModifyIPAddress modifies the specified IP address
func (*Service) ModifyManagedDatabase ¶
func (s *Service) ModifyManagedDatabase(r *request.ModifyManagedDatabaseRequest) (*upcloud.ManagedDatabase, error)
ModifyManagedDatabase (EXPERIMENTAL) modifies an existing managed database instance
func (*Service) ModifyManagedDatabaseUser ¶
func (s *Service) ModifyManagedDatabaseUser(r *request.ModifyManagedDatabaseUserRequest) (*upcloud.ManagedDatabaseUser, error)
ModifyManagedDatabaseUser (EXPERIMENTAL) modifies an existing user of an existing managed database instance
func (*Service) ModifyNetwork ¶
ModifyNetwork modifies the existing specified network.
func (*Service) ModifyNetworkInterface ¶
func (s *Service) ModifyNetworkInterface(r *request.ModifyNetworkInterfaceRequest) (*upcloud.Interface, error)
ModifyNetworkInterface modifies the specified network interface on the specified server.
func (*Service) ModifyObjectStorage ¶
func (s *Service) ModifyObjectStorage(r *request.ModifyObjectStorageRequest) (*upcloud.ObjectStorageDetails, error)
ModifyObjectStorage modifies the configuration of an existing Object Storage
func (*Service) ModifyRouter ¶
ModifyRouter modifies the configuration of the specified existing router.
func (*Service) ModifyServer ¶
func (s *Service) ModifyServer(r *request.ModifyServerRequest) (*upcloud.ServerDetails, error)
ModifyServer modifies the configuration of an existing server. Attaching and detaching storages as well as assigning and releasing IP addresses have their own separate operations.
func (*Service) ModifyStorage ¶
func (s *Service) ModifyStorage(r *request.ModifyStorageRequest) (*upcloud.StorageDetails, error)
ModifyStorage modifies the specified storage device
func (*Service) ReleaseIPAddress ¶
func (s *Service) ReleaseIPAddress(r *request.ReleaseIPAddressRequest) error
ReleaseIPAddress releases the specified IP address from the server it is attached to
func (*Service) RestartServer ¶
func (s *Service) RestartServer(r *request.RestartServerRequest) (*upcloud.ServerDetails, error)
RestartServer restarts the specified server
func (*Service) RestoreBackup ¶
func (s *Service) RestoreBackup(r *request.RestoreBackupRequest) error
RestoreBackup creates a backup of the specified storage
func (*Service) ShutdownManagedDatabase ¶
func (s *Service) ShutdownManagedDatabase(r *request.ShutdownManagedDatabaseRequest) (*upcloud.ManagedDatabase, error)
ShutdownManagedDatabase (EXPERIMENTAL) shuts down existing managed database instance. Only a service which has at least one full backup can be shut down.
func (*Service) StartManagedDatabase ¶
func (s *Service) StartManagedDatabase(r *request.StartManagedDatabaseRequest) (*upcloud.ManagedDatabase, error)
StartManagedDatabase (EXPERIMENTAL) starts a shut down existing managed database instance
func (*Service) StartServer ¶
func (s *Service) StartServer(r *request.StartServerRequest) (*upcloud.ServerDetails, error)
StartServer starts the specified server
func (*Service) StopServer ¶
func (s *Service) StopServer(r *request.StopServerRequest) (*upcloud.ServerDetails, error)
StopServer stops the specified server
func (*Service) TagServer ¶
func (s *Service) TagServer(r *request.TagServerRequest) (*upcloud.ServerDetails, error)
TagServer tags a server with with one or more tags
func (*Service) TemplatizeStorage ¶
func (s *Service) TemplatizeStorage(r *request.TemplatizeStorageRequest) (*upcloud.StorageDetails, error)
TemplatizeStorage detaches the specified storage from the specified server
func (*Service) UntagServer ¶
func (s *Service) UntagServer(r *request.UntagServerRequest) (*upcloud.ServerDetails, error)
UntagServer removes one or more tags from a server
func (*Service) WaitForManagedDatabaseState ¶
func (s *Service) WaitForManagedDatabaseState(r *request.WaitForManagedDatabaseStateRequest) (*upcloud.ManagedDatabase, error)
WaitForManagedDatabaseState (EXPERIMENTAL) blocks execution until the specified managed database instance has entered the specified state. If the state changes favorably, the new managed database details is returned. The method will give up after the specified timeout
func (*Service) WaitForServerState ¶
func (s *Service) WaitForServerState(r *request.WaitForServerStateRequest) (*upcloud.ServerDetails, error)
WaitForServerState blocks execution until the specified server has entered the specified state. If the state changes favorably, the new server details are returned. The method will give up after the specified timeout
func (*Service) WaitForStorageImportCompletion ¶
func (s *Service) WaitForStorageImportCompletion(r *request.WaitForStorageImportCompletionRequest) (*upcloud.StorageImportDetails, error)
WaitForStorageImportCompletion waits for the importing storage to complete.
func (*Service) WaitForStorageState ¶
func (s *Service) WaitForStorageState(r *request.WaitForStorageStateRequest) (*upcloud.StorageDetails, error)
WaitForStorageState blocks execution until the specified storage device has entered the specified state. If the state changes favorably, the new storage details is returned. The method will give up after the specified timeout
type Storage ¶
type Storage interface { GetStorages(r *request.GetStoragesRequest) (*upcloud.Storages, error) GetStorageDetails(r *request.GetStorageDetailsRequest) (*upcloud.StorageDetails, error) CreateStorage(r *request.CreateStorageRequest) (*upcloud.StorageDetails, error) ModifyStorage(r *request.ModifyStorageRequest) (*upcloud.StorageDetails, error) AttachStorage(r *request.AttachStorageRequest) (*upcloud.ServerDetails, error) DetachStorage(r *request.DetachStorageRequest) (*upcloud.ServerDetails, error) CloneStorage(r *request.CloneStorageRequest) (*upcloud.StorageDetails, error) TemplatizeStorage(r *request.TemplatizeStorageRequest) (*upcloud.StorageDetails, error) WaitForStorageState(r *request.WaitForStorageStateRequest) (*upcloud.StorageDetails, error) LoadCDROM(r *request.LoadCDROMRequest) (*upcloud.ServerDetails, error) EjectCDROM(r *request.EjectCDROMRequest) (*upcloud.ServerDetails, error) CreateBackup(r *request.CreateBackupRequest) (*upcloud.StorageDetails, error) RestoreBackup(r *request.RestoreBackupRequest) error CreateStorageImport(r *request.CreateStorageImportRequest) (*upcloud.StorageImportDetails, error) GetStorageImportDetails(r *request.GetStorageImportDetailsRequest) (*upcloud.StorageImportDetails, error) WaitForStorageImportCompletion(r *request.WaitForStorageImportCompletionRequest) (*upcloud.StorageImportDetails, error) DeleteStorage(*request.DeleteStorageRequest) error }
type Tag ¶
type Tag interface { GetTags() (*upcloud.Tags, error) CreateTag(r *request.CreateTagRequest) (*upcloud.Tag, error) ModifyTag(r *request.ModifyTagRequest) (*upcloud.Tag, error) DeleteTag(r *request.DeleteTagRequest) error TagServer(r *request.TagServerRequest) (*upcloud.ServerDetails, error) UntagServer(r *request.UntagServerRequest) (*upcloud.ServerDetails, error) }