# Functions
NewClient builds a new client with token.
NewClientWithEndpoint builds a new client with token and api endpoint.
NewCollection produces a new CollectionHandler and represents this as an interface of Collection.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
AccountBalance represents account balance info.
AccountHandler handles operations around account.
No description provided by the author
BadRequestError represents an errors related to 400 response status code.
BandwidthOption represents bandwidth option.
Client manages communication with Servers.com API V1.
CloudBlockStorageBackup represents backup for cloud block storage volume.
CloudBlockStorageBackupCreateInput represents cloud block storage volume backup create input.
CloudBlockStorageBackupRestoreInput represents cloud block storage backup restore input.
CloudBlockStorageBackupsHandler handles operations around cloud backups.
CloudBlockStorageBackupUpdateInput represents cloud block storage volume backup update input.
CloudBlockStorageVolume represents cloud block storage volume.
CloudBlockStorageVolumeAttachInput represents cloud block storage volume attach input.
CloudBlockStorageVolumeCreateInput represents cloud block storage volume create input.
CloudBlockStorageVolumeDetachInput represents cloud block storage volume detach input.
CloudBlockStorageVolumesHandler handles operations around cloud volumes.
CloudBlockStorageVolumeUpdateInput represents cloud block storage volume update input.
CloudComputingFlavor represents cloud computing flavor.
CloudComputingImage represents cloud computing image.
CloudComputingInstance represents cloud instance.
CloudComputingInstanceCreateInput represents cloud instance create input.
CloudComputingInstanceReinstallInput represents cloud instance reinstall input.
CloudComputingInstancesHandler handles operations around cloud instances.
CloudComputingInstanceUpdateInput represents cloud instance update input.
CloudComputingInstanceUpgradeInput represents cloud instance upgrade input.
CloudComputingRegion represents cloud computing region.
CloudComputingRegionsHandler handles operations around cloud computing regions.
CollectionHandler handles operations around collection.
ConfigurationDetails represents host configuration details.
ConflictError represents an errors related to 409 response status code.
DedicatedServer represents dedicated server.
DedicatedServerCreateInput represents dedicated server create input, example:
driveModelID := int64(1) osUbuntuServerID := int64(1) rootFilesystem := "ext4" raidLevel := 0
input := DedicatedServerCreateInput{ ServerModelID: int64(1), LocationID: int64(1), RAMSize: 32, UplinkModels: DedicatedServerUplinkModelInput{ PublicUplink &DedicatedServerPublicUplinkInput{ID: int64(1), BandwidthModelID: int64(1)}, PrivateUplink: DedicatedServerPrivateUplinkInput{ID: int64(2)}, }, Drives: DedicatedServerDrivesInput{ Slots: []DedicatedServerSlotInput{ DedicatedServerSlotInput{Position: 0, DriveModelID: &driveModelID}, DedicatedServerSlotInput{Position: 1, DriveModelID: &driveModelID}, }, Layout: []DedicatedServerLayoutInput{ DedicatedServerLayoutInput{ SlotPositions: []int{0, 1}, Riad: &raidLevel, Partitions: []DedicatedServerLayoutPartitionInput{ DedicatedServerLayoutPartitionInput{Target: "swap", Size: 4096, Fill: false}, DedicatedServerLayoutPartitionInput{Target: "/", Fs: &rootFilesystem, Size: 100000, Fill: true}, }, }, }, }, IPv6: true, OperatingSystemID: &osUbuntuServerID, SSHKeyFingerprints: []string{ "48:81:0c:43:99:12:71:5e:ba:fd:e7:2f:20:d7:95:e8" }, Hosts: []DedicatedServerHostInput{ { Hostname: "example-host", }, }, }.
DedicatedServerDrivesInput represents drives for DedicatedServerCreateInput.
DedicatedServerHostInput represents hosts for DedicatedServerCreateInput.
DedicatedServerLayoutInput represents layout for DedicatedServerDrivesInput.
DedicatedServerLayoutPartitionInput represents partition for DedicatedServerLayoutInput.
DedicatedServerPrivateUplinkInput represents private uplink for DedicatedServerUplinkModelsInput.
DedicatedServerPublicUplinkInput represents public uplink for DedicatedServerUplinkModelsInput.
DedicatedServerSlotInput represents slot for DedicatedServerDrivesInput.
DedicatedServerUpdateInput represents dedicated server update input.
DedicatedServerUplinkModelsInput represents uplinks for DedicatedServerCreateInput.
DriveModel represents drive model.
ForbiddenError represents an errors related to 403 response status code.
Host represents host.
HostConnection represents host connection.
HostDriveSlot represents host drive slot.
HostPowerFeed represents feed status.
HostsHandler handles operations around hosts.
InternalServerError represents an errors related to 500 response status code.
Invoice represents an invoice.
InvoiceHandler handles operations around invoices.
InvoiceList represents invoices list.
KubernetesBaremetalNode represents kubernetes baremetal node.
KubernetesBaremetalNodeUpdateInput represents kubernetes baremetal node update input.
KubernetesCluster represents Kubernetes cluster.
KubernetesClusterNode represents Kubernetes cluster node.
KubernetesClustersHandler handles operations around kubernetes clusters.
KubernetesClusterUpdateInput represents Kubernetes cluster update input.
L2LocationGroup represents l2 location groups.
L2Member respresents l2 segment member.
L2Segment represents l2 segment.
L2SegmentChangeNetworksInput represents input to change networks.
L2SegmentCreateInput represents l2 segment create input.
L2SegmentCreateNetworksInput represents input to create networks for L2SegmentChangeNetworksInput.
L2SegmentMemberInput represents l2 segment member input for L2SegmentCreateInput and L2SegmentUpdateInput.
L2SegmentsHandler handles operatings around l2 segments.
L2SegmentUpdateInput represents l2 segment update input.
L4LoadBalancer represents l4 load balancer.
L4LoadBalancerUpdateInput represents l4 load balancer create input.
L4LoadBalancerUpdateInput represents l4 load balancer update input.
L4UpstreamInput represents l4 upstream input.
L4UpstreamZoneInput represents l4 upstream zone input.
L4VHostZoneInput represents l4 vhost zone input.
L7LoadBalancer represents l7 load balancer.
L7LoadBalancerUpdateInput represents l7 load balancer create input.
L7LoadBalancerUpdateInput represents l7 load balancer update input.
L7LocationZoneInput represents l7 location zone input.
L7UpstreamInput represents l7 upstream input.
L7UpstreamZoneInput represents l7 upstream zone input.
L7VHostZoneInput represents l7 vhost zone input.
LoadBalancer represents load balancer.
LoadBalancerCluster represents load balancer cluster.
LoadBalancersHandler handles operations around hosts.
LoadBalancersHandler handles operations around hosts.
Location represents location.
LocationsHandler handles operations around cloud instances.
Network represents network.
NetworkPool represents network pool.
NetworkPoolInput represents network pool input.
NetworkPoolsHandler handles operations around network pools.
NotFoundError represents an errors related to 404 response status code.
OperatingSystemOption represents operating system option.
OperatingSystemReinstallDrivesInput represents drives for os reinstallation input.
OperatingSystemReinstallInput represents os reinstallation input.
OperatingSystemReinstallLayoutInput represents layout for os reinstallation drives input.
OperatingSystemReinstallPartitionInput represents partition for os reinstallation layout input.
ParsingError represents any error related to the problem with parsing a body.
PTRRecord represents ptr record.
PTRRecordCreateInput represents ptr record create input.
Rack represents rack.
RacksHandler handles operations around hosts.
RackUpdateInput represents rack update input.
RAMOption represents ram option.
RealIPHeader represents real IP header.
No description provided by the author
OperatingSystemReinstallInput represents os reinstallation input.
SBMServer represents scalable baremetal server.
SBMServerCreateInput represents SBM server create input, example:
input := &SBMServerCreateInput{ SBMFlavorModelID: 1, LocationID: 2, Hosts: []SBMServerHostInput{ { Hostname: "test", }, }, }.
SBMServerHostInput represents hosts for SBMServerCreateInput.
SBMServerUpdateInput represents sbm server update input.
ServerModelOption represents server model option.
SSHKey represents ssh key.
SSHKeyCreateInput represents ssh key create input.
SSHKeysHandler handles operations around ssh keys.
SSHKeyUpdateInput represents ssh key update input.
SSLCertificate represents ssl certificate.
SSLCertificateCreateCustomInput represents custom ssl certificate create input.
SSLCertificateCustom represents custom ssl certificate.
SSLCertificateLE represents let's encrypt ssl certificate.
SSLCertificatesHandler handles operations around ssl certificates.
SSLCertificateUpdateCustomInput represents custom ssl certificate update input.
SSLCertificateUpdateLEInput represents let's encrypt ssl certificate update input.
Subnetwork represents subnetwork.
SubnetworkCreateInput represents subnetwork create input.
SubnetworkUpdateInput respresents subnetwork update input.
UnauthorizedError represents an errors related to 401 response status code.
UnprocessableEntityError represents an errors related to 422 response status code.
UplinkOption represents uplink option.
# Interfaces
AccountService is an interface for interfacing with accoount endpoints API documentation: https://developers.servers.com/api-documentation/v1/#tag/Account.
CloudBlockStorageBackupsService is an interface for interfacing with Cloud Backup endpoints API documentation: https://developers.servers.com/api-documentation/v1/#tag/Cloud-Backup.
CloudBlockStorageVolumesService is an interface for interfacing with Cloud Volume endpoints API documentation: https://developers.servers.com/api-documentation/v1/#tag/Cloud-Volume.
CloudComputingInstancesService is an interface to interfacing with the Cloud Instance endpoints API documentation: https://developers.servers.com/api-documentation/v1/#tag/Cloud-Instance.
CloudComputingRegionsService is an interface to interfacing with the cloud computing regions endpoints API documentation: https://developers.servers.com/api-documentation/v1/#tag/Cloud-Region.
Collection is an interface for interfacing with the collection.
HostsService is an interface for interfacing with Host, Dedicated Server endpoints API documentation: https://developers.servers.com/api-documentation/v1/#tag/Host https://developers.servers.com/api-documentation/v1/#tag/Dedicated-Server https://developers.servers.com/api-documentation/v1/#tag/Kubernetes-Baremetal-Node https://developers.servers.com/api-documentation/v1/#tag/Scalable-Baremetal-Server.
BilligService is an interface for interfacing with Billing Invoices endpoints API documentation: https://developers.servers.com/api-documentation/v1/#tag/Invoice.
KubernetesClustersService is an interface for interfacing with Kubernetes Cluster endpoints API documentation: https://developers.servers.com/api-documentation/v1/#tag/Kubernetes-Cluster.
L2SegmentsService is an interface for interfacing with Host, Dedicated Server endpoints API documentation: https://developers.servers.com/api-documentation/v1/#tag/L2-Segment.
LoadBalancersService is an interface for interfacing with Load balancers endpoints.
LoadBalancersService is an interface for interfacing with Load balancers endpoints API documentation: https://developers.servers.com/api-documentation/v1/#tag/LoadBalancers.
LocationsService is an interface to interfacing with the Location and Order options endpoints API documentation: https://developers.servers.com/api-documentation/v1/#tag/Location https://developers.servers.com/api-documentation/v1/#tag/Server-Model-Option https://developers.servers.com/api-documentation/v1/#tag/Drive-Model-Option https://developers.servers.com/api-documentation/v1/#tag/Ram-Option https://developers.servers.com/api-documentation/v1/#tag/Operating-System-Option https://developers.servers.com/api-documentation/v1/#tag/Uplink-Model-Option https://developers.servers.com/api-documentation/v1/#tag/Bandwidth-Option.
NetworkPoolsService is an interface to interfacing with the Network Pool endpoints API documentation: https://developers.servers.com/api-documentation/v1/#tag/Network-Pool.
RacksService is an interface for interfacing with Rack endpoints Endpoint: https://developers.servers.com/api-documentation/v1/#tag/Rack.
SSHKeysService is an interface to interfacing with the SSH Key endpoints API documentation: https://developers.servers.com/api-documentation/v1/#tag/SSH-Key.
SSLCertificatesService is an interface to interfacing with the SSL Certificate endpoints API documentation: https://developers.servers.com/api-documentation/v1/#tag/SSL-Certificate.
# Type aliases
RealIPHeaderName represents real IP header name.