Documentation ¶
Index ¶
- type AmneziaOVCConfig
- type ConfigType
- type CreateConfigRequest
- type Error
- type OutlineConfig
- type Principal
- type ServiceTemporarilyUnavailable
- func (m *ServiceTemporarilyUnavailable) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ServiceTemporarilyUnavailable) MarshalBinary() ([]byte, error)
- func (m *ServiceTemporarilyUnavailable) UnmarshalBinary(b []byte) error
- func (m *ServiceTemporarilyUnavailable) Validate(formats strfmt.Registry) error
- type VPNConfig
- type VPNGenConfig
- type WireGuardConfig
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 ¶
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
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 ¶
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.
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
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
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 ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type OutlineConfig ¶
type OutlineConfig struct { // access key // Required: true AccessKey *string `json:"access_key"` }
OutlineConfig outline config
swagger:model OutlineConfig
func (*OutlineConfig) ContextValidate ¶
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
type Principal ¶
type Principal struct { // scope // Required: true Scope []string `json:"scope"` }
Principal principal
swagger:model Principal
func (*Principal) ContextValidate ¶
ContextValidate validates this principal based on context it is used
func (*Principal) MarshalBinary ¶
MarshalBinary interface implementation
func (*Principal) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ServiceTemporarilyUnavailable ¶
type ServiceTemporarilyUnavailable struct { // Required: true Message *string `json:"message"` // 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
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 ¶
ContextValidate validate this v p n config based on the context it is used
func (*VPNConfig) MarshalBinary ¶
MarshalBinary interface implementation
func (*VPNConfig) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
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 ¶
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