Versions in this module Expand all Collapse all v0 v0.1.0 May 7, 2024 Changes in this version + const Endpoint + const Version + func PrettyPrint(i interface{}) string + type AddvSwitchOps struct + Name string + Vlan_ID int + type BootClient struct + func (c *BootClient) ActivateLinux(ctx context.Context, servernumber string, opt *LinuxOpts) (*BootLinux, *Response, error) + func (c *BootClient) ActivateRescue(ctx context.Context, servernumber string, opt *RescueOpts) (*BootRescue, *Response, error) + func (c *BootClient) ActivateVNC(ctx context.Context, servernumber string, opt *VNCOpts) (*BootVnc, *Response, error) + func (c *BootClient) ActivateWindows(ctx context.Context, servernumber string, language string) (*BootWindows, *Response, error) + func (c *BootClient) DeactivateLinux(ctx context.Context, servernumber string) (*BootLinux, *Response, error) + func (c *BootClient) DeactivateRescue(ctx context.Context, servernumber string) (*BootRescue, *Response, error) + func (c *BootClient) DeactivateVNC(ctx context.Context, servernumber string) (*BootVnc, *Response, error) + func (c *BootClient) DeactivateWindows(ctx context.Context, servernumber string) (*BootWindows, *Response, error) + func (c *BootClient) GetBootOptions(ctx context.Context, servernumber string) (*BootList, *Response, error) + func (c *BootClient) GetLastLinux(ctx context.Context, servernumber string) (*BootLinux, *Response, error) + func (c *BootClient) GetLastRescue(ctx context.Context, servernumber string) (*BootRescue, *Response, error) + func (c *BootClient) GetLinux(ctx context.Context, servernumber string) (*BootLinux, *Response, error) + func (c *BootClient) GetRescue(ctx context.Context, servernumber string) (*BootRescue, *Response, error) + func (c *BootClient) GetVNC(ctx context.Context, servernumber string) (*BootVnc, *Response, error) + func (c *BootClient) GetWindows(ctx context.Context, servernumber string) (*BootWindows, *Response, error) + type BootLinux struct + Active bool + Arch []int + AuthorizedKey []interface{} + Dist []string + HostKey []interface{} + Lang []string + Password string + ServerIP string + ServerIpv6Net string + ServerNumber int + func LinuxFromSchema(s schema.LinuxList) *BootLinux + type BootList struct + Cpanel interface{} + Linux BootLinux + Plesk interface{} + Rescue BootRescue + Vnc BootVnc + Windows interface{} + func BootListFromSchema(s schema.BootList) *BootList + type BootRescue struct + Active bool + Arch interface{} + AuthorizedKey []interface{} + BootTime interface{} + HostKey []interface{} + Os interface{} + Password interface{} + ServerIP string + ServerIpv6Net string + ServerNumber int + func RescueFromSchema(s schema.RescueList) *BootRescue + type BootVnc struct + Active bool + Arch []int + Dist []string + Lang []string + Password string + ServerIP string + ServerIpv6Net string + ServerNumber int + func VncFromSchema(s schema.VncList) *BootVnc + type BootWindows struct + Active bool + Dist []string + Lang []string + Password string + ServerIP string + ServerIpv6Net string + ServerNumber int + func WindowsFromSchema(s schema.WindowsList) *BootWindows + type Cancellation struct + CancellationDate interface{} + CancellationReason interface{} + Cancelled bool + EarliestCancellationDate string + ReservationPossible bool + Reserved bool + ServerIP string + ServerIpv6Net string + ServerName string + ServerNumber int + func CancellationFromSchema(s schema.Cancellation) *Cancellation + type CancellationOps struct + CancellationDate string + CancellationReason string + ReverseLocation bool + type Client struct + Boot BootClient + Failover FailoverClient + Firewall FirewallClient + IP IPClient + Order OrderClient + RDNS RDNSClient + Reset ResetClient + SSHKey SSHKeyClient + Server ServerClient + Subnet SubnetClient + VSwitch VSwitchClient + WakeOnLane WOLClient + 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, data url.Values) (*http.Request, error) + type ClientOption func(*Client) + func WithBasicAuth(username, password string) ClientOption + func WithDebugWriter(debugWriter io.Writer) ClientOption + func WithHTTPClient(httpClient *http.Client) ClientOption + func WithToken(token string) ClientOption + type CpanelOpts struct + Dist string + Hostname string + Lang string + type CreateKeyOpts struct + Data string + Name string + type Error struct + Code string + Message string + Status int + type Failover struct + ActiveServerIP string + IP string + Netmask string + ServerIP string + ServerNumber int + func FailoverFromSchema(s schema.Failover) *Failover + type FailoverClient struct + func (c *FailoverClient) DeleteFailover(ctx context.Context, failover_ip string) (*Failover, *Response, error) + func (c *FailoverClient) GetFailoverIP(ctx context.Context, ip string) (*Failover, *Response, error) + func (c *FailoverClient) List(ctx context.Context) ([]*Failover, *Response, error) + func (c *FailoverClient) SwitchFailover(ctx context.Context, active_server_ip string) (*Failover, *Response, error) + type Firewall struct + Filter_IPv6 bool + Port string + Rules struct{ ... } + ServerIP string + ServerNumber int + Status string + WhitelistHos bool + func FirewallFromSchema(s schema.Firewall) *Firewall + type FirewallClient struct + func (c *FirewallClient) DeleteFirewallByIP(ctx context.Context, ip string) (*Response, error) + func (c *FirewallClient) DeleteFirewallByServerNumber(ctx context.Context, servernumber string) (*Response, error) + func (c *FirewallClient) DeleteFirewallTemplateById(ctx context.Context, id string) (*Response, error) + func (c *FirewallClient) GetFirewallByIP(ctx context.Context, ip string) (*Firewall, *Response, error) + func (c *FirewallClient) GetFirewallByServernumber(ctx context.Context, servernumber string) (*Firewall, *Response, error) + func (c *FirewallClient) GetFirewallTemplate(ctx context.Context) ([]*FirewallTemplate, *Response, error) + func (c *FirewallClient) GetFirewallTemplateById(ctx context.Context, id string) (*FirewallTemplateWithRules, *Response, error) + func (c *FirewallClient) PostFirewallByIP(ctx context.Context, ip string, opt *FirewallOps) (*Firewall, *Response, error) + func (c *FirewallClient) PostFirewallByServernumber(ctx context.Context, servernumber string, opt *FirewallOps) (*Firewall, *Response, error) + func (c *FirewallClient) PostFirewallTemplate(ctx context.Context, opt *FirewallTemplateOps) (*FirewallTemplateWithRules, *Response, error) + func (c *FirewallClient) UpdateFirewallTemplateById(ctx context.Context, id string, opt *FirewallTemplateOps) (*FirewallTemplateWithRules, *Response, error) + type FirewallOps struct + Filter_IPv6 string + Rules []InputRule + Status string + Template_id string + Whitelist_hos string + type FirewallRules struct + Rules struct{ ... } + type FirewallTemplate struct + Filter_IPv6 bool + ID int + IsDefault bool + Name string + WhitelistHos bool + func FirewallTemplateFromSchema(s schema.FirewallTemplate) *FirewallTemplate + type FirewallTemplateOps struct + Filter_IPv6 string + Is_Default bool + Name string + Rules []InputRule + Whitelist_hos bool + type FirewallTemplateWithRules struct + Filter_IPv6 bool + ID int + IsDefault bool + Name string + Rules struct{ ... } + WhitelistHos bool + func FirewallTemplateWithRulesFromSchema(s schema.FirewallTemplateWithRules) *FirewallTemplateWithRules + type IP struct + IP string + Locked bool + SeparateMac interface{} + ServerIP string + ServerNumber int + TrafficDaily int + TrafficHourly int + TrafficMonthly int + TrafficWarnings bool + func IPFromSchema(s schema.IP) *IP + type IPCancellation struct + CancellationDate interface{} + Cancelled bool + EarliestCancellationDate string + IP string + ServerNumber int + func IPCancellationFromSchema(s schema.IPCancellation) *IPCancellation + type IPClient struct + func (c *IPClient) DeleteCancellation(ctx context.Context, ip string) (*IPCancellation, *Response, error) + func (c *IPClient) DeleteMAC(ctx context.Context, ip string) (*MAC, *Response, error) + func (c *IPClient) GenerateMAC(ctx context.Context, ip string) (*MAC, *Response, error) + func (c *IPClient) GetCancellation(ctx context.Context, ip string) (*IPCancellation, *Response, error) + func (c *IPClient) GetIPByIP(ctx context.Context, ip string) (*IPSingle, *Response, error) + func (c *IPClient) GetMACByIP(ctx context.Context, ip string) (*MAC, *Response, error) + func (c *IPClient) List(ctx context.Context) ([]*IP, *Response, error) + func (c *IPClient) PostCancellation(ctx context.Context, ip string, cancellation_date string) (*IPCancellation, *Response, error) + func (c *IPClient) UpdateTrafficByIP(ctx context.Context, ip string, opt *IPOps) (*IPSingle, *Response, error) + type IPOps struct + TrafficDaily string + TrafficHourly string + TrafficMonthly string + TrafficWarnings bool + type IPSingle struct + Broadcast string + Gateway string + IP string + Locked bool + Mask int + SeparateMac interface{} + ServerIP string + ServerNumber int + TrafficDaily int + TrafficHourly int + TrafficMonthly int + TrafficWarnings bool + func IPSingleFromSchema(s schema.IPSingle) *IPSingle + type InputRule struct + Action string + DstIP string + DstPort string + IPVersion string + Name string + Protocol string + SrcIP string + SrcPort string + TCPFlags string + type LinuxOpts struct + Authorized_Key string + Dist string + Lang string + type MAC struct + IP string + MAC string + func MACFromSchema(s schema.MAC) *MAC + type OrderClient struct + func (c *OrderClient) GetMarketServerById(ctx context.Context, transaction int) (*ServerMarketProduct, *Response, error) + func (c *OrderClient) GetMarketTransactionById(ctx context.Context, id string) (*ServerMarketTransaction, *Response, error) + func (c *OrderClient) GetProductById(ctx context.Context, id string) (*ServerProduct, *Response, error) + func (c *OrderClient) GetServerMarketTransactionList(ctx context.Context) ([]*ServerMarketTransaction, *Response, error) + func (c *OrderClient) GetServerTransactionById(ctx context.Context, id string) (*ServerOrderTransaction, *Response, error) + func (c *OrderClient) GetServerTransactionList(ctx context.Context) ([]*ServerOrderTransaction, *Response, error) + func (c *OrderClient) ListMarket(ctx context.Context, opt *OrderMarketListOpts) ([]*ServerMarketProduct, *Response, error) + func (c *OrderClient) OrderServer(ctx context.Context, opt *OrderServerOpts) (*ServerOrderTransaction, *Response, error) + func (c *OrderClient) OrderServerMarket(ctx context.Context, opt *OrderMarketOpts) (*ServerMarketTransaction, *Response, error) + func (c *OrderClient) ProductList(ctx context.Context, opt *OrderServerListOpts) ([]*ServerProduct, *Response, error) + type OrderMarketListOpts struct + CPU string + Max_CPU_Benchmark string + Max_HDD_Size string + Max_Memory_Size string + Max_Price string + Min_CPU_Benchmark string + Min_HDD_Size string + Min_Memory_Size string + Min_Price string + Search string + type OrderMarketOpts struct + Arch string + Authorized_Keys string + Comment string + Dist string + Lang string + Product_ID string + Test bool + type OrderServerListOpts struct + Location string + Max_Price string + Max_Price_Setup string + Min_Price string + Min_Price_Setup string + type OrderServerOpts struct + Addons string + Arch string + Authorized_Key string + Comment string + Dist string + Lang string + Location string + Product_ID string + Test bool + type PleskOpts struct + Dist string + Hostname string + Lang string + type RDNS struct + IP string + PTR string + func RDNSFromSchema(s schema.RDNS) *RDNS + type RDNSClient struct + func (c *RDNSClient) CreateRDNS(ctx context.Context, ip string, ptr string) (*RDNS, *Response, error) + func (c *RDNSClient) Delete(ctx context.Context, ip string) (*Response, error) + func (c *RDNSClient) GetAll(ctx context.Context) ([]*RDNS, *Response, error) + func (c *RDNSClient) GetByIP(ctx context.Context, ip string) (*RDNS, *Response, error) + func (c *RDNSClient) UpdateRDNS(ctx context.Context, ip string, ptr string) (*RDNS, *Response, error) + type RescueOpts struct + Arch string + Authorized_Key string + Keyboard string + OS string + type Reset struct + OperatingStatus string + ServerIP string + ServerIpv6Net string + ServerNumber int + Type interface{} + func ResetFromSchema(s schema.Reset) *Reset + type ResetClient struct + func (c *ResetClient) ExecuteReset(ctx context.Context, servernumber string, hwtype string) (*Reset, *Response, error) + func (c *ResetClient) GetResetByServernumber(ctx context.Context, servernumber string) (*Reset, *Response, error) + func (c *ResetClient) List(ctx context.Context) ([]*Reset, *Response, error) + type Response struct + type RulesJSONtoURLENCode func() + type SSHKey struct + Created string + Data string + Fingerprint string + Name string + Size int + Type string + func SSHKeyFromSchema(s schema.Key) *SSHKey + type SSHKeyClient struct + func (c *SSHKeyClient) Create(ctx context.Context, opt *CreateKeyOpts) (*SSHKey, *Response, error) + func (c *SSHKeyClient) Delete(ctx context.Context, fingerprint string) (*Response, error) + func (c *SSHKeyClient) GetByFingerprint(ctx context.Context, fingerprint string) (*SSHKey, *Response, error) + func (c *SSHKeyClient) List(ctx context.Context) ([]*SSHKey, *Response, error) + func (c *SSHKeyClient) Update(ctx context.Context, fingerprint string, opt *UpdateKeyOpts) (*SSHKey, *Response, error) + type Server struct + Cancelled bool + Dc string + IP []string + LinkedStoragebox interface{} + PaidUntil string + Product string + ServerIP string + ServerIpv6Net string + ServerName string + ServerNumber int + Status string + Subnet []struct{ ... } + Traffic string + func ServerFromSchema(s schema.Server) *Server + type ServerClient struct + func (c *ServerClient) DeleteCancellation(ctx context.Context, servernumber string) (*Response, error) + func (c *ServerClient) GetCancellation(ctx context.Context, servernumber string) (*Cancellation, *Response, error) + func (c *ServerClient) GetServerById(ctx context.Context, id string) (*SingleServer, *Response, error) + func (c *ServerClient) List(ctx context.Context) ([]*Server, *Response, error) + func (c *ServerClient) PostCancellation(ctx context.Context, servernumber string, opt *CancellationOps) (*Cancellation, *Response, error) + func (c *ServerClient) PostReversal(ctx context.Context, servernumber string, reversal_reason string) (*Cancellation, *Response, error) + func (c *ServerClient) UpdateServerName(ctx context.Context, id string, servername string) (*SingleServer, *Response, error) + type ServerMarketProduct struct + Arch []int + CPU string + CPUBenchmark int + Datacenter string + Description []string + Dist []string + FixedPrice bool + HddCount int + HddSize int + HddText string + ID int + Lang []string + MemorySize int + Name string + NetworkSpeed string + NextReduce int + NextReduceDate string + Price string + PriceSetup string + PriceSetupVat string + PriceVat string + Traffic string + func ServerMarketOrderFromSchema(s schema.Server_market_product) *ServerMarketProduct + type ServerMarketTransaction struct + AuthorizedKey []struct{ ... } + Comment interface{} + Date time.Time + HostKey []interface{} + ID string + Product struct{ ... } + ServerIP interface{} + ServerNumber interface{} + Status string + func ServerMarketTransactionFromSchema(s schema.ServerMarketTransaction) *ServerMarketTransaction + type ServerOrderTransaction struct + Addons []interface{} + AuthorizedKey []struct{ ... } + Comment interface{} + Date time.Time + HostKey []interface{} + ID string + Product struct{ ... } + ServerIP interface{} + ServerNumber interface{} + Status string + func ServerOrderTransactionFromSchema(s schema.ServerOrderTransaction) *ServerOrderTransaction + type ServerProduct struct + Arch []int + Description []string + Dist []string + ID string + Lang []string + Location []string + Name string + OrderableAddons []struct{ ... } + Prices []struct{ ... } + Traffic string + func ServerProductFromSchema(s schema.ServerProduct) *ServerProduct + type SingleServer struct + Cancelled bool + Cpanel bool + Dc string + HotSwap bool + IP []string + LinkedStoragebox interface{} + PaidUntil string + Plesk bool + Product string + Rescue bool + Reset bool + ServerIP string + ServerIpv6Net string + ServerName string + ServerNumber int + Status string + Subnet []struct{ ... } + Traffic string + Vnc bool + Windows bool + Wol bool + func SingleServerFromSchema(s schema.SingleServer) *SingleServer + type Subnet struct + Failover bool + Gateway string + IP string + Locked bool + Mask int + ServerIP string + ServerNumber int + TrafficDaily int + TrafficHourly int + TrafficMonthly int + TrafficWarnings bool + func SubnetFromSchema(s schema.Subnet) *Subnet + type SubnetCancellation struct + CancellationDate interface{} + Cancelled bool + EarliestCancellationDate string + IP string + Mask int + ServerNumber int + func SubnetCancellationFromSchema(s schema.SubnetCancellation) *SubnetCancellation + type SubnetClient struct + func (c *SubnetClient) DeleteCancellation(ctx context.Context, netip string) (*SubnetCancellation, *Response, error) + func (c *SubnetClient) DeleteMAC(ctx context.Context, netip string) (*SubnetMac, *Response, error) + func (c *SubnetClient) GenerateMac(ctx context.Context, netip string) (*SubnetMac, *Response, error) + func (c *SubnetClient) GetCancellation(ctx context.Context, netip string) (*SubnetCancellation, *Response, error) + func (c *SubnetClient) GetMac(ctx context.Context, netip string) (*SubnetMac, *Response, error) + func (c *SubnetClient) GetSubnetByIP(ctx context.Context, netip string) (*Subnet, *Response, error) + func (c *SubnetClient) List(ctx context.Context) ([]*Subnet, *Response, error) + func (c *SubnetClient) PostCancellation(ctx context.Context, netip string, cancellation_date string) (*SubnetCancellation, *Response, error) + func (c *SubnetClient) UpdateTraffic(ctx context.Context, netip string, opt *SubnetOps) (*Subnet, *Response, error) + type SubnetMac struct + IP string + Mac string + Mask int + PossibleMac interface{} + func SubnetMacFromSchema(s schema.SubnetMac) *SubnetMac + type SubnetOps struct + TrafficDaily string + TrafficHourly string + TrafficMonthly string + TrafficWarnings bool + type UpdateKeyOpts struct + Name string + type VNCOpts struct + Dist string + Lang string + type VSwitch struct + Cancelled bool + ID int + Name string + Vlan int + func VswitchFromSchema(s schema.VSwitch) *VSwitch + type VSwitchClient struct + func (c *VSwitchClient) AddToServer(ctx context.Context, id string, server interface{}) (*Response, error) + func (c *VSwitchClient) AddVSwitch(ctx context.Context, opt *AddvSwitchOps) (*VSwitchSingle, *Response, error) + func (c *VSwitchClient) CancelVSwitch(ctx context.Context, id string, cancellation_date string) (*Response, error) + func (c *VSwitchClient) GetVSwitchById(ctx context.Context, id string) (*VSwitchSingle, *Response, error) + func (c *VSwitchClient) GetVSwitchList(ctx context.Context) ([]*VSwitch, *Response, error) + func (c *VSwitchClient) RemoveServer(ctx context.Context, id string, server interface{}) (*Response, error) + func (c *VSwitchClient) UpdateVSwitchById(ctx context.Context, id string, opt *AddvSwitchOps) (*VSwitchSingle, *Response, error) + type VSwitchServer struct + ServerIP string + ServerIpv6Net string + ServerNumber int + Status string + type VSwitchSingle struct + Cancelled bool + CloudNetwork []interface{} + ID int + Name string + Server []interface{} + Subnet []interface{} + Vlan int + func VSwitchSingleFromSchema(s schema.VSwitchSingle) *VSwitchSingle + type WOL struct + ServerIP string + ServerIpv6Net string + ServerNumber int + func WOLFromSchema(s schema.WOL) *WOL + type WOLClient struct + func (c *WOLClient) GetByServernumber(ctx context.Context, servernumber string) (*WOL, *Response, error) + func (c *WOLClient) Send(ctx context.Context, servernumber string) (*WOL, *Response, error)