models

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 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 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 ConfigType

type ConfigType string

ConfigType VPN config type

swagger:model ConfigType

const (

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

	// ConfigTypeAmneziavpn captures enum value "amneziavpn"
	ConfigTypeAmneziavpn ConfigType = "amneziavpn"

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

	// ConfigTypeVgc captures enum value "vgc"
	ConfigTypeVgc ConfigType = "vgc"
)

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 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"`

	// name
	Name string `json:"name,omitempty"`

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