models

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcitivityData added in v1.9.11

type AcitivityData struct {

	// last seen
	// Required: true
	// Format: date-time
	LastSeen *strfmt.DateTime `json:"last_seen"`

	// updated
	// Required: true
	// Format: date-time
	Updated *strfmt.DateTime `json:"updated"`
}

AcitivityData acitivity data

swagger:model AcitivityData

func (*AcitivityData) ContextValidate added in v1.9.11

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

ContextValidate validates this acitivity data based on context it is used

func (*AcitivityData) MarshalBinary added in v1.9.11

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

MarshalBinary interface implementation

func (*AcitivityData) UnmarshalBinary added in v1.9.11

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

UnmarshalBinary interface implementation

func (*AcitivityData) Validate added in v1.9.11

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

Validate validates this acitivity data

type AmneziaOVCConfig

type AmneziaOVCConfig struct {

	// file content
	// Required: true
	FileContent *string `json:"file_content"`

	// file name
	// Required: true
	FileName *string `json:"file_name"`

	// tunnel name
	// Required: true
	TunnelName *string `json:"tunnel_name"`
}

AmneziaOVCConfig amnezia o v c config

swagger:model AmneziaOVCConfig

func (*AmneziaOVCConfig) ContextValidate

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

ContextValidate validates this amnezia o v c config based on context it is used

func (*AmneziaOVCConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*AmneziaOVCConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AmneziaOVCConfig) Validate

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

Validate validates this amnezia o v c config

type BrigadeActivity added in v1.9.11

type BrigadeActivity map[string]AcitivityData

BrigadeActivity brigade activity

swagger:model BrigadeActivity

func (BrigadeActivity) ContextValidate added in v1.9.11

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

ContextValidate validate this brigade activity based on the context it is used

func (BrigadeActivity) Validate added in v1.9.11

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

Validate validates this brigade activity

type BrigadeSlots added in v1.9.11

type BrigadeSlots struct {

	// free slots
	// Required: true
	FreeSlots *int64 `json:"free_slots"`

	// total slots
	// Required: true
	TotalSlots *int64 `json:"total_slots"`
}

BrigadeSlots brigade slots

swagger:model BrigadeSlots

func (*BrigadeSlots) ContextValidate added in v1.9.11

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

ContextValidate validates this brigade slots based on context it is used

func (*BrigadeSlots) MarshalBinary added in v1.9.11

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

MarshalBinary interface implementation

func (*BrigadeSlots) UnmarshalBinary added in v1.9.11

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

UnmarshalBinary interface implementation

func (*BrigadeSlots) Validate added in v1.9.11

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

Validate validates this brigade slots

type ConfigType

type ConfigType string

ConfigType VPN config type

swagger:model ConfigType

const (

	// ConfigTypeWireguard captures enum value "wireguard"
	ConfigTypeWireguard ConfigType = "wireguard"

	// ConfigTypeOutline captures enum value "outline"
	ConfigTypeOutline ConfigType = "outline"

	// ConfigTypeUniversal captures enum value "universal"
	ConfigTypeUniversal ConfigType = "universal"
)

func NewConfigType

func NewConfigType(value ConfigType) *ConfigType

func (ConfigType) ContextValidate

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

ContextValidate validates this config type based on context it is used

func (ConfigType) Pointer

func (m ConfigType) Pointer() *ConfigType

Pointer returns a pointer to a freshly-allocated ConfigType.

func (ConfigType) Validate

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

Validate validates this config type

type CreateConfigRequest added in v1.9.2

type CreateConfigRequest struct {

	// Brigade ID
	// Required: true
	// Format: uuid
	BrigadeID *strfmt.UUID `json:"brigade_id"`

	// config type
	// Required: true
	ConfigType *ConfigType `json:"config_type"`
}

CreateConfigRequest create config request

swagger:model CreateConfigRequest

func (*CreateConfigRequest) ContextValidate added in v1.9.2

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

ContextValidate validate this create config request based on the context it is used

func (*CreateConfigRequest) MarshalBinary added in v1.9.2

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

MarshalBinary interface implementation

func (*CreateConfigRequest) UnmarshalBinary added in v1.9.2

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

UnmarshalBinary interface implementation

func (*CreateConfigRequest) Validate added in v1.9.2

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

Validate validates this create config request

type Error

