Versions in this module Expand all Collapse all v1 v1.38.1 Dec 26, 2022 Changes in this version + const Endpoint + const UserAgent + const Version + func Bool(b bool) *bool + func Duration(d time.Duration) *time.Duration + func Int(i int) *int + func IsError(err error, code ErrorCode) bool + func Ptr(p T) *T + func RDNSLookup(i interface{}, ip net.IP) (string, error) + func String(s string) *string + func SupportsRDNS(i interface{}) bool + func ValidateResourceLabels(labels map[string]interface{}) (bool, error) + type Action struct + Command string + ErrorCode string + ErrorMessage string + Finished time.Time + ID int + Progress int + Resources []*ActionResource + Started time.Time + Status ActionStatus + func ActionFromSchema(s schema.Action) *Action + func ActionsFromSchema(s []schema.Action) []*Action + func (a *Action) Error() error + type ActionClient struct + func (c *ActionClient) All(ctx context.Context) ([]*Action, error) + func (c *ActionClient) AllWithOpts(ctx context.Context, opts ActionListOpts) ([]*Action, error) + func (c *ActionClient) GetByID(ctx context.Context, id int) (*Action, *Response, error) + func (c *ActionClient) List(ctx context.Context, opts ActionListOpts) ([]*Action, *Response, error) + func (c *ActionClient) WatchOverallProgress(ctx context.Context, actions []*Action) (<-chan int, <-chan error) + func (c *ActionClient) WatchProgress(ctx context.Context, action *Action) (<-chan int, <-chan error) + type ActionError struct + Code string + Message string + func (e ActionError) Error() string + type ActionListOpts struct + ID []int + Sort []string + Status []ActionStatus + type ActionResource struct + ID int + Type ActionResourceType + type ActionResourceType string + const ActionResourceTypeFloatingIP + const ActionResourceTypeISO + const ActionResourceTypeImage + const ActionResourceTypeServer + const ActionResourceTypeVolume + type ActionStatus string + const ActionStatusError + const ActionStatusRunning + const ActionStatusSuccess + type BackoffFunc func(retries int) time.Duration + func ConstantBackoff(d time.Duration) BackoffFunc + func ExponentialBackoff(b float64, d time.Duration) BackoffFunc + type CPUType string + const CPUTypeDedicated + const CPUTypeShared + type Certificate struct + Certificate string + Created time.Time + DomainNames []string + Fingerprint string + ID int + Labels map[string]string + Name string + NotValidAfter time.Time + NotValidBefore time.Time + Status *CertificateStatus + Type CertificateType + UsedBy []CertificateUsedByRef + func CertificateFromSchema(s schema.Certificate) *Certificate + type CertificateClient struct + func (c *CertificateClient) All(ctx context.Context) ([]*Certificate, error) + func (c *CertificateClient) AllWithOpts(ctx context.Context, opts CertificateListOpts) ([]*Certificate, error) + func (c *CertificateClient) Create(ctx context.Context, opts CertificateCreateOpts) (*Certificate, *Response, error) + func (c *CertificateClient) CreateCertificate(ctx context.Context, opts CertificateCreateOpts) (CertificateCreateResult, *Response, error) + func (c *CertificateClient) Delete(ctx context.Context, certificate *Certificate) (*Response, error) + func (c *CertificateClient) Get(ctx context.Context, idOrName string) (*Certificate, *Response, error) + func (c *CertificateClient) GetByID(ctx context.Context, id int) (*Certificate, *Response, error) + func (c *CertificateClient) GetByName(ctx context.Context, name string) (*Certificate, *Response, error) + func (c *CertificateClient) List(ctx context.Context, opts CertificateListOpts) ([]*Certificate, *Response, error) + func (c *CertificateClient) RetryIssuance(ctx context.Context, certificate *Certificate) (*Action, *Response, error) + func (c *CertificateClient) Update(ctx context.Context, certificate *Certificate, opts CertificateUpdateOpts) (*Certificate, *Response, error) + type CertificateCreateOpts struct + Certificate string + DomainNames []string + Labels map[string]string + Name string + PrivateKey string + Type CertificateType + func (o CertificateCreateOpts) Validate() error + type CertificateCreateResult struct + Action *Action + Certificate *Certificate + type CertificateListOpts struct + Name string + Sort []string + type CertificateStatus struct + Error *Error + Issuance CertificateStatusType + Renewal CertificateStatusType + func (st *CertificateStatus) IsFailed() bool + type CertificateStatusType string + const CertificateStatusTypeCompleted + const CertificateStatusTypeFailed + const CertificateStatusTypePending + const CertificateStatusTypeScheduled + const CertificateStatusTypeUnavailable + type CertificateType string + const CertificateTypeManaged + const CertificateTypeUploaded + type CertificateUpdateOpts struct + Labels map[string]string + Name string + type CertificateUsedByRef struct + ID int + Type CertificateUsedByRefType + type CertificateUsedByRefType string + const CertificateUsedByRefTypeLoadBalancer + type Client struct + Action ActionClient + Certificate CertificateClient + Datacenter DatacenterClient + Firewall FirewallClient + FloatingIP FloatingIPClient + ISO ISOClient + Image ImageClient + LoadBalancer LoadBalancerClient + LoadBalancerType LoadBalancerTypeClient + Location LocationClient + Network NetworkClient + PlacementGroup PlacementGroupClient + Pricing PricingClient + PrimaryIP PrimaryIPClient + RDNS RDNSClient + SSHKey SSHKeyClient + Server ServerClient + ServerType ServerTypeClient + Volume VolumeClient + func NewClient(options ...ClientOption) *Client + func (c *Client) Do(r *http.Request, v interface{}) (*Response, error) + func (c *Client) NewRequest(ctx context.Context, method, path string, body io.Reader) (*http.Request, error) + type ClientOption func(*Client) + func WithApplication(name, version string) ClientOption + func WithBackoffFunc(f BackoffFunc) ClientOption + func WithDebugWriter(debugWriter io.Writer) ClientOption + func WithEndpoint(endpoint string) ClientOption + func WithHTTPClient(httpClient *http.Client) ClientOption + func WithInstrumentation(registry *prometheus.Registry) ClientOption + func WithPollInterval(pollInterval time.Duration) ClientOption + func WithToken(token string) ClientOption + type DNSNotFoundError struct + IP net.IP + func (e DNSNotFoundError) Error() string + type Datacenter struct + Description string + ID int + Location *Location + Name string + ServerTypes DatacenterServerTypes + func DatacenterFromSchema(s schema.Datacenter) *Datacenter + type DatacenterClient struct + func (c *DatacenterClient) All(ctx context.Context) ([]*Datacenter, error) + func (c *DatacenterClient) Get(ctx context.Context, idOrName string) (*Datacenter, *Response, error) + func (c *DatacenterClient) GetByID(ctx context.Context, id int) (*Datacenter, *Response, error) + func (c *DatacenterClient) GetByName(ctx context.Context, name string) (*Datacenter, *Response, error) + func (c *DatacenterClient) List(ctx context.Context, opts DatacenterListOpts) ([]*Datacenter, *Response, error) + type DatacenterListOpts struct + Name string + Sort []string + type DatacenterServerTypes struct + Available []*ServerType + Supported []*ServerType + type Error struct + Code ErrorCode + Details interface{} + Message string + func ErrorFromSchema(s schema.Error) Error + func (e Error) Error() string + type ErrorCode string + const ErrorCodeCAARecordDoesNotAllowCA + const ErrorCodeCADNSValidationFailed + const ErrorCodeCATooManyAuthorizationsFailedRecently + const ErrorCodeCATooManyCertificatedIssuedForRegisteredDomain + const ErrorCodeCATooManyDuplicateCertificates + const ErrorCodeCloudNotVerifyDomainDelegatedToZone + const ErrorCodeCloudResourceIPNotAllowed + const ErrorCodeConflict + const ErrorCodeDNSZoneNotFound + const ErrorCodeFirewallAlreadyApplied + const ErrorCodeFirewallAlreadyRemoved + const ErrorCodeFirewallResourceNotFound + const ErrorCodeForbidden + const ErrorCodeIPNotAvailable + const ErrorCodeIPNotOwned + const ErrorCodeIncompatibleNetworkType + const ErrorCodeInvalidInput + const ErrorCodeInvalidLoadBalancerType + const ErrorCodeInvalidServerType + const ErrorCodeJSONError + const ErrorCodeLimitReached + const ErrorCodeLoadBalancerAlreadyAttached + const ErrorCodeLoadBalancerNotAttachedToNetwork + const ErrorCodeLocked + const ErrorCodeMaintenance + const ErrorCodeNetworksOverlap + const ErrorCodeNoSpaceLeftInLocation + const ErrorCodeNoSubnetAvailable + const ErrorCodeNotFound + const ErrorCodePlacementError + const ErrorCodeProtected + const ErrorCodeRateLimitExceeded + const ErrorCodeResourceInUse + const ErrorCodeResourceLimitExceeded + const ErrorCodeResourceLocked + const ErrorCodeResourceUnavailable + const ErrorCodeRobotUnavailable + const ErrorCodeServerAlreadyAdded + const ErrorCodeServerAlreadyAttached + const ErrorCodeServerNotAttachedToNetwork + const ErrorCodeServerNotStopped + const ErrorCodeServiceError + const ErrorCodeSourcePortAlreadyUsed + const ErrorCodeTargetAlreadyDefined + const ErrorCodeTargetsWithoutUsePrivateIP + const ErrorCodeUniquenessError + const ErrorCodeUnknownError + const ErrorCodeVSwitchAlreadyUsed + const ErrorCodeVolumeAlreadyAttached + const ErrorUnsupportedError + type ErrorDetailsInvalidInput struct + Fields []ErrorDetailsInvalidInputField + type ErrorDetailsInvalidInputField struct + Messages []string + Name string + type Firewall struct + AppliedTo []FirewallResource + Created time.Time + ID int + Labels map[string]string + Name string + Rules []FirewallRule + func FirewallFromSchema(s schema.Firewall) *Firewall + type FirewallClient struct + func (c *FirewallClient) All(ctx context.Context) ([]*Firewall, error) + func (c *FirewallClient) AllWithOpts(ctx context.Context, opts FirewallListOpts) ([]*Firewall, error) + func (c *FirewallClient) ApplyResources(ctx context.Context, firewall *Firewall, resources []FirewallResource) ([]*Action, *Response, error) + func (c *FirewallClient) Create(ctx context.Context, opts FirewallCreateOpts) (FirewallCreateResult, *Response, error) + func (c *FirewallClient) Delete(ctx context.Context, firewall *Firewall) (*Response, error) + func (c *FirewallClient) Get(ctx context.Context, idOrName string) (*Firewall, *Response, error) + func (c *FirewallClient) GetByID(ctx context.Context, id int) (*Firewall, *Response, error) + func (c *FirewallClient) GetByName(ctx context.Context, name string) (*Firewall, *Response, error) + func (c *FirewallClient) List(ctx context.Context, opts FirewallListOpts) ([]*Firewall, *Response, error) + func (c *FirewallClient) RemoveResources(ctx context.Context, firewall *Firewall, resources []FirewallResource) ([]*Action, *Response, error) + func (c *FirewallClient) SetRules(ctx context.Context, firewall *Firewall, opts FirewallSetRulesOpts) ([]*Action, *Response, error) + func (c *FirewallClient) Update(ctx context.Context, firewall *Firewall, opts FirewallUpdateOpts) (*Firewall, *Response, error) + type FirewallCreateOpts struct + ApplyTo []FirewallResource + Labels map[string]string + Name string + Rules []FirewallRule + func (o FirewallCreateOpts) Validate() error + type FirewallCreateResult struct + Actions []*Action + Firewall *Firewall + type FirewallListOpts struct + Name string + Sort []string + type FirewallResource struct + LabelSelector *FirewallResourceLabelSelector + Server *FirewallResourceServer + Type FirewallResourceType + type FirewallResourceLabelSelector struct + Selector string + type FirewallResourceServer struct + ID int + type FirewallResourceType string + const FirewallResourceTypeLabelSelector + const FirewallResourceTypeServer + type FirewallRule struct + Description *string + DestinationIPs []net.IPNet + Direction FirewallRuleDirection + Port *string + Protocol FirewallRuleProtocol + SourceIPs []net.IPNet + type FirewallRuleDirection string + const FirewallRuleDirectionIn + const FirewallRuleDirectionOut + type FirewallRuleProtocol string + const FirewallRuleProtocolESP + const FirewallRuleProtocolGRE + const FirewallRuleProtocolICMP + const FirewallRuleProtocolTCP + const FirewallRuleProtocolUDP + type FirewallSetRulesOpts struct + Rules []FirewallRule + type FirewallStatus string + const FirewallStatusApplied + const FirewallStatusPending + type FirewallUpdateOpts struct + Labels map[string]string + Name string + type FloatingIP struct + Blocked bool + Created time.Time + DNSPtr map[string]string + Description string + HomeLocation *Location + ID int + IP net.IP + Labels map[string]string + Name string + Network *net.IPNet + Protection FloatingIPProtection + Server *Server + Type FloatingIPType + func FloatingIPFromSchema(s schema.FloatingIP) *FloatingIP + func (f *FloatingIP) DNSPtrForIP(ip net.IP) string + func (f *FloatingIP) GetDNSPtrForIP(ip net.IP) (string, error) + type FloatingIPChangeProtectionOpts struct + Delete *bool + type FloatingIPClient struct + func (c *FloatingIPClient) All(ctx context.Context) ([]*FloatingIP, error) + func (c *FloatingIPClient) AllWithOpts(ctx context.Context, opts FloatingIPListOpts) ([]*FloatingIP, error) + func (c *FloatingIPClient) Assign(ctx context.Context, floatingIP *FloatingIP, server *Server) (*Action, *Response, error) + func (c *FloatingIPClient) ChangeDNSPtr(ctx context.Context, floatingIP *FloatingIP, ip string, ptr *string) (*Action, *Response, error) + func (c *FloatingIPClient) ChangeProtection(ctx context.Context, floatingIP *FloatingIP, ...) (*Action, *Response, error) + func (c *FloatingIPClient) Create(ctx context.Context, opts FloatingIPCreateOpts) (FloatingIPCreateResult, *Response, error) + func (c *FloatingIPClient) Delete(ctx context.Context, floatingIP *FloatingIP) (*Response, error) + func (c *FloatingIPClient) Get(ctx context.Context, idOrName string) (*FloatingIP, *Response, error) + func (c *FloatingIPClient) GetByID(ctx context.Context, id int) (*FloatingIP, *Response, error) + func (c *FloatingIPClient) GetByName(ctx context.Context, name string) (*FloatingIP, *Response, error) + func (c *FloatingIPClient) List(ctx context.Context, opts FloatingIPListOpts) ([]*FloatingIP, *Response, error) + func (c *FloatingIPClient) Unassign(ctx context.Context, floatingIP *FloatingIP) (*Action, *Response, error) + func (c *FloatingIPClient) Update(ctx context.Context, floatingIP *FloatingIP, opts FloatingIPUpdateOpts) (*FloatingIP, *Response, error) + type FloatingIPCreateOpts struct + Description *string + HomeLocation *Location + Labels map[string]string + Name *string + Server *Server + Type FloatingIPType + func (o FloatingIPCreateOpts) Validate() error + type FloatingIPCreateResult struct + Action *Action + FloatingIP *FloatingIP + type FloatingIPListOpts struct + Name string + Sort []string + type FloatingIPPricing struct + Monthly Price + type FloatingIPProtection struct + Delete bool + type FloatingIPType string + const FloatingIPTypeIPv4 + const FloatingIPTypeIPv6 + type FloatingIPTypeLocationPricing struct + Location *Location + Monthly Price + type FloatingIPTypePricing struct + Pricings []FloatingIPTypeLocationPricing + Type FloatingIPType + type FloatingIPUpdateOpts struct + Description string + Labels map[string]string + Name string + type ISO struct + Deprecated time.Time + Description string + ID int + Name string + Type ISOType + func ISOFromSchema(s schema.ISO) *ISO + func (iso *ISO) IsDeprecated() bool + type ISOClient struct + func (c *ISOClient) All(ctx context.Context) ([]*ISO, error) + func (c *ISOClient) Get(ctx context.Context, idOrName string) (*ISO, *Response, error) + func (c *ISOClient) GetByID(ctx context.Context, id int) (*ISO, *Response, error) + func (c *ISOClient) GetByName(ctx context.Context, name string) (*ISO, *Response, error) + func (c *ISOClient) List(ctx context.Context, opts ISOListOpts) ([]*ISO, *Response, error) + type ISOListOpts struct + Name string + Sort []string + type ISOType string + const ISOTypePrivate + const ISOTypePublic + type Image struct + BoundTo *Server + Created time.Time + CreatedFrom *Server + Deleted time.Time + Deprecated time.Time + Description string + DiskSize float32 + ID int + ImageSize float32 + Labels map[string]string + Name string + OSFlavor string + OSVersion string + Protection ImageProtection + RapidDeploy bool + Status ImageStatus + Type ImageType + func ImageFromSchema(s schema.Image) *Image + func (image *Image) IsDeleted() bool + func (image *Image) IsDeprecated() bool + type ImageChangeProtectionOpts struct + Delete *bool + type ImageClient struct + func (c *ImageClient) All(ctx context.Context) ([]*Image, error) + func (c *ImageClient) AllWithOpts(ctx context.Context, opts ImageListOpts) ([]*Image, error) + func (c *ImageClient) ChangeProtection(ctx context.Context, image *Image, opts ImageChangeProtectionOpts) (*Action, *Response, error) + func (c *ImageClient) Delete(ctx context.Context, image *Image) (*Response, error) + func (c *ImageClient) Get(ctx context.Context, idOrName string) (*Image, *Response, error) + func (c *ImageClient) GetByID(ctx context.Context, id int) (*Image, *Response, error) + func (c *ImageClient) GetByName(ctx context.Context, name string) (*Image, *Response, error) + func (c *ImageClient) List(ctx context.Context, opts ImageListOpts) ([]*Image, *Response, error) + func (c *ImageClient) Update(ctx context.Context, image *Image, opts ImageUpdateOpts) (*Image, *Response, error) + type ImageListOpts struct + BoundTo *Server + IncludeDeprecated bool + Name string + Sort []string + Status []ImageStatus + Type []ImageType + type ImagePricing struct + PerGBMonth Price + type ImageProtection struct + Delete bool + type ImageStatus string + const ImageStatusAvailable + const ImageStatusCreating + type ImageType string + const ImageTypeApp + const ImageTypeBackup + const ImageTypeSnapshot + const ImageTypeSystem + type ImageUpdateOpts struct + Description *string + Labels map[string]string + Type ImageType + type InvalidIPError struct + IP string + func (e InvalidIPError) Error() string + type ListOpts struct + LabelSelector string + Page int + PerPage int + type LoadBalancer struct + Algorithm LoadBalancerAlgorithm + Created time.Time + ID int + IncludedTraffic uint64 + IngoingTraffic uint64 + Labels map[string]string + LoadBalancerType *LoadBalancerType + Location *Location + Name string + OutgoingTraffic uint64 + PrivateNet []LoadBalancerPrivateNet + Protection LoadBalancerProtection + PublicNet LoadBalancerPublicNet + Services []LoadBalancerService + Targets []LoadBalancerTarget + func LoadBalancerFromSchema(s schema.LoadBalancer) *LoadBalancer + func (lb *LoadBalancer) GetDNSPtrForIP(ip net.IP) (string, error) + type LoadBalancerAddIPTargetOpts struct + IP net.IP + type LoadBalancerAddLabelSelectorTargetOpts struct + Selector string + UsePrivateIP *bool + type LoadBalancerAddServerTargetOpts struct + Server *Server + UsePrivateIP *bool + type LoadBalancerAddServiceOpts struct + DestinationPort *int + HTTP *LoadBalancerAddServiceOptsHTTP + HealthCheck *LoadBalancerAddServiceOptsHealthCheck + ListenPort *int + Protocol LoadBalancerServiceProtocol + Proxyprotocol *bool + type LoadBalancerAddServiceOptsHTTP struct + Certificates []*Certificate + CookieLifetime *time.Duration + CookieName *string + RedirectHTTP *bool + StickySessions *bool + type LoadBalancerAddServiceOptsHealthCheck struct + HTTP *LoadBalancerAddServiceOptsHealthCheckHTTP + Interval *time.Duration + Port *int + Protocol LoadBalancerServiceProtocol + Retries *int + Timeout *time.Duration + type LoadBalancerAddServiceOptsHealthCheckHTTP struct + Domain *string + Path *string + Response *string + StatusCodes []string + TLS *bool + type LoadBalancerAlgorithm struct + Type LoadBalancerAlgorithmType + type LoadBalancerAlgorithmType string + const LoadBalancerAlgorithmTypeLeastConnections + const LoadBalancerAlgorithmTypeRoundRobin + type LoadBalancerAttachToNetworkOpts struct + IP net.IP + Network *Network + type LoadBalancerChangeAlgorithmOpts struct + Type LoadBalancerAlgorithmType + type LoadBalancerChangeProtectionOpts struct + Delete *bool + type LoadBalancerChangeTypeOpts struct + LoadBalancerType *LoadBalancerType + type LoadBalancerClient struct + func (c *LoadBalancerClient) AddIPTarget(ctx context.Context, loadBalancer *LoadBalancer, ...) (*Action, *Response, error) + func (c *LoadBalancerClient) AddLabelSelectorTarget(ctx context.Context, loadBalancer *LoadBalancer, ...) (*Action, *Response, error) + func (c *LoadBalancerClient) AddServerTarget(ctx context.Context, loadBalancer *LoadBalancer, ...) (*Action, *Response, error) + func (c *LoadBalancerClient) AddService(ctx context.Context, loadBalancer *LoadBalancer, ...) (*Action, *Response, error) + func (c *LoadBalancerClient) All(ctx context.Context) ([]*LoadBalancer, error) + func (c *LoadBalancerClient) AllWithOpts(ctx context.Context, opts LoadBalancerListOpts) ([]*LoadBalancer, error) + func (c *LoadBalancerClient) AttachToNetwork(ctx context.Context, loadBalancer *LoadBalancer, ...) (*Action, *Response, error) + func (c *LoadBalancerClient) ChangeAlgorithm(ctx context.Context, loadBalancer *LoadBalancer, ...) (*Action, *Response, error) + func (c *LoadBalancerClient) ChangeDNSPtr(ctx context.Context, lb *LoadBalancer, ip string, ptr *string) (*Action, *Response, error) + func (c *LoadBalancerClient) ChangeProtection(ctx context.Context, loadBalancer *LoadBalancer, ...) (*Action, *Response, error) + func (c *LoadBalancerClient) ChangeType(ctx context.Context, loadBalancer *LoadBalancer, ...) (*Action, *Response, error) + func (c *LoadBalancerClient) Create(ctx context.Context, opts LoadBalancerCreateOpts) (LoadBalancerCreateResult, *Response, error) + func (c *LoadBalancerClient) Delete(ctx context.Context, loadBalancer *LoadBalancer) (*Response, error) + func (c *LoadBalancerClient) DeleteService(ctx context.Context, loadBalancer *LoadBalancer, listenPort int) (*Action, *Response, error) + func (c *LoadBalancerClient) DetachFromNetwork(ctx context.Context, loadBalancer *LoadBalancer, ...) (*Action, *Response, error) + func (c *LoadBalancerClient) DisablePublicInterface(ctx context.Context, loadBalancer *LoadBalancer) (*Action, *Response, error) + func (c *LoadBalancerClient) EnablePublicInterface(ctx context.Context, loadBalancer *LoadBalancer) (*Action, *Response, error) + func (c *LoadBalancerClient) Get(ctx context.Context, idOrName string) (*LoadBalancer, *Response, error) + func (c *LoadBalancerClient) GetByID(ctx context.Context, id int) (*LoadBalancer, *Response, error) + func (c *LoadBalancerClient) GetByName(ctx context.Context, name string) (*LoadBalancer, *Response, error) + func (c *LoadBalancerClient) GetMetrics(ctx context.Context, lb *LoadBalancer, opts LoadBalancerGetMetricsOpts) (*LoadBalancerMetrics, *Response, error) + func (c *LoadBalancerClient) List(ctx context.Context, opts LoadBalancerListOpts) ([]*LoadBalancer, *Response, error) + func (c *LoadBalancerClient) RemoveIPTarget(ctx context.Context, loadBalancer *LoadBalancer, ip net.IP) (*Action, *Response, error) + func (c *LoadBalancerClient) RemoveLabelSelectorTarget(ctx context.Context, loadBalancer *LoadBalancer, labelSelector string) (*Action, *Response, error) + func (c *LoadBalancerClient) RemoveServerTarget(ctx context.Context, loadBalancer *LoadBalancer, server *Server) (*Action, *Response, error) + func (c *LoadBalancerClient) Update(ctx context.Context, loadBalancer *LoadBalancer, opts LoadBalancerUpdateOpts) (*LoadBalancer, *Response, error) + func (c *LoadBalancerClient) UpdateService(ctx context.Context, loadBalancer *LoadBalancer, listenPort int, ...) (*Action, *Response, error) + type LoadBalancerCreateOpts struct + Algorithm *LoadBalancerAlgorithm + Labels map[string]string + LoadBalancerType *LoadBalancerType + Location *Location + Name string + Network *Network + NetworkZone NetworkZone + PublicInterface *bool + Services []LoadBalancerCreateOptsService + Targets []LoadBalancerCreateOptsTarget + type LoadBalancerCreateOptsService struct + DestinationPort *int + HTTP *LoadBalancerCreateOptsServiceHTTP + HealthCheck *LoadBalancerCreateOptsServiceHealthCheck + ListenPort *int + Protocol LoadBalancerServiceProtocol + Proxyprotocol *bool + type LoadBalancerCreateOptsServiceHTTP struct + Certificates []*Certificate + CookieLifetime *time.Duration + CookieName *string + RedirectHTTP *bool + StickySessions *bool + type LoadBalancerCreateOptsServiceHealthCheck struct + HTTP *LoadBalancerCreateOptsServiceHealthCheckHTTP + Interval *time.Duration + Port *int + Protocol LoadBalancerServiceProtocol + Retries *int + Timeout *time.Duration + type LoadBalancerCreateOptsServiceHealthCheckHTTP struct + Domain *string + Path *string + Response *string + StatusCodes []string + TLS *bool + type LoadBalancerCreateOptsTarget struct + IP LoadBalancerCreateOptsTargetIP + LabelSelector LoadBalancerCreateOptsTargetLabelSelector + Server LoadBalancerCreateOptsTargetServer + Type LoadBalancerTargetType + UsePrivateIP *bool + type LoadBalancerCreateOptsTargetIP struct + IP string + type LoadBalancerCreateOptsTargetLabelSelector struct + Selector string + type LoadBalancerCreateOptsTargetServer struct + Server *Server + type LoadBalancerCreateResult struct + Action *Action + LoadBalancer *LoadBalancer + type LoadBalancerDetachFromNetworkOpts struct + Network *Network + type LoadBalancerGetMetricsOpts struct + End time.Time + Start time.Time + Step int + Types []LoadBalancerMetricType + type LoadBalancerListOpts struct + Name string + Sort []string + type LoadBalancerMetricType string + const LoadBalancerMetricBandwidth + const LoadBalancerMetricConnectionsPerSecond + const LoadBalancerMetricOpenConnections + const LoadBalancerMetricRequestsPerSecond + type LoadBalancerMetrics struct + End time.Time + Start time.Time + Step float64 + TimeSeries map[string][]LoadBalancerMetricsValue + type LoadBalancerMetricsValue struct + Timestamp float64 + Value string + type LoadBalancerPrivateNet struct + IP net.IP + Network *Network + type LoadBalancerProtection struct + Delete bool + type LoadBalancerPublicNet struct + Enabled bool + IPv4 LoadBalancerPublicNetIPv4 + IPv6 LoadBalancerPublicNetIPv6 + type LoadBalancerPublicNetIPv4 struct + DNSPtr string + IP net.IP + type LoadBalancerPublicNetIPv6 struct + DNSPtr string + IP net.IP + type LoadBalancerService struct + DestinationPort int + HTTP LoadBalancerServiceHTTP + HealthCheck LoadBalancerServiceHealthCheck + ListenPort int + Protocol LoadBalancerServiceProtocol + Proxyprotocol bool + func LoadBalancerServiceFromSchema(s schema.LoadBalancerService) LoadBalancerService + type LoadBalancerServiceHTTP struct + Certificates []*Certificate + CookieLifetime time.Duration + CookieName string + RedirectHTTP bool + StickySessions bool + type LoadBalancerServiceHealthCheck struct + HTTP *LoadBalancerServiceHealthCheckHTTP + Interval time.Duration + Port int + Protocol LoadBalancerServiceProtocol + Retries int + Timeout time.Duration + func LoadBalancerServiceHealthCheckFromSchema(s *schema.LoadBalancerServiceHealthCheck) LoadBalancerServiceHealthCheck + type LoadBalancerServiceHealthCheckHTTP struct + Domain string + Path string + Response string + StatusCodes []string + TLS bool + type LoadBalancerServiceProtocol string + const LoadBalancerServiceProtocolHTTP + const LoadBalancerServiceProtocolHTTPS + const LoadBalancerServiceProtocolTCP + type LoadBalancerTarget struct + HealthStatus []LoadBalancerTargetHealthStatus + IP *LoadBalancerTargetIP + LabelSelector *LoadBalancerTargetLabelSelector + Server *LoadBalancerTargetServer + Targets []LoadBalancerTarget + Type LoadBalancerTargetType + UsePrivateIP bool + func LoadBalancerTargetFromSchema(s schema.LoadBalancerTarget) LoadBalancerTarget + type LoadBalancerTargetHealthStatus struct + ListenPort int + Status LoadBalancerTargetHealthStatusStatus + func LoadBalancerTargetHealthStatusFromSchema(s schema.LoadBalancerTargetHealthStatus) LoadBalancerTargetHealthStatus + type LoadBalancerTargetHealthStatusStatus string + const LoadBalancerTargetHealthStatusStatusHealthy + const LoadBalancerTargetHealthStatusStatusUnhealthy + const LoadBalancerTargetHealthStatusStatusUnknown + type LoadBalancerTargetIP struct + IP string + type LoadBalancerTargetLabelSelector struct + Selector string + type LoadBalancerTargetServer struct + Server *Server + type LoadBalancerTargetType string + const LoadBalancerTargetTypeIP + const LoadBalancerTargetTypeLabelSelector + const LoadBalancerTargetTypeServer + type LoadBalancerType struct + Description string + ID int + MaxAssignedCertificates int + MaxConnections int + MaxServices int + MaxTargets int + Name string + Pricings []LoadBalancerTypeLocationPricing + func LoadBalancerTypeFromSchema(s schema.LoadBalancerType) *LoadBalancerType + type LoadBalancerTypeClient struct + func (c *LoadBalancerTypeClient) All(ctx context.Context) ([]*LoadBalancerType, error) + func (c *LoadBalancerTypeClient) Get(ctx context.Context, idOrName string) (*LoadBalancerType, *Response, error) + func (c *LoadBalancerTypeClient) GetByID(ctx context.Context, id int) (*LoadBalancerType, *Response, error) + func (c *LoadBalancerTypeClient) GetByName(ctx context.Context, name string) (*LoadBalancerType, *Response, error) + func (c *LoadBalancerTypeClient) List(ctx context.Context, opts LoadBalancerTypeListOpts) ([]*LoadBalancerType, *Response, error) + type LoadBalancerTypeListOpts struct + Name string + Sort []string + type LoadBalancerTypeLocationPricing struct + Hourly Price + Location *Location + Monthly Price + type LoadBalancerTypePricing struct + LoadBalancerType *LoadBalancerType + Pricings []LoadBalancerTypeLocationPricing + type LoadBalancerUpdateOpts struct + Labels map[string]string + Name string + type LoadBalancerUpdateServiceOpts struct + DestinationPort *int + HTTP *LoadBalancerUpdateServiceOptsHTTP + HealthCheck *LoadBalancerUpdateServiceOptsHealthCheck + Protocol LoadBalancerServiceProtocol + Proxyprotocol *bool + type LoadBalancerUpdateServiceOptsHTTP struct + Certificates []*Certificate + CookieLifetime *time.Duration + CookieName *string + RedirectHTTP *bool + StickySessions *bool + type LoadBalancerUpdateServiceOptsHealthCheck struct + HTTP *LoadBalancerUpdateServiceOptsHealthCheckHTTP + Interval *time.Duration + Port *int + Protocol LoadBalancerServiceProtocol + Retries *int + Timeout *time.Duration + type LoadBalancerUpdateServiceOptsHealthCheckHTTP struct + Domain *string + Path *string + Response *string + StatusCodes []string + TLS *bool + type Location struct + City string + Country string + Description string + ID int + Latitude float64 + Longitude float64 + Name string + NetworkZone NetworkZone + func LocationFromSchema(s schema.Location) *Location + type LocationClient struct + func (c *LocationClient) All(ctx context.Context) ([]*Location, error) + func (c *LocationClient) Get(ctx context.Context, idOrName string) (*Location, *Response, error) + func (c *LocationClient) GetByID(ctx context.Context, id int) (*Location, *Response, error) + func (c *LocationClient) GetByName(ctx context.Context, name string) (*Location, *Response, error) + func (c *LocationClient) List(ctx context.Context, opts LocationListOpts) ([]*Location, *Response, error) + type LocationListOpts struct + Name string + Sort []string + type Meta struct + Pagination *Pagination + Ratelimit Ratelimit + type Network struct + Created time.Time + ID int + IPRange *net.IPNet + Labels map[string]string + Name string + Protection NetworkProtection + Routes []NetworkRoute + Servers []*Server + Subnets []NetworkSubnet + func NetworkFromSchema(s schema.Network) *Network + type NetworkAddRouteOpts struct + Route NetworkRoute + type NetworkAddSubnetOpts struct + Subnet NetworkSubnet + type NetworkChangeIPRangeOpts struct + IPRange *net.IPNet + type NetworkChangeProtectionOpts struct + Delete *bool + type NetworkClient struct + func (c *NetworkClient) AddRoute(ctx context.Context, network *Network, opts NetworkAddRouteOpts) (*Action, *Response, error) + func (c *NetworkClient) AddSubnet(ctx context.Context, network *Network, opts NetworkAddSubnetOpts) (*Action, *Response, error) + func (c *NetworkClient) All(ctx context.Context) ([]*Network, error) + func (c *NetworkClient) AllWithOpts(ctx context.Context, opts NetworkListOpts) ([]*Network, error) + func (c *NetworkClient) ChangeIPRange(ctx context.Context, network *Network, opts NetworkChangeIPRangeOpts) (*Action, *Response, error) + func (c *NetworkClient) ChangeProtection(ctx context.Context, network *Network, opts NetworkChangeProtectionOpts) (*Action, *Response, error) + func (c *NetworkClient) Create(ctx context.Context, opts NetworkCreateOpts) (*Network, *Response, error) + func (c *NetworkClient) Delete(ctx context.Context, network *Network) (*Response, error) + func (c *NetworkClient) DeleteRoute(ctx context.Context, network *Network, opts NetworkDeleteRouteOpts) (*Action, *Response, error) + func (c *NetworkClient) DeleteSubnet(ctx context.Context, network *Network, opts NetworkDeleteSubnetOpts) (*Action, *Response, error) + func (c *NetworkClient) Get(ctx context.Context, idOrName string) (*Network, *Response, error) + func (c *NetworkClient) GetByID(ctx context.Context, id int) (*Network, *Response, error) + func (c *NetworkClient) GetByName(ctx context.Context, name string) (*Network, *Response, error) + func (c *NetworkClient) List(ctx context.Context, opts NetworkListOpts) ([]*Network, *Response, error) + func (c *NetworkClient) Update(ctx context.Context, network *Network, opts NetworkUpdateOpts) (*Network, *Response, error) + type NetworkCreateOpts struct + IPRange *net.IPNet + Labels map[string]string + Name string + Routes []NetworkRoute + Subnets []NetworkSubnet + func (o NetworkCreateOpts) Validate() error + type NetworkDeleteRouteOpts struct + Route NetworkRoute + type NetworkDeleteSubnetOpts struct + Subnet NetworkSubnet + type NetworkListOpts struct + Name string + Sort []string + type NetworkProtection struct + Delete bool + type NetworkRoute struct + Destination *net.IPNet + Gateway net.IP + func NetworkRouteFromSchema(s schema.NetworkRoute) NetworkRoute + type NetworkSubnet struct + Gateway net.IP + IPRange *net.IPNet + NetworkZone NetworkZone + Type NetworkSubnetType + VSwitchID int + func NetworkSubnetFromSchema(s schema.NetworkSubnet) NetworkSubnet + type NetworkSubnetType string + const NetworkSubnetTypeCloud + const NetworkSubnetTypeServer + const NetworkSubnetTypeVSwitch + type NetworkUpdateOpts struct + Labels map[string]string + Name string + type NetworkZone string + const NetworkZoneEUCentral + const NetworkZoneUSEast + const NetworkZoneUSWest + type Pagination struct + LastPage int + NextPage int + Page int + PerPage int + PreviousPage int + TotalEntries int + func PaginationFromSchema(s schema.MetaPagination) Pagination + type PlacementGroup struct + Created time.Time + ID int + Labels map[string]string + Name string + Servers []int + Type PlacementGroupType + func PlacementGroupFromSchema(s schema.PlacementGroup) *PlacementGroup + type PlacementGroupClient struct + func (c *PlacementGroupClient) All(ctx context.Context) ([]*PlacementGroup, error) + func (c *PlacementGroupClient) AllWithOpts(ctx context.Context, opts PlacementGroupListOpts) ([]*PlacementGroup, error) + func (c *PlacementGroupClient) Create(ctx context.Context, opts PlacementGroupCreateOpts) (PlacementGroupCreateResult, *Response, error) + func (c *PlacementGroupClient) Delete(ctx context.Context, placementGroup *PlacementGroup) (*Response, error) + func (c *PlacementGroupClient) Get(ctx context.Context, idOrName string) (*PlacementGroup, *Response, error) + func (c *PlacementGroupClient) GetByID(ctx context.Context, id int) (*PlacementGroup, *Response, error) + func (c *PlacementGroupClient) GetByName(ctx context.Context, name string) (*PlacementGroup, *Response, error) + func (c *PlacementGroupClient) List(ctx context.Context, opts PlacementGroupListOpts) ([]*PlacementGroup, *Response, error) + func (c *PlacementGroupClient) Update(ctx context.Context, placementGroup *PlacementGroup, ...) (*PlacementGroup, *Response, error) + type PlacementGroupCreateOpts struct + Labels map[string]string + Name string + Type PlacementGroupType + func (o PlacementGroupCreateOpts) Validate() error + type PlacementGroupCreateResult struct + Action *Action + PlacementGroup *PlacementGroup + type PlacementGroupListOpts struct + Name string + Sort []string + Type PlacementGroupType + type PlacementGroupType string + const PlacementGroupTypeSpread + type PlacementGroupUpdateOpts struct + Labels map[string]string + Name string + type Price struct + Currency string + Gross string + Net string + VATRate string + type Pricing struct + FloatingIP FloatingIPPricing + FloatingIPs []FloatingIPTypePricing + Image ImagePricing + LoadBalancerTypes []LoadBalancerTypePricing + PrimaryIPs []PrimaryIPPricing + ServerBackup ServerBackupPricing + ServerTypes []ServerTypePricing + Traffic TrafficPricing + Volume VolumePricing + func PricingFromSchema(s schema.Pricing) Pricing + type PricingClient struct + func (c *PricingClient) Get(ctx context.Context) (Pricing, *Response, error) + type PrimaryIP struct + AssigneeID int + AssigneeType string + AutoDelete bool + Blocked bool + Created time.Time + DNSPtr map[string]string + Datacenter *Datacenter + ID int + IP net.IP + Labels map[string]string + Name string + Network *net.IPNet + Protection PrimaryIPProtection + Type PrimaryIPType + func PrimaryIPFromSchema(s schema.PrimaryIP) *PrimaryIP + func (p *PrimaryIP) GetDNSPtrForIP(ip net.IP) (string, error) + type PrimaryIPAssignOpts struct + AssigneeID int + AssigneeType string + ID int + type PrimaryIPAssignResult struct + Action schema.Action + type PrimaryIPChangeDNSPtrOpts struct + DNSPtr string + ID int + IP string + type PrimaryIPChangeDNSPtrResult struct + Action schema.Action + type PrimaryIPChangeProtectionOpts struct + Delete bool + ID int + type PrimaryIPChangeProtectionResult struct + Action schema.Action + type PrimaryIPClient struct + func (c *PrimaryIPClient) All(ctx context.Context) ([]*PrimaryIP, error) + func (c *PrimaryIPClient) AllWithOpts(ctx context.Context, opts PrimaryIPListOpts) ([]*PrimaryIP, error) + func (c *PrimaryIPClient) Assign(ctx context.Context, opts PrimaryIPAssignOpts) (*Action, *Response, error) + func (c *PrimaryIPClient) ChangeDNSPtr(ctx context.Context, opts PrimaryIPChangeDNSPtrOpts) (*Action, *Response, error) + func (c *PrimaryIPClient) ChangeProtection(ctx context.Context, opts PrimaryIPChangeProtectionOpts) (*Action, *Response, error) + func (c *PrimaryIPClient) Create(ctx context.Context, reqBody PrimaryIPCreateOpts) (*PrimaryIPCreateResult, *Response, error) + func (c *PrimaryIPClient) Delete(ctx context.Context, primaryIP *PrimaryIP) (*Response, error) + func (c *PrimaryIPClient) Get(ctx context.Context, idOrName string) (*PrimaryIP, *Response, error) + func (c *PrimaryIPClient) GetByID(ctx context.Context, id int) (*PrimaryIP, *Response, error) + func (c *PrimaryIPClient) GetByIP(ctx context.Context, ip string) (*PrimaryIP, *Response, error) + func (c *PrimaryIPClient) GetByName(ctx context.Context, name string) (*PrimaryIP, *Response, error) + func (c *PrimaryIPClient) List(ctx context.Context, opts PrimaryIPListOpts) ([]*PrimaryIP, *Response, error) + func (c *PrimaryIPClient) Unassign(ctx context.Context, id int) (*Action, *Response, error) + func (c *PrimaryIPClient) Update(ctx context.Context, primaryIP *PrimaryIP, reqBody PrimaryIPUpdateOpts) (*PrimaryIP, *Response, error) + type PrimaryIPCreateOpts struct + AssigneeID *int + AssigneeType string + AutoDelete *bool + Datacenter string + Labels map[string]string + Name string + Type PrimaryIPType + type PrimaryIPCreateResult struct + Action *Action + PrimaryIP *PrimaryIP + type PrimaryIPDNSPTR struct + DNSPtr string + IP string + type PrimaryIPListOpts struct + IP string + Name string + Sort []string + type PrimaryIPPrice struct + Gross string + Net string + type PrimaryIPPricing struct + Pricings []PrimaryIPTypePricing + Type string + type PrimaryIPProtection struct + Delete bool + type PrimaryIPType string + const PrimaryIPTypeIPv4 + const PrimaryIPTypeIPv6 + type PrimaryIPTypePricing struct + Datacenter string + Hourly PrimaryIPPrice + Monthly PrimaryIPPrice + type PrimaryIPUpdateOpts struct + AutoDelete *bool + Labels *map[string]string + Name string + type RDNSClient struct + func (c *RDNSClient) ChangeDNSPtr(ctx context.Context, rdns RDNSSupporter, ip net.IP, ptr *string) (*Action, *Response, error) + type RDNSSupporter interface + GetDNSPtrForIP func(ip net.IP) (string, error) + type Ratelimit struct + Limit int + Remaining int + Reset time.Time + type Resource struct + ID int + Type string + type Response struct + Meta Meta + type SSHKey struct + Created time.Time + Fingerprint string + ID int + Labels map[string]string + Name string + PublicKey string + func SSHKeyFromSchema(s schema.SSHKey) *SSHKey + type SSHKeyClient struct + func (c *SSHKeyClient) All(ctx context.Context) ([]*SSHKey, error) + func (c *SSHKeyClient) AllWithOpts(ctx context.Context, opts SSHKeyListOpts) ([]*SSHKey, error) + func (c *SSHKeyClient) Create(ctx context.Context, opts SSHKeyCreateOpts) (*SSHKey, *Response, error) + func (c *SSHKeyClient) Delete(ctx context.Context, sshKey *SSHKey) (*Response, error) + func (c *SSHKeyClient) Get(ctx context.Context, idOrName string) (*SSHKey, *Response, error) + func (c *SSHKeyClient) GetByFingerprint(ctx context.Context, fingerprint string) (*SSHKey, *Response, error) + func (c *SSHKeyClient) GetByID(ctx context.Context, id int) (*SSHKey, *Response, error) + func (c *SSHKeyClient) GetByName(ctx context.Context, name string) (*SSHKey, *Response, error) + func (c *SSHKeyClient) List(ctx context.Context, opts SSHKeyListOpts) ([]*SSHKey, *Response, error) + func (c *SSHKeyClient) Update(ctx context.Context, sshKey *SSHKey, opts SSHKeyUpdateOpts) (*SSHKey, *Response, error) + type SSHKeyCreateOpts struct + Labels map[string]string + Name string + PublicKey string + func (o SSHKeyCreateOpts) Validate() error + type SSHKeyListOpts struct + Fingerprint string + Name string + Sort []string + type SSHKeyUpdateOpts struct + Labels map[string]string + Name string + type Server struct + BackupWindow string + Created time.Time + Datacenter *Datacenter + ID int + ISO *ISO + Image *Image + IncludedTraffic uint64 + IngoingTraffic uint64 + Labels map[string]string + Locked bool + Name string + OutgoingTraffic uint64 + PlacementGroup *PlacementGroup + PrimaryDiskSize int + PrivateNet []ServerPrivateNet + Protection ServerProtection + PublicNet ServerPublicNet + RescueEnabled bool + ServerType *ServerType + Status ServerStatus + Volumes []*Volume + func ServerFromSchema(s schema.Server) *Server + func (s *Server) GetDNSPtrForIP(ip net.IP) (string, error) + type ServerAttachToNetworkOpts struct + AliasIPs []net.IP + IP net.IP + Network *Network + type ServerBackupPricing struct + Percentage string + type ServerChangeAliasIPsOpts struct + AliasIPs []net.IP + Network *Network + type ServerChangeProtectionOpts struct + Delete *bool + Rebuild *bool + type ServerChangeTypeOpts struct + ServerType *ServerType + UpgradeDisk bool + type ServerClient struct + func (c *ServerClient) AddToPlacementGroup(ctx context.Context, server *Server, placementGroup *PlacementGroup) (*Action, *Response, error) + func (c *ServerClient) All(ctx context.Context) ([]*Server, error) + func (c *ServerClient) AllWithOpts(ctx context.Context, opts ServerListOpts) ([]*Server, error) + func (c *ServerClient) AttachISO(ctx context.Context, server *Server, iso *ISO) (*Action, *Response, error) + func (c *ServerClient) AttachToNetwork(ctx context.Context, server *Server, opts ServerAttachToNetworkOpts) (*Action, *Response, error) + func (c *ServerClient) ChangeAliasIPs(ctx context.Context, server *Server, opts ServerChangeAliasIPsOpts) (*Action, *Response, error) + func (c *ServerClient) ChangeDNSPtr(ctx context.Context, server *Server, ip string, ptr *string) (*Action, *Response, error) + func (c *ServerClient) ChangeProtection(ctx context.Context, server *Server, opts ServerChangeProtectionOpts) (*Action, *Response, error) + func (c *ServerClient) ChangeType(ctx context.Context, server *Server, opts ServerChangeTypeOpts) (*Action, *Response, error) + func (c *ServerClient) Create(ctx context.Context, opts ServerCreateOpts) (ServerCreateResult, *Response, error) + func (c *ServerClient) CreateImage(ctx context.Context, server *Server, opts *ServerCreateImageOpts) (ServerCreateImageResult, *Response, error) + func (c *ServerClient) Delete(ctx context.Context, server *Server) (*Response, error) + func (c *ServerClient) DeleteWithResult(ctx context.Context, server *Server) (*ServerDeleteResult, *Response, error) + func (c *ServerClient) DetachFromNetwork(ctx context.Context, server *Server, opts ServerDetachFromNetworkOpts) (*Action, *Response, error) + func (c *ServerClient) DetachISO(ctx context.Context, server *Server) (*Action, *Response, error) + func (c *ServerClient) DisableBackup(ctx context.Context, server *Server) (*Action, *Response, error) + func (c *ServerClient) DisableRescue(ctx context.Context, server *Server) (*Action, *Response, error) + func (c *ServerClient) EnableBackup(ctx context.Context, server *Server, window string) (*Action, *Response, error) + func (c *ServerClient) EnableRescue(ctx context.Context, server *Server, opts ServerEnableRescueOpts) (ServerEnableRescueResult, *Response, error) + func (c *ServerClient) Get(ctx context.Context, idOrName string) (*Server, *Response, error) + func (c *ServerClient) GetByID(ctx context.Context, id int) (*Server, *Response, error) + func (c *ServerClient) GetByName(ctx context.Context, name string) (*Server, *Response, error) + func (c *ServerClient) GetMetrics(ctx context.Context, server *Server, opts ServerGetMetricsOpts) (*ServerMetrics, *Response, error) + func (c *ServerClient) List(ctx context.Context, opts ServerListOpts) ([]*Server, *Response, error) + func (c *ServerClient) Poweroff(ctx context.Context, server *Server) (*Action, *Response, error) + func (c *ServerClient) Poweron(ctx context.Context, server *Server) (*Action, *Response, error) + func (c *ServerClient) Reboot(ctx context.Context, server *Server) (*Action, *Response, error) + func (c *ServerClient) Rebuild(ctx context.Context, server *Server, opts ServerRebuildOpts) (*Action, *Response, error) + func (c *ServerClient) RemoveFromPlacementGroup(ctx context.Context, server *Server) (*Action, *Response, error) + func (c *ServerClient) RequestConsole(ctx context.Context, server *Server) (ServerRequestConsoleResult, *Response, error) + func (c *ServerClient) Reset(ctx context.Context, server *Server) (*Action, *Response, error) + func (c *ServerClient) ResetPassword(ctx context.Context, server *Server) (ServerResetPasswordResult, *Response, error) + func (c *ServerClient) Shutdown(ctx context.Context, server *Server) (*Action, *Response, error) + func (c *ServerClient) Update(ctx context.Context, server *Server, opts ServerUpdateOpts) (*Server, *Response, error) + type ServerCreateFirewall struct + Firewall Firewall + type ServerCreateImageOpts struct + Description *string + Labels map[string]string + Type ImageType + func (o ServerCreateImageOpts) Validate() error + type ServerCreateImageResult struct + Action *Action + Image *Image + type ServerCreateOpts struct + Automount *bool + Datacenter *Datacenter + Firewalls []*ServerCreateFirewall + Image *Image + Labels map[string]string + Location *Location + Name string + Networks []*Network + PlacementGroup *PlacementGroup + PublicNet *ServerCreatePublicNet + SSHKeys []*SSHKey + ServerType *ServerType + StartAfterCreate *bool + UserData string + Volumes []*Volume + func (o ServerCreateOpts) Validate() error + type ServerCreatePublicNet struct + EnableIPv4 bool + EnableIPv6 bool + IPv4 *PrimaryIP + IPv6 *PrimaryIP + type ServerCreateResult struct + Action *Action + NextActions []*Action + RootPassword string + Server *Server + type ServerDeleteResult struct + Action *Action + type ServerDetachFromNetworkOpts struct + Network *Network + type ServerEnableRescueOpts struct + SSHKeys []*SSHKey + Type ServerRescueType + type ServerEnableRescueResult struct + Action *Action + RootPassword string + type ServerFirewallStatus struct + Firewall Firewall + Status FirewallStatus + type ServerGetMetricsOpts struct + End time.Time + Start time.Time + Step int + Types []ServerMetricType + type ServerListOpts struct + Name string + Sort []string + Status []ServerStatus + type ServerMetricType string + const ServerMetricCPU + const ServerMetricDisk + const ServerMetricNetwork + type ServerMetrics struct + End time.Time + Start time.Time + Step float64 + TimeSeries map[string][]ServerMetricsValue + type ServerMetricsValue struct + Timestamp float64 + Value string + type ServerPrivateNet struct + Aliases []net.IP + IP net.IP + MACAddress string + Network *Network + func ServerPrivateNetFromSchema(s schema.ServerPrivateNet) ServerPrivateNet + type ServerProtection struct + Delete bool + Rebuild bool + type ServerPublicNet struct + Firewalls []*ServerFirewallStatus + FloatingIPs []*FloatingIP + IPv4 ServerPublicNetIPv4 + IPv6 ServerPublicNetIPv6 + func ServerPublicNetFromSchema(s schema.ServerPublicNet) ServerPublicNet + type ServerPublicNetIPv4 struct + Blocked bool + DNSPtr string + ID int + IP net.IP + func ServerPublicNetIPv4FromSchema(s schema.ServerPublicNetIPv4) ServerPublicNetIPv4 + func (n *ServerPublicNetIPv4) IsUnspecified() bool + type ServerPublicNetIPv6 struct + Blocked bool + DNSPtr map[string]string + ID int + IP net.IP + Network *net.IPNet + func ServerPublicNetIPv6FromSchema(s schema.ServerPublicNetIPv6) ServerPublicNetIPv6 + func (n *ServerPublicNetIPv6) DNSPtrForIP(ip net.IP) string + func (n *ServerPublicNetIPv6) IsUnspecified() bool + type ServerRebuildOpts struct + Image *Image + type ServerRequestConsoleResult struct + Action *Action + Password string + WSSURL string + type ServerRescueType string + const ServerRescueTypeLinux32 + const ServerRescueTypeLinux64 + type ServerResetPasswordResult struct + Action *Action + RootPassword string + type ServerStatus string + const ServerStatusDeleting + const ServerStatusInitializing + const ServerStatusMigrating + const ServerStatusOff + const ServerStatusRebuilding + const ServerStatusRunning + const ServerStatusStarting + const ServerStatusStopping + const ServerStatusUnknown + type ServerType struct + CPUType CPUType + Cores int + Description string + Disk int + ID int + Memory float32 + Name string + Pricings []ServerTypeLocationPricing + StorageType StorageType + func ServerTypeFromSchema(s schema.ServerType) *ServerType + type ServerTypeClient struct + func (c *ServerTypeClient) All(ctx context.Context) ([]*ServerType, error) + func (c *ServerTypeClient) Get(ctx context.Context, idOrName string) (*ServerType, *Response, error) + func (c *ServerTypeClient) GetByID(ctx context.Context, id int) (*ServerType, *Response, error) + func (c *ServerTypeClient) GetByName(ctx context.Context, name string) (*ServerType, *Response, error) + func (c *ServerTypeClient) List(ctx context.Context, opts ServerTypeListOpts) ([]*ServerType, *Response, error) + type ServerTypeListOpts struct + Name string + Sort []string + type ServerTypeLocationPricing struct + Hourly Price + Location *Location + Monthly Price + type ServerTypePricing struct + Pricings []ServerTypeLocationPricing + ServerType *ServerType + type ServerUpdateOpts struct + Labels map[string]string + Name string + type StorageType string + const StorageTypeCeph + const StorageTypeLocal + type TrafficPricing struct + PerTB Price + type Volume struct + Created time.Time + ID int + Labels map[string]string + LinuxDevice string + Location *Location + Name string + Protection VolumeProtection + Server *Server + Size int + Status VolumeStatus + func VolumeFromSchema(s schema.Volume) *Volume + type VolumeAttachOpts struct + Automount *bool + Server *Server + type VolumeChangeProtectionOpts struct + Delete *bool + type VolumeClient struct + func (c *VolumeClient) All(ctx context.Context) ([]*Volume, error) + func (c *VolumeClient) AllWithOpts(ctx context.Context, opts VolumeListOpts) ([]*Volume, error) + func (c *VolumeClient) Attach(ctx context.Context, volume *Volume, server *Server) (*Action, *Response, error) + func (c *VolumeClient) AttachWithOpts(ctx context.Context, volume *Volume, opts VolumeAttachOpts) (*Action, *Response, error) + func (c *VolumeClient) ChangeProtection(ctx context.Context, volume *Volume, opts VolumeChangeProtectionOpts) (*Action, *Response, error) + func (c *VolumeClient) Create(ctx context.Context, opts VolumeCreateOpts) (VolumeCreateResult, *Response, error) + func (c *VolumeClient) Delete(ctx context.Context, volume *Volume) (*Response, error) + func (c *VolumeClient) Detach(ctx context.Context, volume *Volume) (*Action, *Response, error) + func (c *VolumeClient) Get(ctx context.Context, idOrName string) (*Volume, *Response, error) + func (c *VolumeClient) GetByID(ctx context.Context, id int) (*Volume, *Response, error) + func (c *VolumeClient) GetByName(ctx context.Context, name string) (*Volume, *Response, error) + func (c *VolumeClient) List(ctx context.Context, opts VolumeListOpts) ([]*Volume, *Response, error) + func (c *VolumeClient) Resize(ctx context.Context, volume *Volume, size int) (*Action, *Response, error) + func (c *VolumeClient) Update(ctx context.Context, volume *Volume, opts VolumeUpdateOpts) (*Volume, *Response, error) + type VolumeCreateOpts struct + Automount *bool + Format *string + Labels map[string]string + Location *Location + Name string + Server *Server + Size int + func (o VolumeCreateOpts) Validate() error + type VolumeCreateResult struct + Action *Action + NextActions []*Action + Volume *Volume + type VolumeListOpts struct + Name string + Sort []string + Status []VolumeStatus + type VolumePricing struct + PerGBMonthly Price + type VolumeProtection struct + Delete bool + type VolumeStatus string + const VolumeStatusAvailable + const VolumeStatusCreating + type VolumeUpdateOpts struct + Labels map[string]string + Name string