Documentation
¶
Index ¶
- Constants
- type AmneziaOVCConfig
- type Brigade
- type ConfigType
- type CreateBirgadeRequest
- type CreateUserRequest
- type Error
- type OrderStatus
- 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 ¶
const ( // OrderStatusStatusProcessing captures enum value "processing" OrderStatusStatusProcessing string = "processing" // OrderStatusStatusCompleted captures enum value "completed" OrderStatusStatusCompleted string = "completed" // OrderStatusStatusFailed captures enum value "failed" OrderStatusStatusFailed string = "failed" )
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 Brigade ¶
type Brigade struct { // Brigade ID // Required: true // Format: uuid BrigadeID *strfmt.UUID `json:"brigadeID"` // Brigade name // Required: true BrigadeName *string `json:"brigadeName"` // Deleted // Required: true Deleted *bool `json:"deleted"` // Max users // Required: true MaxUsers *int64 `json:"maxUsers"` }
Brigade brigade
swagger:model Brigade
func (*Brigade) ContextValidate ¶
ContextValidate validates this brigade based on context it is used
func (*Brigade) MarshalBinary ¶
MarshalBinary interface implementation
func (*Brigade) UnmarshalBinary ¶
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 CreateBirgadeRequest ¶
type CreateBirgadeRequest struct { // Brigade ID // Required: true // Format: uuid BrigadeID *strfmt.UUID `json:"brigadeID"` // Brigade name // Required: true BrigadeName *string `json:"brigadeName"` }
CreateBirgadeRequest create birgade request
swagger:model CreateBirgadeRequest
func (*CreateBirgadeRequest) ContextValidate ¶
ContextValidate validates this create birgade request based on context it is used
func (*CreateBirgadeRequest) MarshalBinary ¶
func (m *CreateBirgadeRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateBirgadeRequest) UnmarshalBinary ¶
func (m *CreateBirgadeRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateUserRequest ¶
type CreateUserRequest struct { // Brigade ID // Required: true // Format: uuid BrigadeID *strfmt.UUID `json:"brigadeID"` // config type // Required: true ConfigType *ConfigType `json:"configType"` }
CreateUserRequest create user request
swagger:model CreateUserRequest
func (*CreateUserRequest) ContextValidate ¶
ContextValidate validate this create user request based on the context it is used
func (*CreateUserRequest) MarshalBinary ¶
func (m *CreateUserRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateUserRequest) UnmarshalBinary ¶
func (m *CreateUserRequest) 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 OrderStatus ¶
type OrderStatus struct { // Brigade ID // Format: uuid BrigadeID strfmt.UUID `json:"brigadeID,omitempty"` // Message // Required: true Message *string `json:"message"` // Retry after seconds RetryAfter int64 `json:"retryAfter,omitempty"` // Order status // Required: true // Enum: ["processing","completed","failed"] Status *string `json:"status"` }
OrderStatus order status
swagger:model OrderStatus
func (*OrderStatus) ContextValidate ¶
ContextValidate validates this order status based on context it is used
func (*OrderStatus) MarshalBinary ¶
func (m *OrderStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OrderStatus) UnmarshalBinary ¶
func (m *OrderStatus) UnmarshalBinary(b []byte) error
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 { int64 `json:"code,omitempty"` Message string `json:"message,omitempty"` }Code
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"` // 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