Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Country ¶
type Country struct {
// emoji
Emoji string `json:"emoji,omitempty"`
// id
ID string `json:"id,omitempty"`
// name
Name string `json:"name,omitempty"`
}
Country country
swagger:model Country
func (*Country) ContextValidate ¶
ContextValidate validates this country based on context it is used
func (*Country) MarshalBinary ¶
MarshalBinary interface implementation
func (*Country) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type DNS ¶
type DNS string
DNS DNS
swagger:model DNS
func (DNS) ContextValidate ¶
ContextValidate validates this DNS based on context it is used
type Device ¶
type Device struct {
// i ps
IPs []IP `json:"ips"`
// dns
DNS []DNS `json:"dns"`
// external key
ExternalKey string `json:"external_key,omitempty"`
// id
// Format: uuid
ID strfmt.UUID `json:"id,omitempty"`
// last active at
// Format: date-time
LastActiveAt strfmt.DateTime `json:"last_active_at,omitempty"`
// locations
Locations []*Location `json:"locations"`
// name
Name string `json:"name,omitempty"`
// ports
Ports []Port `json:"ports"`
// stats
Stats *DeviceStats `json:"stats,omitempty"`
// wireguard
Wireguard *WireGuard `json:"wireguard,omitempty"`
}
Device device
swagger:model Device
func (*Device) ContextValidate ¶
ContextValidate validate this device based on the context it is used
func (*Device) MarshalBinary ¶
MarshalBinary interface implementation
func (*Device) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type DeviceBindings ¶
type DeviceBindings []string
DeviceBindings device bindings
swagger:model DeviceBindings
func (DeviceBindings) ContextValidate ¶
ContextValidate validates this device bindings based on context it is used
type DeviceFullDetails ¶
type DeviceFullDetails struct {
// i ps
IPs []IP `json:"ips"`
// dns
DNS []DNS `json:"dns"`
// external key
ExternalKey string `json:"external_key,omitempty"`
// id
// Format: uuid
ID strfmt.UUID `json:"id,omitempty"`
// last active at
// Format: date-time
LastActiveAt strfmt.DateTime `json:"last_active_at,omitempty"`
// locations
Locations []*Location `json:"locations"`
// name
Name string `json:"name,omitempty"`
// ports
Ports []*Port `json:"ports"`
// stats
Stats *DeviceStats `json:"stats,omitempty"`
// wireguard
Wireguard *WireGuard `json:"wireguard,omitempty"`
}
DeviceFullDetails device full details
swagger:model DeviceFullDetails
func (*DeviceFullDetails) ContextValidate ¶
ContextValidate validate this device full details based on the context it is used
func (*DeviceFullDetails) MarshalBinary ¶
func (m *DeviceFullDetails) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeviceFullDetails) UnmarshalBinary ¶
func (m *DeviceFullDetails) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DevicePeer ¶
type DevicePeer struct {
// wireguard
Wireguard *WireGuardPeer `json:"wireguard,omitempty"`
}
DevicePeer device peer
swagger:model DevicePeer
func (*DevicePeer) ContextValidate ¶
ContextValidate validate this device peer based on the context it is used
func (*DevicePeer) MarshalBinary ¶
func (m *DevicePeer) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DevicePeer) UnmarshalBinary ¶
func (m *DevicePeer) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DevicePeers ¶
type DevicePeers []*DevicePeer
DevicePeers device peers
swagger:model DevicePeers
func (DevicePeers) ContextValidate ¶
ContextValidate validate this device peers based on the context it is used
type DeviceShortDetails ¶
type DeviceShortDetails struct {
// external key
ExternalKey string `json:"external_key,omitempty"`
// id
// Format: uuid
ID strfmt.UUID `json:"id,omitempty"`
// last active at
// Format: date-time
LastActiveAt strfmt.DateTime `json:"last_active_at,omitempty"`
// locations
Locations []*Location `json:"locations"`
// name
Name string `json:"name,omitempty"`
}
DeviceShortDetails device short details
swagger:model DeviceShortDetails
func (*DeviceShortDetails) ContextValidate ¶
ContextValidate validate this device short details based on the context it is used
func (*DeviceShortDetails) MarshalBinary ¶
func (m *DeviceShortDetails) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeviceShortDetails) UnmarshalBinary ¶
func (m *DeviceShortDetails) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeviceStats ¶
type DeviceStats struct {
// connections
Connections float64 `json:"connections,omitempty"`
// received bytes
ReceivedBytes float64 `json:"received_bytes,omitempty"`
// transmitted bytes
TransmittedBytes float64 `json:"transmitted_bytes,omitempty"`
}
DeviceStats device stats
swagger:model DeviceStats
func (*DeviceStats) ContextValidate ¶
ContextValidate validates this device stats based on context it is used
func (*DeviceStats) MarshalBinary ¶
func (m *DeviceStats) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeviceStats) UnmarshalBinary ¶
func (m *DeviceStats) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Error ¶
type Error struct {
// code
// Example: internal_server_error
Code string `json:"code,omitempty"`
// message
// Example: something went wrong
Message string `json:"message,omitempty"`
}
Error error
swagger:model Error
func (*Error) ContextValidate ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type IP ¶
type IP string
IP IP
swagger:model IP
func (IP) ContextValidate ¶
ContextValidate validates this IP based on context it is used
type Location ¶
type Location struct {
// country
Country *Country `json:"country,omitempty"`
// id
ID string `json:"id,omitempty"`
// latitude
Latitude float64 `json:"latitude,omitempty"`
// longitude
Longitude float64 `json:"longitude,omitempty"`
// name
Name string `json:"name,omitempty"`
}
Location location
swagger:model Location
func (*Location) ContextValidate ¶
ContextValidate validate this location based on the context it is used
func (*Location) MarshalBinary ¶
MarshalBinary interface implementation
func (*Location) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Port ¶
type Port struct {
// dst
Dst int64 `json:"dst,omitempty"`
// src
Src int64 `json:"src,omitempty"`
}
Port port
swagger:model Port
func (*Port) ContextValidate ¶
ContextValidate validates this port based on context it is used
func (*Port) MarshalBinary ¶
MarshalBinary interface implementation
func (*Port) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type WireGuard ¶
type WireGuard struct {
// peers
Peers []*WireGuardPeer `json:"peers"`
// priv key
PrivKey WireGuardKey `json:"priv_key,omitempty"`
// pub key
PubKey WireGuardKey `json:"pub_key,omitempty"`
}
WireGuard wire guard
swagger:model WireGuard
func (*WireGuard) ContextValidate ¶
ContextValidate validate this wire guard based on the context it is used
func (*WireGuard) MarshalBinary ¶
MarshalBinary interface implementation
func (*WireGuard) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type WireGuardKey ¶
type WireGuardKey string
WireGuardKey wire guard key
swagger:model WireGuardKey
func (WireGuardKey) ContextValidate ¶
ContextValidate validates this wire guard key based on context it is used
type WireGuardPeer ¶
type WireGuardPeer struct {
// i ps
IPs []IP `json:"ips"`
// endpoint
Endpoint string `json:"endpoint,omitempty"`
// ps key
PsKey string `json:"ps_key,omitempty"`
// pub key
PubKey string `json:"pub_key,omitempty"`
}
WireGuardPeer wire guard peer
swagger:model WireGuardPeer
func (*WireGuardPeer) ContextValidate ¶
ContextValidate validate this wire guard peer based on the context it is used
func (*WireGuardPeer) MarshalBinary ¶
func (m *WireGuardPeer) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*WireGuardPeer) UnmarshalBinary ¶
func (m *WireGuardPeer) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation