Documentation
¶
Index ¶
- type AcitivityData
- type AmneziaOVCConfig
- type BrigadeActivity
- type BrigadeSlots
- type ConfigType
- type CreateConfigRequest
- type Error
- type FreeSlots
- type OutlineConfig
- type Principal
- type Proto0Config
- 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 VPNConfigResponse
- func (m *VPNConfigResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *VPNConfigResponse) MarshalBinary() ([]byte, error)
- func (m VPNConfigResponse) MarshalJSON() ([]byte, error)
- func (m *VPNConfigResponse) UnmarshalBinary(b []byte) error
- func (m *VPNConfigResponse) UnmarshalJSON(raw []byte) error
- func (m *VPNConfigResponse) Validate(formats strfmt.Registry) error
- type VPNGenConfig
- type WireGuardConfig
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"`
// monthly traffic
// Required: true
MonthlyTraffic *int64 `json:"monthly_traffic"`
// prev day traffic
// Required: true
PrevDayTraffic *int64 `json:"prev_day_traffic"`
// total traffic
// Required: true
TotalTraffic *int64 `json:"total_traffic"`
// 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
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
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 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
ContextValidate validate this brigade activity based on the context it is used
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
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
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" // ConfigTypeProto0 captures enum value "proto0" ConfigTypeProto0 ConfigType = "proto0" )
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 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
ContextValidate validates this free slots based on context it is used
func (*FreeSlots) MarshalBinary ¶ added in v1.9.15
MarshalBinary interface implementation
func (*FreeSlots) UnmarshalBinary ¶ added in v1.9.15
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 Proto0Config ¶ added in v1.11.6
type Proto0Config struct {
// access key
// Required: true
AccessKey *string `json:"access_key"`
}
Proto0Config proto0 config
swagger:model Proto0Config
func (*Proto0Config) ContextValidate ¶ added in v1.11.6
ContextValidate validates this proto0 config based on context it is used
func (*Proto0Config) MarshalBinary ¶ added in v1.11.6
func (m *Proto0Config) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Proto0Config) UnmarshalBinary ¶ added in v1.11.6
func (m *Proto0Config) UnmarshalBinary(b []byte) error
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"`
// proto0 config
Proto0Config *Proto0Config `json:"Proto0Config,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 ¶
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 VPNConfigResponse ¶ added in v1.9.15
VPNConfigResponse v p n config response
swagger:model VPNConfigResponse
func (*VPNConfigResponse) ContextValidate ¶ added in v1.9.15
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
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