type Error struct {

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

	// Error 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 FreeSlots added in v1.9.15

type FreeSlots struct {

	// free slots
	// Required: true
	FreeSlots *int64 `json:"free_slots"`
}

FreeSlots free slots

swagger:model FreeSlots

func (*FreeSlots) ContextValidate added in v1.9.15

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

ContextValidate validates this free slots based on context it is used

func (*FreeSlots) MarshalBinary added in v1.9.15

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

MarshalBinary interface implementation

func (*FreeSlots) UnmarshalBinary added in v1.9.15

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

UnmarshalBinary interface implementation

func (*FreeSlots) Validate added in v1.9.15

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

Validate validates this free slots

type OutlineConfig

type OutlineConfig struct {

	// access key
	// Required: true
	AccessKey *string `json:"access_key"`
}

OutlineConfig outline config

swagger:model OutlineConfig

func (*OutlineConfig) ContextValidate

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

ContextValidate validates this outline config based on context it is used

func (*OutlineConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*OutlineConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OutlineConfig) Validate

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

Validate validates this outline config

type Principal

type Principal struct {

	// scope
	// Required: true
	Scope []string `json:"scope"`
}

Principal principal

swagger:model Principal

func (*Principal) ContextValidate

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

ContextValidate validates this principal based on context it is used

func (*Principal) MarshalBinary

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

MarshalBinary interface implementation

func (*Principal) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Principal) Validate

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

Validate validates this principal

type ServiceTemporarilyUnavailable

type ServiceTemporarilyUnavailable struct {

	// message
	// Required: true
	Message *string `json:"message"`

	// retry after
	// Required: true
	// Format: date-time
	RetryAfter *strfmt.DateTime `json:"retry_after"`
}

ServiceTemporarilyUnavailable service temporarily unavailable

swagger:model ServiceTemporarilyUnavailable

func (*ServiceTemporarilyUnavailable) ContextValidate

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

ContextValidate validates this service temporarily unavailable based on context it is used

func (*ServiceTemporarilyUnavailable) MarshalBinary

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

MarshalBinary interface implementation

func (*ServiceTemporarilyUnavailable) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ServiceTemporarilyUnavailable) Validate

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

Validate validates this service temporarily unavailable

type VPNConfig

type VPNConfig struct {

	// amnezia o v c config
	AmneziaOVCConfig *AmneziaOVCConfig `json:"AmneziaOVCConfig,omitempty"`

	// outline config
	OutlineConfig *OutlineConfig `json:"OutlineConfig,omitempty"`

	// v p n gen config
	VPNGenConfig *VPNGenConfig `json:"VPNGenConfig,omitempty"`

	// wire guard config
	WireGuardConfig *WireGuardConfig `json:"WireGuardConfig,omitempty"`

	// domain
	// Required: true
	Domain *string `json:"domain"`

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

	// user id
	// Required: true
	// Format: uuid4
	UserID *strfmt.UUID4 `json:"user_id"`
}

VPNConfig v p n config

swagger:model VPNConfig

func (*VPNConfig) ContextValidate

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

ContextValidate validate this v p n config based on the context it is used

func (*VPNConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*VPNConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*VPNConfig) Validate

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

Validate validates this v p n config

type VPNConfigResponse added in v1.9.15

type VPNConfigResponse struct {
	VPNConfig

	FreeSlots
}

VPNConfigResponse v p n config response

swagger:model VPNConfigResponse

func (*VPNConfigResponse) ContextValidate added in v1.9.15

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

ContextValidate validate this v p n config response based on the context it is used

func (*VPNConfigResponse) MarshalBinary added in v1.9.15

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

MarshalBinary interface implementation

func (VPNConfigResponse) MarshalJSON added in v1.9.15

func (m VPNConfigResponse) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*VPNConfigResponse) UnmarshalBinary added in v1.9.15

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

UnmarshalBinary interface implementation

func (*VPNConfigResponse) UnmarshalJSON added in v1.9.15

func (m *VPNConfigResponse) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*VPNConfigResponse) Validate added in v1.9.15

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

Validate validates this v p n config response

type VPNGenConfig

type VPNGenConfig struct {

	// access key
	// Required: true
	AccessKey *string `json:"access_key"`
}

VPNGenConfig v p n gen config

swagger:model VPNGenConfig

func (*VPNGenConfig) ContextValidate

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

ContextValidate validates this v p n gen config based on context it is used

func (*VPNGenConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*VPNGenConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*VPNGenConfig) Validate

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

Validate validates this v p n gen config

type WireGuardConfig

type WireGuardConfig struct {

	// file content
	// Required: true
	FileContent *string `json:"file_content"`

	// file name
	// Required: true
	FileName *string `json:"file_name"`

	// tunnel name
	// Required: true
	TunnelName *string `json:"tunnel_name"`
}

WireGuardConfig wire guard config

swagger:model WireGuardConfig

func (*WireGuardConfig) ContextValidate

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

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

func (*WireGuardConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*WireGuardConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*WireGuardConfig) Validate

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

Validate validates this wire guard config

Jump to

Keyboard shortcuts

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