models

package
v0.0.0-...-6925780 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 6 Imported by: 0

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

func (m *Country) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this country based on context it is used

func (*Country) MarshalBinary

func (m *Country) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Country) UnmarshalBinary

func (m *Country) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Country) Validate

func (m *Country) Validate(formats strfmt.Registry) error

Validate validates this country

type DNS

type DNS string

DNS DNS

swagger:model DNS

func (DNS) ContextValidate

func (m DNS) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this DNS based on context it is used

func (DNS) Validate

func (m DNS) Validate(formats strfmt.Registry) error

Validate validates this DNS

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

func (m *Device) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this device based on the context it is used

func (*Device) MarshalBinary

func (m *Device) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Device) UnmarshalBinary

func (m *Device) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Device) Validate

func (m *Device) Validate(formats strfmt.Registry) error

Validate validates this device

type DeviceBindings

type DeviceBindings []string

DeviceBindings device bindings

swagger:model DeviceBindings

func (DeviceBindings) ContextValidate

func (m DeviceBindings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this device bindings based on context it is used

func (DeviceBindings) Validate

func (m DeviceBindings) Validate(formats strfmt.Registry) error

Validate validates this device bindings

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

func (m *DeviceFullDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*DeviceFullDetails) Validate

func (m *DeviceFullDetails) Validate(formats strfmt.Registry) error

Validate validates this device full details

type DevicePeer

type DevicePeer struct {

	// wireguard
	Wireguard *WireGuardPeer `json:"wireguard,omitempty"`
}

DevicePeer device peer

swagger:model DevicePeer

func (*DevicePeer) ContextValidate

func (m *DevicePeer) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*DevicePeer) Validate

func (m *DevicePeer) Validate(formats strfmt.Registry) error

Validate validates this device peer

type DevicePeers

type DevicePeers []*DevicePeer

DevicePeers device peers

swagger:model DevicePeers

func (DevicePeers) ContextValidate

func (m DevicePeers) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this device peers based on the context it is used

func (DevicePeers) Validate

func (m DevicePeers) Validate(formats strfmt.Registry) error

Validate validates this device peers

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

func (m *DeviceShortDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*DeviceShortDetails) Validate

func (m *DeviceShortDetails) Validate(formats strfmt.Registry) error

Validate validates this device short details

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

func (m *DeviceStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*DeviceStats) Validate

func (m *DeviceStats) Validate(formats strfmt.Registry) error

Validate validates this device stats

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

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type IP

type IP string

IP IP

swagger:model IP

func (IP) ContextValidate

func (m IP) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this IP based on context it is used

func (IP) Validate

func (m IP) Validate(formats strfmt.Registry) error

Validate validates this IP

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

func (m *Location) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this location based on the context it is used

func (*Location) MarshalBinary

func (m *Location) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Location) UnmarshalBinary

func (m *Location) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Location) Validate

func (m *Location) Validate(formats strfmt.Registry) error

Validate validates this location

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

func (m *Port) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this port based on context it is used

func (*Port) MarshalBinary

func (m *Port) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Port) UnmarshalBinary

func (m *Port) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Port) Validate

func (m *Port) Validate(formats strfmt.Registry) error

Validate validates this port

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

func (m *WireGuard) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this wire guard based on the context it is used

func (*WireGuard) MarshalBinary

func (m *WireGuard) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WireGuard) UnmarshalBinary

func (m *WireGuard) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WireGuard) Validate

func (m *WireGuard) Validate(formats strfmt.Registry) error

Validate validates this wire guard

type WireGuardKey

type WireGuardKey string

WireGuardKey wire guard key

swagger:model WireGuardKey

func (WireGuardKey) ContextValidate

func (m WireGuardKey) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this wire guard key based on context it is used

func (WireGuardKey) Validate

func (m WireGuardKey) Validate(formats strfmt.Registry) error

Validate validates this wire guard key

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

func (m *WireGuardPeer) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*WireGuardPeer) Validate

func (m *WireGuardPeer) Validate(formats strfmt.Registry) error

Validate validates this wire guard peer

Jump to

Keyboard shortcuts

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