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: 5 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 string `json:"code,omitempty"`

	// message
	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 WireGuardPeer

type WireGuardPeer struct {

	// i ps
	IPs []string `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 validates this wire guard peer based on 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

type WireGuardPeers

type WireGuardPeers []*WireGuardPeer

WireGuardPeers wire guard peers

swagger:model WireGuardPeers

func (WireGuardPeers) ContextValidate

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

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

func (WireGuardPeers) Validate

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

Validate validates this wire guard peers

Jump to

Keyboard shortcuts

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