Documentation ¶
Index ¶
- type Auto
- type BootList
- type Cancellation
- type Error
- type Failover
- type FailoverList
- type Firewall
- type FirewallTemplate
- type FirewallTemplateList
- type FirewallTemplateWithRules
- type IP
- type IPCancellation
- type IPList
- type IPSingle
- type InvalidInputError
- type Key
- type Linux
- type LinuxList
- type MAC
- type RDNS
- type RDNSList
- type RequestLimitError
- type Rescue
- type RescueList
- type Reset
- type ResetList
- type SSHKeyGetResponse
- type SSHKeys
- type Server
- type ServerList
- type ServerMarketTransaction
- type ServerMarketTransactionList
- type ServerOrderTransaction
- type ServerOrderTransactionList
- type ServerProduct
- type ServerProductList
- type Server_market_list
- type Server_market_product
- type SingleServer
- type Subnet
- type SubnetCancellation
- type SubnetList
- type SubnetMac
- type VSwitch
- type VSwitchList
- type VSwitchSingle
- type Vnc
- type VncList
- type WOL
- type Windows
- type WindowsList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cancellation ¶
type Cancellation struct { Cancellation struct { ServerIP string `json:"server_ip"` ServerIpv6Net string `json:"server_ipv6_net"` ServerNumber int `json:"server_number"` ServerName string `json:"server_name"` EarliestCancellationDate string `json:"earliest_cancellation_date"` Cancelled bool `json:"cancelled"` ReservationPossible bool `json:"reservation_possible"` Reserved bool `json:"reserved"` CancellationDate interface{} `json:"cancellation_date"` CancellationReason interface{} `json:"cancellation_reason"` } `json:"cancellation"` }
type FailoverList ¶
type Firewall ¶
type Firewall struct { Firewall struct { ServerIP string `json:"server_ip"` ServerNumber int `json:"server_number"` Status string `json:"status"` Filter_IPv6 bool `json:"filter_ipv6"` WhitelistHos bool `json:"whitelist_hos"` Port string `json:"port"` Rules struct { Input []struct { IPVersion string `json:"ip_version"` Name string `json:"name"` DstIP interface{} `json:"dst_ip"` SrcIP string `json:"src_ip"` DstPort string `json:"dst_port"` SrcPort interface{} `json:"src_port"` Protocol interface{} `json:"protocol"` TCPFlags interface{} `json:"tcp_flags"` Action string `json:"action"` } `json:"input"` Output []struct { IPVersion string `json:"ip_version"` Name string `json:"name"` DstIP interface{} `json:"dst_ip"` SrcIP string `json:"src_ip"` DstPort string `json:"dst_port"` SrcPort interface{} `json:"src_port"` Protocol interface{} `json:"protocol"` TCPFlags interface{} `json:"tcp_flags"` Action string `json:"action"` } `json:"output"` } `json:"rules"` } `json:"firewall"` }
type FirewallTemplate ¶
type FirewallTemplateList ¶
type FirewallTemplateWithRules ¶
type FirewallTemplateWithRules struct { FirewallTemplate struct { ID int `json:"id"` Name string `json:"name"` Filter_IPv6 bool `json:"filter_ipv6"` WhitelistHos bool `json:"whitelist_hos"` IsDefault bool `json:"is_default"` Rules struct { Input []struct { IPVersion string `json:"ip_version"` Name string `json:"name"` DstIP interface{} `json:"dst_ip"` SrcIP string `json:"src_ip"` DstPort string `json:"dst_port"` SrcPort interface{} `json:"src_port"` Protocol interface{} `json:"protocol"` TCPFlags interface{} `json:"tcp_flags"` PacketLength interface{} `json:"packet_length"` Action string `json:"action"` } `json:"input"` Output []struct { IPVersion string `json:"ip_version"` Name string `json:"name"` DstIP interface{} `json:"dst_ip"` SrcIP string `json:"src_ip"` DstPort string `json:"dst_port"` SrcPort interface{} `json:"src_port"` Protocol interface{} `json:"protocol"` TCPFlags interface{} `json:"tcp_flags"` PacketLength interface{} `json:"packet_length"` Action string `json:"action"` } `json:"output"` } `json:"rules"` } `json:"firewall_template"` }
type IP ¶
type IP struct { IP struct { IP string `json:"ip"` ServerIP string `json:"server_ip"` ServerNumber int `json:"server_number"` Locked bool `json:"locked"` SeparateMac interface{} `json:"separate_mac"` TrafficWarnings bool `json:"traffic_warnings"` TrafficHourly int `json:"traffic_hourly"` TrafficDaily int `json:"traffic_daily"` TrafficMonthly int `json:"traffic_monthly"` } `json:"ip"` }
type IPCancellation ¶
type IPList ¶
type IPList []struct { IP struct { IP string `json:"ip"` ServerIP string `json:"server_ip"` ServerNumber int `json:"server_number"` Locked bool `json:"locked"` SeparateMac interface{} `json:"separate_mac"` TrafficWarnings bool `json:"traffic_warnings"` TrafficHourly int `json:"traffic_hourly"` TrafficDaily int `json:"traffic_daily"` TrafficMonthly int `json:"traffic_monthly"` } `json:"ip"` }
type IPSingle ¶
type IPSingle struct { IP struct { IP string `json:"ip"` Gateway string `json:"gateway"` Mask int `json:"mask"` Broadcast string `json:"broadcast"` ServerIP string `json:"server_ip"` ServerNumber int `json:"server_number"` Locked bool `json:"locked"` SeparateMac interface{} `json:"separate_mac"` TrafficWarnings bool `json:"traffic_warnings"` TrafficHourly int `json:"traffic_hourly"` TrafficDaily int `json:"traffic_daily"` TrafficMonthly int `json:"traffic_monthly"` } `json:"ip"` }
type InvalidInputError ¶
type Linux ¶
type Linux struct { ServerIP string `json:"server_ip"` ServerIpv6Net string `json:"server_ipv6_net"` ServerNumber int `json:"server_number"` Dist []string `json:"dist"` Arch []int `json:"arch"` Lang []string `json:"lang"` Active bool `json:"active"` Password string `json:"password"` AuthorizedKey []interface{} `json:"authorized_key"` HostKey []interface{} `json:"host_key"` }
type RequestLimitError ¶
type Rescue ¶
type Rescue struct { ServerIP string `json:"server_ip"` ServerIpv6Net string `json:"server_ipv6_net"` ServerNumber int `json:"server_number"` Os interface{} `json:"os"` Arch interface{} `json:"arch"` Active bool `json:"active"` Password interface{} `json:"password"` AuthorizedKey []interface{} `json:"authorized_key"` HostKey []interface{} `json:"host_key"` BootTime interface{} `json:"boot_time"` }
type RescueList ¶
type RescueList struct {
Rescue `json:"rescue"`
}
type SSHKeyGetResponse ¶
type SSHKeyGetResponse struct {
SSHKey SSHKeys `json:"ssh_key"`
}
defines the schema for a single key
type Server ¶
type Server struct { Server struct { ServerIP string `json:"server_ip"` ServerIpv6Net string `json:"server_ipv6_net"` ServerNumber int `json:"server_number"` ServerName string `json:"server_name"` Product string `json:"product"` Dc string `json:"dc"` Traffic string `json:"traffic"` Status string `json:"status"` Cancelled bool `json:"cancelled"` PaidUntil string `json:"paid_until"` IP []string `json:"ip"` Subnet []struct { IP string `json:"ip"` Mask string `json:"mask"` } `json:"subnet"` LinkedStoragebox interface{} `json:"linked_storagebox"` } `json:"server"` }
type ServerList ¶
type ServerList []struct { Server struct { ServerIP string `json:"server_ip"` ServerIpv6Net string `json:"server_ipv6_net"` ServerNumber int `json:"server_number"` ServerName string `json:"server_name"` Product string `json:"product"` Dc string `json:"dc"` Traffic string `json:"traffic"` Status string `json:"status"` Cancelled bool `json:"cancelled"` PaidUntil string `json:"paid_until"` IP []string `json:"ip"` Subnet []struct { IP string `json:"ip"` Mask string `json:"mask"` } `json:"subnet"` LinkedStoragebox interface{} `json:"linked_storagebox"` } `json:"server"` }
type ServerMarketTransaction ¶
type ServerMarketTransaction struct { Transaction struct { ID string `json:"id"` Date time.Time `json:"date"` Status string `json:"status"` ServerNumber interface{} `json:"server_number"` ServerIP interface{} `json:"server_ip"` AuthorizedKey []struct { Key struct { Name string `json:"name"` Fingerprint string `json:"fingerprint"` Type string `json:"type"` Size int `json:"size"` } `json:"key"` } `json:"authorized_key"` HostKey []interface{} `json:"host_key"` Comment interface{} `json:"comment"` Product struct { ID int `json:"id"` Name string `json:"name"` Description []string `json:"description"` Traffic string `json:"traffic"` Dist string `json:"dist"` Arch string `json:"arch"` Lang string `json:"lang"` CPU string `json:"cpu"` CPUBenchmark int `json:"cpu_benchmark"` MemorySize int `json:"memory_size"` HddSize int `json:"hdd_size"` HddText string `json:"hdd_text"` HddCount int `json:"hdd_count"` Datacenter string `json:"datacenter"` NetworkSpeed string `json:"network_speed"` } `json:"product"` } `json:"transaction"` }
type ServerMarketTransactionList ¶
type ServerMarketTransactionList []struct { Transaction struct { ID string `json:"id"` Date time.Time `json:"date"` Status string `json:"status"` ServerNumber interface{} `json:"server_number"` ServerIP interface{} `json:"server_ip"` AuthorizedKey []struct { Key struct { Name string `json:"name"` Fingerprint string `json:"fingerprint"` Type string `json:"type"` Size int `json:"size"` } `json:"key"` } `json:"authorized_key"` HostKey []interface{} `json:"host_key"` Comment interface{} `json:"comment"` Product struct { ID int `json:"id"` Name string `json:"name"` Description []string `json:"description"` Traffic string `json:"traffic"` Dist string `json:"dist"` Arch string `json:"arch"` Lang string `json:"lang"` CPU string `json:"cpu"` CPUBenchmark int `json:"cpu_benchmark"` MemorySize int `json:"memory_size"` HddSize int `json:"hdd_size"` HddText string `json:"hdd_text"` HddCount int `json:"hdd_count"` Datacenter string `json:"datacenter"` NetworkSpeed string `json:"network_speed"` } `json:"product"` } `json:"transaction"` }
type ServerOrderTransaction ¶
type ServerOrderTransaction struct { Transaction struct { ID string `json:"id"` Date time.Time `json:"date"` Status string `json:"status"` ServerNumber interface{} `json:"server_number"` ServerIP interface{} `json:"server_ip"` AuthorizedKey []struct { Key struct { Name string `json:"name"` Fingerprint string `json:"fingerprint"` Type string `json:"type"` Size int `json:"size"` } `json:"key"` } `json:"authorized_key"` HostKey []interface{} `json:"host_key"` Comment interface{} `json:"comment"` Product struct { ID string `json:"id"` Name string `json:"name"` Description []string `json:"description"` Traffic string `json:"traffic"` Dist string `json:"dist"` Arch int `json:"arch"` Lang string `json:"lang"` Location string `json:"location"` } `json:"product"` Addons []interface{} `json:"addons"` } `json:"transaction"` }
type ServerOrderTransactionList ¶
type ServerOrderTransactionList []struct { Transaction struct { ID string `json:"id"` Date time.Time `json:"date"` Status string `json:"status"` ServerNumber interface{} `json:"server_number"` ServerIP interface{} `json:"server_ip"` AuthorizedKey []struct { Key struct { Name string `json:"name"` Fingerprint string `json:"fingerprint"` Type string `json:"type"` Size int `json:"size"` } `json:"key"` } `json:"authorized_key"` HostKey []interface{} `json:"host_key"` Comment interface{} `json:"comment"` Product struct { ID string `json:"id"` Name string `json:"name"` Description []string `json:"description"` Traffic string `json:"traffic"` Dist string `json:"dist"` Arch int `json:"arch"` Lang string `json:"lang"` Location string `json:"location"` } `json:"product"` Addons []interface{} `json:"addons"` } `json:"transaction"` }
type ServerProduct ¶
type ServerProduct struct { Product struct { ID string `json:"id"` Name string `json:"name"` Description []string `json:"description"` Traffic string `json:"traffic"` Dist []string `json:"dist"` DeprecatedArch []int `json:"@deprecated arch"` Lang []string `json:"lang"` Location []string `json:"location"` Prices []struct { Location string `json:"location"` Price struct { Net string `json:"net"` Gross string `json:"gross"` } `json:"price"` PriceSetup struct { Net string `json:"net"` Gross string `json:"gross"` } `json:"price_setup"` } `json:"prices"` OrderableAddons []struct { ID string `json:"id"` Name string `json:"name"` Min int `json:"min"` Max int `json:"max"` Prices interface{} `json:"prices"` } `json:"orderable_addons"` } `json:"product"` }
type ServerProductList ¶
type ServerProductList []struct { Product struct { ID string `json:"id"` Name string `json:"name"` Description []string `json:"description"` Traffic string `json:"traffic"` Dist []string `json:"dist"` DeprecatedArch []int `json:"@deprecated arch"` Lang []string `json:"lang"` Location []string `json:"location"` Prices []struct { Location string `json:"location"` Price struct { Net string `json:"net"` Gross string `json:"gross"` } `json:"price"` PriceSetup struct { Net string `json:"net"` Gross string `json:"gross"` } `json:"price_setup"` } `json:"prices"` OrderableAddons []struct { ID string `json:"id"` Name string `json:"name"` Min int `json:"min"` Max int `json:"max"` Prices interface{} `json:"prices"` } `json:"orderable_addons"` } `json:"product"` }
type Server_market_list ¶
type Server_market_list []struct { Product struct { ID int `json:"id"` Name string `json:"name"` Description []string `json:"description"` Traffic string `json:"traffic"` Dist []string `json:"dist"` Arch []int `json:"arch"` Lang []string `json:"lang"` CPU string `json:"cpu"` CPUBenchmark int `json:"cpu_benchmark"` MemorySize int `json:"memory_size"` HddSize int `json:"hdd_size"` HddText string `json:"hdd_text"` HddCount int `json:"hdd_count"` Datacenter string `json:"datacenter"` NetworkSpeed string `json:"network_speed"` Price string `json:"price"` PriceSetup string `json:"price_setup"` PriceVat string `json:"price_vat"` PriceSetupVat string `json:"price_setup_vat"` FixedPrice bool `json:"fixed_price"` NextReduce int `json:"next_reduce"` NextReduceDate string `json:"next_reduce_date"` } `json:"product"` }
type Server_market_product ¶
type Server_market_product struct { Product struct { ID int `json:"id"` Name string `json:"name"` Description []string `json:"description"` Traffic string `json:"traffic"` Dist []string `json:"dist"` Arch []int `json:"arch"` Lang []string `json:"lang"` CPU string `json:"cpu"` CPUBenchmark int `json:"cpu_benchmark"` MemorySize int `json:"memory_size"` HddSize int `json:"hdd_size"` HddText string `json:"hdd_text"` HddCount int `json:"hdd_count"` Datacenter string `json:"datacenter"` NetworkSpeed string `json:"network_speed"` Price string `json:"price"` PriceSetup string `json:"price_setup"` PriceVat string `json:"price_vat"` PriceSetupVat string `json:"price_setup_vat"` FixedPrice bool `json:"fixed_price"` NextReduce int `json:"next_reduce"` NextReduceDate string `json:"next_reduce_date"` } `json:"product"` }
type SingleServer ¶
type SingleServer struct { Server struct { ServerIP string `json:"server_ip"` ServerIpv6Net string `json:"server_ipv6_net"` ServerNumber int `json:"server_number"` ServerName string `json:"server_name"` Product string `json:"product"` Dc string `json:"dc"` Traffic string `json:"traffic"` Status string `json:"status"` Cancelled bool `json:"cancelled"` PaidUntil string `json:"paid_until"` IP []string `json:"ip"` Subnet []struct { IP string `json:"ip"` Mask string `json:"mask"` } `json:"subnet"` Reset bool `json:"reset"` Rescue bool `json:"rescue"` Vnc bool `json:"vnc"` Windows bool `json:"windows"` Plesk bool `json:"plesk"` Cpanel bool `json:"cpanel"` Wol bool `json:"wol"` HotSwap bool `json:"hot_swap"` LinkedStoragebox interface{} `json:"linked_storagebox"` } `json:"server"` }
type Subnet ¶
type Subnet struct { Subnet struct { IP string `json:"ip"` Mask int `json:"mask"` Gateway string `json:"gateway"` ServerIP string `json:"server_ip"` ServerNumber int `json:"server_number"` Failover bool `json:"failover"` Locked bool `json:"locked"` TrafficWarnings bool `json:"traffic_warnings"` TrafficHourly int `json:"traffic_hourly"` TrafficDaily int `json:"traffic_daily"` TrafficMonthly int `json:"traffic_monthly"` } `json:"subnet"` }
type SubnetCancellation ¶
type SubnetCancellation struct { Cancellation struct { IP string `json:"ip"` Mask int `json:"mask"` ServerNumber int `json:"server_number"` EarliestCancellationDate string `json:"earliest_cancellation_date"` Cancelled bool `json:"cancelled"` CancellationDate interface{} `json:"cancellation-date"` } `json:"cancellation"` }
type SubnetList ¶
type SubnetList []struct { Subnet struct { IP string `json:"ip"` Mask int `json:"mask"` Gateway string `json:"gateway"` ServerIP string `json:"server_ip"` ServerNumber int `json:"server_number"` Failover bool `json:"failover"` Locked bool `json:"locked"` TrafficWarnings bool `json:"traffic_warnings"` TrafficHourly int `json:"traffic_hourly"` TrafficDaily int `json:"traffic_daily"` TrafficMonthly int `json:"traffic_monthly"` } `json:"subnet"` }
type VSwitchList ¶
type VSwitchSingle ¶
type WindowsList ¶
type WindowsList struct {
Windows `json:"windows"`
}
Click to show internal directories.
Click to hide internal directories.