Documentation ¶
Index ¶
- type Service
- func (s *Service) AssignIPAddress(r *request.AssignIPAddressRequest) (*upcloud.IPAddress, error)
- func (s *Service) AttachStorage(r *request.AttachStorageRequest) (*upcloud.ServerDetails, 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) CreateServer(r *request.CreateServerRequest) (*upcloud.ServerDetails, error)
- func (s *Service) CreateStorage(r *request.CreateStorageRequest) (*upcloud.StorageDetails, error)
- func (s *Service) CreateTag(r *request.CreateTagRequest) (*upcloud.Tag, error)
- func (s *Service) DeleteFirewallRule(r *request.DeleteFirewallRuleRequest) 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) 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) GetIPAddressDetails(r *request.GetIPAddressDetailsRequest) (*upcloud.IPAddress, error)
- func (s *Service) GetIPAddresses() (*upcloud.IPAddresses, error)
- func (s *Service) GetPlans() (*upcloud.Plans, error)
- func (s *Service) GetPriceZones() (*upcloud.PrizeZones, error)
- func (s *Service) GetServerConfigurations() (*upcloud.ServerConfigurations, error)
- func (s *Service) GetServerDetails(r *request.GetServerDetailsRequest) (*upcloud.ServerDetails, error)
- func (s *Service) GetServers() (*upcloud.Servers, error)
- func (s *Service) GetStorageDetails(r *request.GetStorageDetailsRequest) (*upcloud.StorageDetails, 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) ModifyIPAddress(r *request.ModifyIPAddressRequest) (*upcloud.IPAddress, 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) 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) WaitForServerState(r *request.WaitForServerStateRequest) (*upcloud.ServerDetails, error)
- func (s *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 ¶
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) AttachStorage ¶
func (s *Service) AttachStorage(r *request.AttachStorageRequest) (*upcloud.ServerDetails, error)
AttachStorage attaches the specified storage to the specified server
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) 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) 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) 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) 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) 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) GetPriceZones ¶
func (s *Service) GetPriceZones() (*upcloud.PrizeZones, error)
GetPriceZones returns the available price zones and their corresponding prices
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) 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) 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) ModifyIPAddress ¶
ModifyIPAddress modifies the specified IP address
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) 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) 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) 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