Documentation
¶
Index ¶
- func Bool(b bool) *bool
- func Int(i int) *int
- func String(s string) *string
- type BootClient
- type Client
- type Config
- type Firewall
- type FirewallClient
- type FirewallRequest
- type FirewallRule
- type FirewallRules
- type Rescue
- type RescueRequest
- type Reset
- type ResetClient
- type ResetRequest
- type Server
- type ServerRequest
- type ServerSummary
- type ServersClient
- type StorageBox
- type StorageBoxClient
- type StorageBoxRequest
- type StorageBoxSummary
- type Subnet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BootClient ¶
type BootClient struct {
// contains filtered or unexported fields
}
func (*BootClient) Rescue ¶
func (b *BootClient) Rescue(req *RescueRequest) (*Rescue, error)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Boot ¶
func (c *Client) Boot() *BootClient
func (*Client) Firewall ¶
func (c *Client) Firewall() *FirewallClient
func (*Client) Reset ¶
func (c *Client) Reset() *ResetClient
func (*Client) Servers ¶
func (c *Client) Servers() *ServersClient
func (*Client) StorageBox ¶
func (c *Client) StorageBox() *StorageBoxClient
type Config ¶
func DefaultConfig ¶
func DefaultConfig() *Config
type FirewallClient ¶
type FirewallClient struct {
// contains filtered or unexported fields
}
func (*FirewallClient) Update ¶
func (f *FirewallClient) Update(req *FirewallRequest) (*Firewall, error)
type FirewallRequest ¶
type FirewallRequest struct {
ServerIP string `form:"-"`
Status *string `form:"status"`
WhitelistHOS *bool `form:"whitelist_hos"`
TemplateID *string `form:"template_id"`
Rules FirewallRules `form:"rules"`
}
type FirewallRule ¶
type FirewallRule struct {
IPVersion string `json:"ip_version" form:"ip_version"`
Name string `json:"name" form:"name"`
DstIP *string `json:"dst_ip" form:"dst_ip"`
SrcIP *string `json:"src_ip" form:"src_ip"`
DstPort *string `json:"dst_port" form:"dst_port"`
SrcPort *string `json:"src_port" form:"src_port"`
Protocol *string `json:"protocol" form:"protocol"`
TcpFlags *string `json:"tcp_flags" form:"tcp_flags"`
Action string `json:"action" form:"action"`
}
type FirewallRules ¶
type FirewallRules struct {
Input []*FirewallRule `json:"input" form:"input"`
}
type RescueRequest ¶
type ResetClient ¶
type ResetClient struct {
// contains filtered or unexported fields
}
func (*ResetClient) Reset ¶
func (b *ResetClient) Reset(req *ResetRequest) (*Reset, error)
type ResetRequest ¶
type Server ¶
type Server struct {
ServerIP string `json:"server_ip"`
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 []Subnet `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 *int `json:"linked_storagebox"`
}
type ServerRequest ¶
type ServerSummary ¶
type ServerSummary struct {
ServerIP string `json:"server_ip"`
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 []Subnet `json:"subnet"`
LinkedStoragebox *int `json:"linked_storagebox"`
}
type ServersClient ¶
type ServersClient struct {
// contains filtered or unexported fields
}
func (*ServersClient) List ¶
func (s *ServersClient) List() ([]*ServerSummary, error)
func (*ServersClient) Update ¶
func (s *ServersClient) Update(req *ServerRequest) (*Server, error)
type StorageBox ¶
type StorageBox struct {
ID int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
Product string `json:"product"`
Cancelled bool `json:"cancelled"`
Locked bool `json:"locked"`
Location string `json:"location"`
LinkedServer int `json:"linked_server"`
PaidUntil string `json:"paid_until"`
DiskQuota int `json:"disk_quota"`
DiskUsage int `json:"disk_usage"`
DiskUsageData int `json:"disk_usage_data"`
DiskUsageSnapshots int `json:"disk_usage_snapshots"`
Webdav bool `json:"webdav"`
Samba bool `json:"samba"`
SSH bool `json:"ssh"`
ExternalReachability bool `json:"external_reachability"`
ZFS bool `json:"zfs"`
Server string `json:"server"`
HostSystem string `json:"host_system"`
}
type StorageBoxClient ¶
type StorageBoxClient struct {
// contains filtered or unexported fields
}
func (*StorageBoxClient) Info ¶
func (s *StorageBoxClient) Info(id int) (*StorageBox, error)
func (*StorageBoxClient) List ¶
func (s *StorageBoxClient) List() ([]*StorageBoxSummary, error)
func (*StorageBoxClient) Update ¶
func (s *StorageBoxClient) Update(req *StorageBoxRequest) (*StorageBoxSummary, error)
type StorageBoxRequest ¶
type StorageBoxRequest struct {
ID int `form:"-"`
StorageBoxName *string `form:"storagebox_name,omitempty"`
Samba *bool `form:"samba,omitempty"`
Webdav *bool `form:"webdav,omitempty"`
SSH *bool `form:"ssh,omitempty"`
ExternalReachability *bool `form:"external_reachability,omitempty"`
ZFS *bool `form:"zfs,omitempty"`
}
type StorageBoxSummary ¶
type StorageBoxSummary struct {
ID int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
Product string `json:"product"`
Cancelled bool `json:"cancelled"`
Locked bool `json:"locked"`
Location string `json:"location"`
LinkedServer int `json:"linked_server"`
PaidUntil string `json:"paid_until"`
}
Click to show internal directories.
Click to hide internal directories.