schema

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auto

type Auto struct {
	Reset struct {
		ServerIP        string   `json:"server_ip"`
		ServerIpv6Net   string   `json:"server_ipv6_net"`
		ServerNumber    int      `json:"server_number"`
		Type            []string `json:"type"`
		OperatingStatus string   `json:"operating_status"`
	} `json:"reset"`
}

type BootList

type BootList struct {
	Boot struct {
		Rescue  Rescue      `json:"rescue"`
		Linux   Linux       `json:"linux"`
		Vnc     Vnc         `json:"vnc"`
		Windows interface{} `json:"windows"`
		Plesk   interface{} `json:"plesk"`
		Cpanel  interface{} `json:"cpanel"`
	} `json:"boot"`
}

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 Error

type Error struct {
	Error struct {
		Status  int    `json:"status"`
		Code    string `json:"code"`
		Message string `json:"message"`
	} `json:"error"`
}

type Failover

type Failover struct {
	Failover struct {
		IP             string `json:"ip"`
		Netmask        string `json:"netmask"`
		ServerIP       string `json:"server_ip"`
		ServerNumber   int    `json:"server_number"`
		ActiveServerIP string `json:"active_server_ip"`
	} `json:"failover"`
}

type FailoverList

type FailoverList []struct {
	Failover struct {
		IP             string `json:"ip"`
		Netmask        string `json:"netmask"`
		ServerIP       string `json:"server_ip"`
		ServerNumber   int    `json:"server_number"`
		ActiveServerIP string `json:"active_server_ip"`
	} `json:"failover"`
}

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 FirewallTemplate 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"`
	} `json:"firewall_template"`
}

type FirewallTemplateList

type FirewallTemplateList []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"`
	} `json:"firewall_template"`
}

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 IPCancellation struct {
	Cancellation struct {
		IP                       string      `json:"ip"`
		ServerNumber             int         `json:"server_number"`
		EarliestCancellationDate string      `json:"earliest_cancellation_date"`
		Cancelled                bool        `json:"cancelled"`
		CancellationDate         interface{} `json:"cancellation-date"`
	} `json:"cancellation"`
}

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 InvalidInputError struct {
	Error struct {
		Status  int      `json:"status"`
		Code    string   `json:"code"`
		Message string   `json:"message"`
		Missing []string `json:"missing"`
		Invalid []string `json:"invalid"`
	} `json:"error"`
}

type Key

type Key struct {
	Key struct {
		Name        string `json:"name"`
		Fingerprint string `json:"fingerprint"`
		Type        string `json:"type"`
		Size        int    `json:"size"`
		Data        string `json:"data"`
		Created     string `json:"created_at"`
	} `json:"key"`
}

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 LinuxList

type LinuxList struct {
	Linux `json:"linux"`
}

type MAC

type MAC struct {
	Mac struct {
		IP  string `json:"ip"`
		Mac string `json:"mac"`
	} `json:"mac"`
}

type RDNS

type RDNS struct {
	Rdns struct {
		IP  string `json:"ip"`
		Ptr string `json:"ptr"`
	} `json:"rdns"`
}

type RDNSList

type RDNSList []struct {
	Rdns struct {
		IP  string `json:"ip"`
		Ptr string `json:"ptr"`
	} `json:"rdns"`
}

type RequestLimitError

type RequestLimitError struct {
	Error struct {
		Status      int    `json:"status"`
		Code        string `json:"code"`
		Max_Request int    `json:"max_request"`
		Interval    int    `json:"interval"`
		Message     string `json:"message"`
	}
}

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 Reset

type Reset struct {
	Reset struct {
		ServerIP        string      `json:"server_ip"`
		ServerIpv6Net   string      `json:"server_ipv6_net"`
		ServerNumber    int         `json:"server_number"`
		Type            interface{} `json:"type"`
		OperatingStatus string      `json:"operating_status"`
	} `json:"reset"`
}

type ResetList

type ResetList []struct {
	Reset struct {
		ServerIP        string      `json:"server_ip"`
		ServerIpv6Net   string      `json:"server_ipv6_net"`
		ServerNumber    int         `json:"server_number"`
		Type            interface{} `json:"type"`
		OperatingStatus string      `json:"operating_status"`
	} `json:"reset"`
}

type SSHKeyGetResponse

type SSHKeyGetResponse struct {
	SSHKey SSHKeys `json:"ssh_key"`
}

defines the schema for a single key

type SSHKeys

type SSHKeys []struct {
	Key struct {
		Name        string `json:"name"`
		Fingerprint string `json:"fingerprint"`
		Type        string `json:"type"`
		Size        int    `json:"size"`
		Data        string `json:"data"`
		Created     string `json:"created_at"`
	} `json:"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 SubnetMac

type SubnetMac struct {
	Mac struct {
		IP          string `json:"ip"`
		Mask        int    `json:"mask"`
		Mac         string `json:"mac"`
		PossibleMac interface {
		} `json:"possible_mac"`
	} `json:"mac"`
}

type VSwitch

type VSwitch struct {
	ID        int    `json:"id"`
	Name      string `json:"name"`
	Vlan      int    `json:"vlan"`
	Cancelled bool   `json:"cancelled"`
}

type VSwitchList

type VSwitchList []struct {
	ID        int    `json:"id"`
	Name      string `json:"name"`
	Vlan      int    `json:"vlan"`
	Cancelled bool   `json:"cancelled"`
}

type VSwitchSingle

type VSwitchSingle struct {
	ID           int           `json:"id"`
	Name         string        `json:"name"`
	Vlan         int           `json:"vlan"`
	Cancelled    bool          `json:"cancelled"`
	Server       []interface{} `json:"server"`
	Subnet       []interface{} `json:"subnet"`
	CloudNetwork []interface{} `json:"cloud_network"`
}

type Vnc

type Vnc 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"`
}

type VncList

type VncList struct {
	Vnc `json:"vnc"`
}

type WOL

type WOL struct {
	Wol struct {
		ServerIP      string `json:"server_ip"`
		ServerIpv6Net string `json:"server_ipv6_net"`
		ServerNumber  int    `json:"server_number"`
	} `json:"wol"`
}

type Windows

type Windows struct {
	ServerIP      string   `json:"server_ip"`
	ServerIpv6Net string   `json:"server_ipv6_net"`
	ServerNumber  int      `json:"server_number"`
	Dist          []string `json:"dist"`
	Lang          []string `json:"lang"`
	Active        bool     `json:"active"`
	Password      string   `json:"password"`
}

type WindowsList

type WindowsList struct {
	Windows `json:"windows"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL