Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	// code
	Code int64 `json:"code,omitempty"`

	// detail
	Detail string `json:"detail,omitempty"`
}

Error error swagger:model Error

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 WireguardDevice

type WireguardDevice struct {

	// listen port
	// Required: true
	ListenPort *int64 `json:"listen_port"`

	// name
	// Required: true
	Name *string `json:"name"`

	// network
	// Required: true
	Network *string `json:"network"`

	// private key
	// Required: true
	// Min Length: 32
	PrivateKey *string `json:"private_key"`

	// public key
	// Read Only: true
	// Min Length: 32
	PublicKey string `json:"public_key,omitempty"`
}

WireguardDevice wireguard device swagger:model WireguardDevice

func (*WireguardDevice) MarshalBinary

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

MarshalBinary interface implementation

func (*WireguardDevice) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*WireguardDevice) Validate

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

Validate validates this wireguard device

type WireguardPeer

type WireguardPeer struct {

	// allowed ips
	AllowedIps []string `json:"allowed_ips"`

	// peer id
	// Read Only: true
	PeerID string `json:"peer_id,omitempty"`

	// preshared key
	// Min Length: 32
	PresharedKey string `json:"preshared_key,omitempty"`

	// private key
	// Min Length: 32
	PrivateKey string `json:"private_key,omitempty"`

	// public key
	// Required: true
	// Min Length: 32
	PublicKey *string `json:"public_key"`
}

WireguardPeer wireguard peer swagger:model WireguardPeer

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 wireguard peer

Jump to

Keyboard shortcuts

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