service

package
v4.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCancelManagedDatabaseConnection = errors.New("managed database connection cancellation failed")

Functions

This section is empty.

Types

type Account

type Account interface {
	GetAccount() (*upcloud.Account, error)
}

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 Host

type Host interface {
	GetHosts() (*upcloud.Hosts, error)
	GetHostDetails(r *request.GetHostDetailsRequest) (*upcloud.Host, error)
	ModifyHost(r *request.ModifyHostRequest) (*upcloud.Host, 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 Plans

type Plans interface {
	GetPlans() (*upcloud.Plans, error)
}

type PriceZones

type PriceZones interface {
	GetPriceZones() (*upcloud.PriceZones, 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 New

func New(client *client.Client) *Service

New constructs and returns a new service object configured with the specified client

func (*Service) AssignIPAddress

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

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

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

CloneStorage detaches the specified storage from the specified server

func (*Service) CreateBackup

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

CreateManagedDatabaseLogicalDatabase (EXPERIMENTAL) creates a new logical database to an existing managed database instance

func (*Service) CreateManagedDatabaseUser

CreateManagedDatabaseUser (EXPERIMENTAL) creates a new normal user to an existing managed database instance

func (*Service) CreateNetwork

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

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

CreateObjectStorage creates a Object Storage and return the Object Storage details for the newly created device

func (*Service) CreateRouter

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

CreateRouter creates a new router.

func (*Service) CreateServer

CreateServer creates a server and returns the server details for the newly created server

func (*Service) CreateStorage

CreateStorage creates the specified storage

func (*Service) CreateStorageImport

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

func (s *Service) CreateTag(r *request.CreateTagRequest) (*upcloud.Tag, error)

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

DetachStorage detaches the specified storage from the specified server

func (*Service) EjectCDROM

EjectCDROM ejects the storage from the CD-ROM device of a server

func (*Service) GetAccount

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

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

func (s *Service) GetHostDetails(r *request.GetHostDetailsRequest) (*upcloud.Host, error)

GetHostDetails returns the details for a single private host

func (*Service) GetHosts

func (s *Service) GetHosts() (*upcloud.Hosts, error)

GetHosts returns the all the available private hosts

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

GetManagedDatabaseConnections (EXPERIMENTAL) returns a slice of connections from an existing managed database instance

func (*Service) GetManagedDatabaseLogicalDatabases

GetManagedDatabaseLogicalDatabases (EXPERIMENTAL) returns a slice of all logical databases of an existing managed database instance

func (*Service) GetManagedDatabaseLogs

GetManagedDatabaseLogs (EXPERIMENTAL) returns logs of a managed database instance

func (*Service) GetManagedDatabaseMetrics

GetManagedDatabaseMetrics (EXPERIMENTAL) returns metrics collection for the selected period

func (*Service) GetManagedDatabaseQueryStatisticsMySQL

GetManagedDatabaseQueryStatisticsMySQL (EXPERIMENTAL) returns MySQL query statistics of a managed database instance

func (*Service) GetManagedDatabaseQueryStatisticsPostgreSQL

GetManagedDatabaseQueryStatisticsPostgres (EXPERIMENTAL) returns PostgreSQL query statistics of a managed database instance

func (*Service) GetManagedDatabaseUser

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

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

GetNetworkDetails returns the details for the specified network.

func (*Service) GetNetworks

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

GetNetworks returns the all the available networks

func (*Service) GetNetworksInZone

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

GetNetworksInZone returns the all the available networks within the specified zone.

func (*Service) GetObjectStorageDetails

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) GetPlans

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

GetPlans returns the available service plans

func (*Service) GetPriceZones

func (s *Service) GetPriceZones() (*upcloud.PriceZones, error)

GetPriceZones returns the available price zones and their corresponding prices

func (*Service) GetRouterDetails

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

GetRouterDetails returns the details for the specified router.

func (*Service) GetRouters

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

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

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

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

GetStorageImportDetails gets updated details about the specified storage import.

func (*Service) GetStorages

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

GetStorages returns all available storages

func (*Service) GetTags

func (s *Service) GetTags() (*upcloud.Tags, error)

GetTags returns all tags

func (*Service) GetTimeZones

func (s *Service) GetTimeZones() (*upcloud.TimeZones, error)

GetTimeZones returns the available timezones

func (*Service) GetZones

func (s *Service) GetZones() (*upcloud.Zones, error)

GetZones returns the available zones

func (*Service) LoadCDROM

LoadCDROM loads a storage as a CD-ROM in the CD-ROM device of a server

func (*Service) ModifyHost

func (s *Service) ModifyHost(r *request.ModifyHostRequest) (*upcloud.Host, error)

ModifyHost modifies the configuration of an existing host.

func (*Service) ModifyIPAddress

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

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

ModifyManagedDatabaseUser (EXPERIMENTAL) modifies an existing user of an existing managed database instance

func (*Service) ModifyNetwork

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

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

ModifyObjectStorage modifies the configuration of an existing Object Storage

func (*Service) ModifyRouter

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

ModifyRouter modifies the configuration of the specified existing router.

func (*Service) ModifyServer

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

ModifyStorage modifies the specified storage device

func (*Service) ModifyTag

func (s *Service) ModifyTag(r *request.ModifyTagRequest) (*upcloud.Tag, error)

ModifyTag modifies a tag (e.g. renaming it)

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

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

StartServer starts the specified server

func (*Service) StopServer

StopServer stops the specified server

func (*Service) TagServer

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

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 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)
}

type TimeZones

type TimeZones interface {
	GetTimeZones() (*upcloud.TimeZones, error)
}

Jump to

Keyboard shortcuts

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