Documentation ¶
Index ¶
- Constants
- type CreateConfig
- type CreateConfigBadRequest
- type CreateConfigCreated
- type CreateConfigHandler
- type CreateConfigHandlerFunc
- type CreateConfigInternalServerError
- type CreateConfigParams
- type CreateConfigServiceUnavailable
- func (o *CreateConfigServiceUnavailable) SetPayload(payload *models.ServiceTemporarilyUnavailable)
- func (o *CreateConfigServiceUnavailable) WithPayload(payload *models.ServiceTemporarilyUnavailable) *CreateConfigServiceUnavailable
- func (o *CreateConfigServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateConfigURL
- func (o *CreateConfigURL) Build() (*url.URL, error)
- func (o *CreateConfigURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateConfigURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateConfigURL) SetBasePath(bp string)
- func (o *CreateConfigURL) String() string
- func (o *CreateConfigURL) StringFull(scheme, host string) string
- func (o *CreateConfigURL) WithBasePath(bp string) *CreateConfigURL
- type CreateConfigUnauthorized
- type DeleteConfig
- type DeleteConfigBadRequest
- type DeleteConfigBody
- type DeleteConfigHandler
- type DeleteConfigHandlerFunc
- type DeleteConfigInternalServerError
- type DeleteConfigNoContent
- type DeleteConfigParams
- type DeleteConfigServiceUnavailable
- func (o *DeleteConfigServiceUnavailable) SetPayload(payload *models.ServiceTemporarilyUnavailable)
- func (o *DeleteConfigServiceUnavailable) WithPayload(payload *models.ServiceTemporarilyUnavailable) *DeleteConfigServiceUnavailable
- func (o *DeleteConfigServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteConfigURL
- func (o *DeleteConfigURL) Build() (*url.URL, error)
- func (o *DeleteConfigURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteConfigURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteConfigURL) SetBasePath(bp string)
- func (o *DeleteConfigURL) String() string
- func (o *DeleteConfigURL) StringFull(scheme, host string) string
- func (o *DeleteConfigURL) WithBasePath(bp string) *DeleteConfigURL
- type DeleteConfigUnauthorized
- type GetBrigadeActivity
- type GetBrigadeActivityBadRequest
- type GetBrigadeActivityHandler
- type GetBrigadeActivityHandlerFunc
- type GetBrigadeActivityInternalServerError
- func (o *GetBrigadeActivityInternalServerError) SetPayload(payload *models.Error)
- func (o *GetBrigadeActivityInternalServerError) WithPayload(payload *models.Error) *GetBrigadeActivityInternalServerError
- func (o *GetBrigadeActivityInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetBrigadeActivityOK
- type GetBrigadeActivityParams
- type GetBrigadeActivityServiceUnavailable
- type GetBrigadeActivityURL
- func (o *GetBrigadeActivityURL) Build() (*url.URL, error)
- func (o *GetBrigadeActivityURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetBrigadeActivityURL) Must(u *url.URL, err error) *url.URL
- func (o *GetBrigadeActivityURL) SetBasePath(bp string)
- func (o *GetBrigadeActivityURL) String() string
- func (o *GetBrigadeActivityURL) StringFull(scheme, host string) string
- func (o *GetBrigadeActivityURL) WithBasePath(bp string) *GetBrigadeActivityURL
- type GetBrigadeActivityUnauthorized
- type GetBrigadeSlots
- type GetBrigadeSlotsBadRequest
- type GetBrigadeSlotsHandler
- type GetBrigadeSlotsHandlerFunc
- type GetBrigadeSlotsInternalServerError
- func (o *GetBrigadeSlotsInternalServerError) SetPayload(payload *models.Error)
- func (o *GetBrigadeSlotsInternalServerError) WithPayload(payload *models.Error) *GetBrigadeSlotsInternalServerError
- func (o *GetBrigadeSlotsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetBrigadeSlotsOK
- type GetBrigadeSlotsParams
- type GetBrigadeSlotsServiceUnavailable
- type GetBrigadeSlotsURL
- func (o *GetBrigadeSlotsURL) Build() (*url.URL, error)
- func (o *GetBrigadeSlotsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetBrigadeSlotsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetBrigadeSlotsURL) SetBasePath(bp string)
- func (o *GetBrigadeSlotsURL) String() string
- func (o *GetBrigadeSlotsURL) StringFull(scheme, host string) string
- func (o *GetBrigadeSlotsURL) WithBasePath(bp string) *GetBrigadeSlotsURL
- type GetBrigadeSlotsUnauthorized
- type VGSocketRealmAPI
- func (o *VGSocketRealmAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
- func (o *VGSocketRealmAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *VGSocketRealmAPI) Authorizer() runtime.Authorizer
- func (o *VGSocketRealmAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *VGSocketRealmAPI) Context() *middleware.Context
- func (o *VGSocketRealmAPI) DefaultConsumes() string
- func (o *VGSocketRealmAPI) DefaultProduces() string
- func (o *VGSocketRealmAPI) Formats() strfmt.Registry
- func (o *VGSocketRealmAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *VGSocketRealmAPI) Init()
- func (o *VGSocketRealmAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *VGSocketRealmAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *VGSocketRealmAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *VGSocketRealmAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *VGSocketRealmAPI) Serve(builder middleware.Builder) http.Handler
- func (o *VGSocketRealmAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *VGSocketRealmAPI) SetDefaultConsumes(mediaType string)
- func (o *VGSocketRealmAPI) SetDefaultProduces(mediaType string)
- func (o *VGSocketRealmAPI) SetSpec(spec *loads.Document)
- func (o *VGSocketRealmAPI) UseRedoc()
- func (o *VGSocketRealmAPI) UseSwaggerUI()
- func (o *VGSocketRealmAPI) Validate() error
Constants ¶
const CreateConfigBadRequestCode int = 400
CreateConfigBadRequestCode is the HTTP code returned for type CreateConfigBadRequest
const CreateConfigCreatedCode int = 201
CreateConfigCreatedCode is the HTTP code returned for type CreateConfigCreated
const CreateConfigInternalServerErrorCode int = 500
CreateConfigInternalServerErrorCode is the HTTP code returned for type CreateConfigInternalServerError
CreateConfigServiceUnavailableCode is the HTTP code returned for type CreateConfigServiceUnavailable
CreateConfigUnauthorizedCode is the HTTP code returned for type CreateConfigUnauthorized
const DeleteConfigBadRequestCode int = 400
DeleteConfigBadRequestCode is the HTTP code returned for type DeleteConfigBadRequest
const DeleteConfigInternalServerErrorCode int = 500
DeleteConfigInternalServerErrorCode is the HTTP code returned for type DeleteConfigInternalServerError
const DeleteConfigNoContentCode int = 204
DeleteConfigNoContentCode is the HTTP code returned for type DeleteConfigNoContent
DeleteConfigServiceUnavailableCode is the HTTP code returned for type DeleteConfigServiceUnavailable
DeleteConfigUnauthorizedCode is the HTTP code returned for type DeleteConfigUnauthorized
const GetBrigadeActivityBadRequestCode int = 400
GetBrigadeActivityBadRequestCode is the HTTP code returned for type GetBrigadeActivityBadRequest
const GetBrigadeActivityInternalServerErrorCode int = 500
GetBrigadeActivityInternalServerErrorCode is the HTTP code returned for type GetBrigadeActivityInternalServerError
const GetBrigadeActivityOKCode int = 200
GetBrigadeActivityOKCode is the HTTP code returned for type GetBrigadeActivityOK
GetBrigadeActivityServiceUnavailableCode is the HTTP code returned for type GetBrigadeActivityServiceUnavailable
GetBrigadeActivityUnauthorizedCode is the HTTP code returned for type GetBrigadeActivityUnauthorized
const GetBrigadeSlotsBadRequestCode int = 400
GetBrigadeSlotsBadRequestCode is the HTTP code returned for type GetBrigadeSlotsBadRequest
const GetBrigadeSlotsInternalServerErrorCode int = 500
GetBrigadeSlotsInternalServerErrorCode is the HTTP code returned for type GetBrigadeSlotsInternalServerError
const GetBrigadeSlotsOKCode int = 200
GetBrigadeSlotsOKCode is the HTTP code returned for type GetBrigadeSlotsOK
GetBrigadeSlotsServiceUnavailableCode is the HTTP code returned for type GetBrigadeSlotsServiceUnavailable
GetBrigadeSlotsUnauthorizedCode is the HTTP code returned for type GetBrigadeSlotsUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateConfig ¶ added in v1.9.2
type CreateConfig struct { Context *middleware.Context Handler CreateConfigHandler }
CreateConfig swagger:route POST /config createConfig
Create VPN config
func NewCreateConfig ¶ added in v1.9.2
func NewCreateConfig(ctx *middleware.Context, handler CreateConfigHandler) *CreateConfig
NewCreateConfig creates a new http.Handler for the create config operation
func (*CreateConfig) ServeHTTP ¶ added in v1.9.2
func (o *CreateConfig) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateConfigBadRequest ¶ added in v1.9.2
CreateConfigBadRequest Bad Request
swagger:response createConfigBadRequest
func NewCreateConfigBadRequest ¶ added in v1.9.2
func NewCreateConfigBadRequest() *CreateConfigBadRequest
NewCreateConfigBadRequest creates CreateConfigBadRequest with default headers values
func (*CreateConfigBadRequest) SetPayload ¶ added in v1.9.2
func (o *CreateConfigBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the create config bad request response
func (*CreateConfigBadRequest) WithPayload ¶ added in v1.9.2
func (o *CreateConfigBadRequest) WithPayload(payload *models.Error) *CreateConfigBadRequest
WithPayload adds the payload to the create config bad request response
func (*CreateConfigBadRequest) WriteResponse ¶ added in v1.9.2
func (o *CreateConfigBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateConfigCreated ¶ added in v1.9.2
type CreateConfigCreated struct { /* In: Body */ Payload *models.VPNConfig `json:"body,omitempty"` }
CreateConfigCreated Created
swagger:response createConfigCreated
func NewCreateConfigCreated ¶ added in v1.9.2
func NewCreateConfigCreated() *CreateConfigCreated
NewCreateConfigCreated creates CreateConfigCreated with default headers values
func (*CreateConfigCreated) SetPayload ¶ added in v1.9.2
func (o *CreateConfigCreated) SetPayload(payload *models.VPNConfig)
SetPayload sets the payload to the create config created response
func (*CreateConfigCreated) WithPayload ¶ added in v1.9.2
func (o *CreateConfigCreated) WithPayload(payload *models.VPNConfig) *CreateConfigCreated
WithPayload adds the payload to the create config created response
func (*CreateConfigCreated) WriteResponse ¶ added in v1.9.2
func (o *CreateConfigCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateConfigHandler ¶ added in v1.9.2
type CreateConfigHandler interface {
Handle(CreateConfigParams, *models.Principal) middleware.Responder
}
CreateConfigHandler interface for that can handle valid create config params
type CreateConfigHandlerFunc ¶ added in v1.9.2
type CreateConfigHandlerFunc func(CreateConfigParams, *models.Principal) middleware.Responder
CreateConfigHandlerFunc turns a function with the right signature into a create config handler
func (CreateConfigHandlerFunc) Handle ¶ added in v1.9.2
func (fn CreateConfigHandlerFunc) Handle(params CreateConfigParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type CreateConfigInternalServerError ¶ added in v1.9.2
type CreateConfigInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateConfigInternalServerError Internal Server Error
swagger:response createConfigInternalServerError
func NewCreateConfigInternalServerError ¶ added in v1.9.2
func NewCreateConfigInternalServerError() *CreateConfigInternalServerError
NewCreateConfigInternalServerError creates CreateConfigInternalServerError with default headers values
func (*CreateConfigInternalServerError) SetPayload ¶ added in v1.9.2
func (o *CreateConfigInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the create config internal server error response
func (*CreateConfigInternalServerError) WithPayload ¶ added in v1.9.2
func (o *CreateConfigInternalServerError) WithPayload(payload *models.Error) *CreateConfigInternalServerError
WithPayload adds the payload to the create config internal server error response
func (*CreateConfigInternalServerError) WriteResponse ¶ added in v1.9.2
func (o *CreateConfigInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateConfigParams ¶ added in v1.9.2
type CreateConfigParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Config data Required: true In: body */ Body *models.CreateConfigRequest }
CreateConfigParams contains all the bound params for the create config operation typically these are obtained from a http.Request
swagger:parameters createConfig
func NewCreateConfigParams ¶ added in v1.9.2
func NewCreateConfigParams() CreateConfigParams
NewCreateConfigParams creates a new CreateConfigParams object
There are no default values defined in the spec.
func (*CreateConfigParams) BindRequest ¶ added in v1.9.2
func (o *CreateConfigParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewCreateConfigParams() beforehand.
type CreateConfigServiceUnavailable ¶ added in v1.9.2
type CreateConfigServiceUnavailable struct { models.ServiceTemporarilyUnavailable `json:"body,omitempty"` }Payload *
CreateConfigServiceUnavailable Service Temporarily Unavailable
swagger:response createConfigServiceUnavailable
func NewCreateConfigServiceUnavailable ¶ added in v1.9.2
func NewCreateConfigServiceUnavailable() *CreateConfigServiceUnavailable
NewCreateConfigServiceUnavailable creates CreateConfigServiceUnavailable with default headers values
func (*CreateConfigServiceUnavailable) SetPayload ¶ added in v1.9.2
func (o *CreateConfigServiceUnavailable) SetPayload(payload *models.ServiceTemporarilyUnavailable)
SetPayload sets the payload to the create config service unavailable response
func (*CreateConfigServiceUnavailable) WithPayload ¶ added in v1.9.2
func (o *CreateConfigServiceUnavailable) WithPayload(payload *models.ServiceTemporarilyUnavailable) *CreateConfigServiceUnavailable
WithPayload adds the payload to the create config service unavailable response
func (*CreateConfigServiceUnavailable) WriteResponse ¶ added in v1.9.2
func (o *CreateConfigServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateConfigURL ¶ added in v1.9.2
type CreateConfigURL struct {
// contains filtered or unexported fields
}
CreateConfigURL generates an URL for the create config operation
func (*CreateConfigURL) Build ¶ added in v1.9.2
func (o *CreateConfigURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateConfigURL) BuildFull ¶ added in v1.9.2
func (o *CreateConfigURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateConfigURL) Must ¶ added in v1.9.2
Must is a helper function to panic when the url builder returns an error
func (*CreateConfigURL) SetBasePath ¶ added in v1.9.2
func (o *CreateConfigURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*CreateConfigURL) String ¶ added in v1.9.2
func (o *CreateConfigURL) String() string
String returns the string representation of the path with query string
func (*CreateConfigURL) StringFull ¶ added in v1.9.2
func (o *CreateConfigURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateConfigURL) WithBasePath ¶ added in v1.9.2
func (o *CreateConfigURL) WithBasePath(bp string) *CreateConfigURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type CreateConfigUnauthorized ¶ added in v1.9.2
CreateConfigUnauthorized Unauthorized
swagger:response createConfigUnauthorized
func NewCreateConfigUnauthorized ¶ added in v1.9.2
func NewCreateConfigUnauthorized() *CreateConfigUnauthorized
NewCreateConfigUnauthorized creates CreateConfigUnauthorized with default headers values
func (*CreateConfigUnauthorized) SetPayload ¶ added in v1.9.2
func (o *CreateConfigUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the create config unauthorized response
func (*CreateConfigUnauthorized) WithPayload ¶ added in v1.9.2
func (o *CreateConfigUnauthorized) WithPayload(payload *models.Error) *CreateConfigUnauthorized
WithPayload adds the payload to the create config unauthorized response
func (*CreateConfigUnauthorized) WriteResponse ¶ added in v1.9.2
func (o *CreateConfigUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteConfig ¶ added in v1.9.2
type DeleteConfig struct { Context *middleware.Context Handler DeleteConfigHandler }
DeleteConfig swagger:route DELETE /config/{config_id} deleteConfig
Delete VPN config
func NewDeleteConfig ¶ added in v1.9.2
func NewDeleteConfig(ctx *middleware.Context, handler DeleteConfigHandler) *DeleteConfig
NewDeleteConfig creates a new http.Handler for the delete config operation
func (*DeleteConfig) ServeHTTP ¶ added in v1.9.2
func (o *DeleteConfig) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteConfigBadRequest ¶ added in v1.9.2
DeleteConfigBadRequest Bad Request
swagger:response deleteConfigBadRequest
func NewDeleteConfigBadRequest ¶ added in v1.9.2
func NewDeleteConfigBadRequest() *DeleteConfigBadRequest
NewDeleteConfigBadRequest creates DeleteConfigBadRequest with default headers values
func (*DeleteConfigBadRequest) SetPayload ¶ added in v1.9.2
func (o *DeleteConfigBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete config bad request response
func (*DeleteConfigBadRequest) WithPayload ¶ added in v1.9.2
func (o *DeleteConfigBadRequest) WithPayload(payload *models.Error) *DeleteConfigBadRequest
WithPayload adds the payload to the delete config bad request response
func (*DeleteConfigBadRequest) WriteResponse ¶ added in v1.9.2
func (o *DeleteConfigBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteConfigBody ¶ added in v1.9.2
type DeleteConfigBody struct { // Brigade ID // Required: true // Format: uuid BrigadeID *strfmt.UUID `json:"brigade_id"` }
DeleteConfigBody delete config body
swagger:model DeleteConfigBody
func (*DeleteConfigBody) ContextValidate ¶ added in v1.9.2
ContextValidate validates this delete config body based on context it is used
func (*DeleteConfigBody) MarshalBinary ¶ added in v1.9.2
func (o *DeleteConfigBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteConfigBody) UnmarshalBinary ¶ added in v1.9.2
func (o *DeleteConfigBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteConfigHandler ¶ added in v1.9.2
type DeleteConfigHandler interface {
Handle(DeleteConfigParams, *models.Principal) middleware.Responder
}
DeleteConfigHandler interface for that can handle valid delete config params
type DeleteConfigHandlerFunc ¶ added in v1.9.2
type DeleteConfigHandlerFunc func(DeleteConfigParams, *models.Principal) middleware.Responder
DeleteConfigHandlerFunc turns a function with the right signature into a delete config handler
func (DeleteConfigHandlerFunc) Handle ¶ added in v1.9.2
func (fn DeleteConfigHandlerFunc) Handle(params DeleteConfigParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type DeleteConfigInternalServerError ¶ added in v1.9.2
type DeleteConfigInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteConfigInternalServerError Internal Server Error
swagger:response deleteConfigInternalServerError
func NewDeleteConfigInternalServerError ¶ added in v1.9.2
func NewDeleteConfigInternalServerError() *DeleteConfigInternalServerError
NewDeleteConfigInternalServerError creates DeleteConfigInternalServerError with default headers values
func (*DeleteConfigInternalServerError) SetPayload ¶ added in v1.9.2
func (o *DeleteConfigInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete config internal server error response
func (*DeleteConfigInternalServerError) WithPayload ¶ added in v1.9.2
func (o *DeleteConfigInternalServerError) WithPayload(payload *models.Error) *DeleteConfigInternalServerError
WithPayload adds the payload to the delete config internal server error response
func (*DeleteConfigInternalServerError) WriteResponse ¶ added in v1.9.2
func (o *DeleteConfigInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteConfigNoContent ¶ added in v1.9.2
type DeleteConfigNoContent struct { }
DeleteConfigNoContent No Content
swagger:response deleteConfigNoContent
func NewDeleteConfigNoContent ¶ added in v1.9.2
func NewDeleteConfigNoContent() *DeleteConfigNoContent
NewDeleteConfigNoContent creates DeleteConfigNoContent with default headers values
func (*DeleteConfigNoContent) WriteResponse ¶ added in v1.9.2
func (o *DeleteConfigNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteConfigParams ¶ added in v1.9.2
type DeleteConfigParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Brigade ID Required: true In: body */ Body DeleteConfigBody /*Config ID Required: true In: path */ ConfigID string }
DeleteConfigParams contains all the bound params for the delete config operation typically these are obtained from a http.Request
swagger:parameters deleteConfig
func NewDeleteConfigParams ¶ added in v1.9.2
func NewDeleteConfigParams() DeleteConfigParams
NewDeleteConfigParams creates a new DeleteConfigParams object
There are no default values defined in the spec.
func (*DeleteConfigParams) BindRequest ¶ added in v1.9.2
func (o *DeleteConfigParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewDeleteConfigParams() beforehand.
type DeleteConfigServiceUnavailable ¶ added in v1.9.2
type DeleteConfigServiceUnavailable struct { models.ServiceTemporarilyUnavailable `json:"body,omitempty"` }Payload *
DeleteConfigServiceUnavailable Service Temporarily Unavailable
swagger:response deleteConfigServiceUnavailable
func NewDeleteConfigServiceUnavailable ¶ added in v1.9.2
func NewDeleteConfigServiceUnavailable() *DeleteConfigServiceUnavailable
NewDeleteConfigServiceUnavailable creates DeleteConfigServiceUnavailable with default headers values
func (*DeleteConfigServiceUnavailable) SetPayload ¶ added in v1.9.2
func (o *DeleteConfigServiceUnavailable) SetPayload(payload *models.ServiceTemporarilyUnavailable)
SetPayload sets the payload to the delete config service unavailable response
func (*DeleteConfigServiceUnavailable) WithPayload ¶ added in v1.9.2
func (o *DeleteConfigServiceUnavailable) WithPayload(payload *models.ServiceTemporarilyUnavailable) *DeleteConfigServiceUnavailable
WithPayload adds the payload to the delete config service unavailable response
func (*DeleteConfigServiceUnavailable) WriteResponse ¶ added in v1.9.2
func (o *DeleteConfigServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteConfigURL ¶ added in v1.9.2
type DeleteConfigURL struct { ConfigID string // contains filtered or unexported fields }
DeleteConfigURL generates an URL for the delete config operation
func (*DeleteConfigURL) Build ¶ added in v1.9.2
func (o *DeleteConfigURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteConfigURL) BuildFull ¶ added in v1.9.2
func (o *DeleteConfigURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteConfigURL) Must ¶ added in v1.9.2
Must is a helper function to panic when the url builder returns an error
func (*DeleteConfigURL) SetBasePath ¶ added in v1.9.2
func (o *DeleteConfigURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeleteConfigURL) String ¶ added in v1.9.2
func (o *DeleteConfigURL) String() string
String returns the string representation of the path with query string
func (*DeleteConfigURL) StringFull ¶ added in v1.9.2
func (o *DeleteConfigURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteConfigURL) WithBasePath ¶ added in v1.9.2
func (o *DeleteConfigURL) WithBasePath(bp string) *DeleteConfigURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type DeleteConfigUnauthorized ¶ added in v1.9.2
DeleteConfigUnauthorized Unauthorized
swagger:response deleteConfigUnauthorized
func NewDeleteConfigUnauthorized ¶ added in v1.9.2
func NewDeleteConfigUnauthorized() *DeleteConfigUnauthorized
NewDeleteConfigUnauthorized creates DeleteConfigUnauthorized with default headers values
func (*DeleteConfigUnauthorized) SetPayload ¶ added in v1.9.2
func (o *DeleteConfigUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete config unauthorized response
func (*DeleteConfigUnauthorized) WithPayload ¶ added in v1.9.2
func (o *DeleteConfigUnauthorized) WithPayload(payload *models.Error) *DeleteConfigUnauthorized
WithPayload adds the payload to the delete config unauthorized response
func (*DeleteConfigUnauthorized) WriteResponse ¶ added in v1.9.2
func (o *DeleteConfigUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBrigadeActivity ¶ added in v1.9.11
type GetBrigadeActivity struct { Context *middleware.Context Handler GetBrigadeActivityHandler }
GetBrigadeActivity swagger:route GET /brigade/{brigade_id}/activity getBrigadeActivity
Get VPN socket brigade activity stats
func NewGetBrigadeActivity ¶ added in v1.9.11
func NewGetBrigadeActivity(ctx *middleware.Context, handler GetBrigadeActivityHandler) *GetBrigadeActivity
NewGetBrigadeActivity creates a new http.Handler for the get brigade activity operation
func (*GetBrigadeActivity) ServeHTTP ¶ added in v1.9.11
func (o *GetBrigadeActivity) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetBrigadeActivityBadRequest ¶ added in v1.9.11
type GetBrigadeActivityBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetBrigadeActivityBadRequest Bad Request
swagger:response getBrigadeActivityBadRequest
func NewGetBrigadeActivityBadRequest ¶ added in v1.9.11
func NewGetBrigadeActivityBadRequest() *GetBrigadeActivityBadRequest
NewGetBrigadeActivityBadRequest creates GetBrigadeActivityBadRequest with default headers values
func (*GetBrigadeActivityBadRequest) SetPayload ¶ added in v1.9.11
func (o *GetBrigadeActivityBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the get brigade activity bad request response
func (*GetBrigadeActivityBadRequest) WithPayload ¶ added in v1.9.11
func (o *GetBrigadeActivityBadRequest) WithPayload(payload *models.Error) *GetBrigadeActivityBadRequest
WithPayload adds the payload to the get brigade activity bad request response
func (*GetBrigadeActivityBadRequest) WriteResponse ¶ added in v1.9.11
func (o *GetBrigadeActivityBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBrigadeActivityHandler ¶ added in v1.9.11
type GetBrigadeActivityHandler interface {
Handle(GetBrigadeActivityParams, *models.Principal) middleware.Responder
}
GetBrigadeActivityHandler interface for that can handle valid get brigade activity params
type GetBrigadeActivityHandlerFunc ¶ added in v1.9.11
type GetBrigadeActivityHandlerFunc func(GetBrigadeActivityParams, *models.Principal) middleware.Responder
GetBrigadeActivityHandlerFunc turns a function with the right signature into a get brigade activity handler
func (GetBrigadeActivityHandlerFunc) Handle ¶ added in v1.9.11
func (fn GetBrigadeActivityHandlerFunc) Handle(params GetBrigadeActivityParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetBrigadeActivityInternalServerError ¶ added in v1.9.11
type GetBrigadeActivityInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetBrigadeActivityInternalServerError Internal Server Error
swagger:response getBrigadeActivityInternalServerError
func NewGetBrigadeActivityInternalServerError ¶ added in v1.9.11
func NewGetBrigadeActivityInternalServerError() *GetBrigadeActivityInternalServerError
NewGetBrigadeActivityInternalServerError creates GetBrigadeActivityInternalServerError with default headers values
func (*GetBrigadeActivityInternalServerError) SetPayload ¶ added in v1.9.11
func (o *GetBrigadeActivityInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get brigade activity internal server error response
func (*GetBrigadeActivityInternalServerError) WithPayload ¶ added in v1.9.11
func (o *GetBrigadeActivityInternalServerError) WithPayload(payload *models.Error) *GetBrigadeActivityInternalServerError
WithPayload adds the payload to the get brigade activity internal server error response
func (*GetBrigadeActivityInternalServerError) WriteResponse ¶ added in v1.9.11
func (o *GetBrigadeActivityInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBrigadeActivityOK ¶ added in v1.9.11
type GetBrigadeActivityOK struct { /* In: Body */ Payload models.BrigadeActivity `json:"body,omitempty"` }
GetBrigadeActivityOK OK
swagger:response getBrigadeActivityOK
func NewGetBrigadeActivityOK ¶ added in v1.9.11
func NewGetBrigadeActivityOK() *GetBrigadeActivityOK
NewGetBrigadeActivityOK creates GetBrigadeActivityOK with default headers values
func (*GetBrigadeActivityOK) SetPayload ¶ added in v1.9.11
func (o *GetBrigadeActivityOK) SetPayload(payload models.BrigadeActivity)
SetPayload sets the payload to the get brigade activity o k response
func (*GetBrigadeActivityOK) WithPayload ¶ added in v1.9.11
func (o *GetBrigadeActivityOK) WithPayload(payload models.BrigadeActivity) *GetBrigadeActivityOK
WithPayload adds the payload to the get brigade activity o k response
func (*GetBrigadeActivityOK) WriteResponse ¶ added in v1.9.11
func (o *GetBrigadeActivityOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBrigadeActivityParams ¶ added in v1.9.11
type GetBrigadeActivityParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Brigade ID Required: true In: path */ BrigadeID string }
GetBrigadeActivityParams contains all the bound params for the get brigade activity operation typically these are obtained from a http.Request
swagger:parameters getBrigadeActivity
func NewGetBrigadeActivityParams ¶ added in v1.9.11
func NewGetBrigadeActivityParams() GetBrigadeActivityParams
NewGetBrigadeActivityParams creates a new GetBrigadeActivityParams object
There are no default values defined in the spec.
func (*GetBrigadeActivityParams) BindRequest ¶ added in v1.9.11
func (o *GetBrigadeActivityParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetBrigadeActivityParams() beforehand.
type GetBrigadeActivityServiceUnavailable ¶ added in v1.9.11
type GetBrigadeActivityServiceUnavailable struct { }
GetBrigadeActivityServiceUnavailable Service Temporarily Unavailable
swagger:response getBrigadeActivityServiceUnavailable
func NewGetBrigadeActivityServiceUnavailable ¶ added in v1.9.11
func NewGetBrigadeActivityServiceUnavailable() *GetBrigadeActivityServiceUnavailable
NewGetBrigadeActivityServiceUnavailable creates GetBrigadeActivityServiceUnavailable with default headers values
func (*GetBrigadeActivityServiceUnavailable) WriteResponse ¶ added in v1.9.11
func (o *GetBrigadeActivityServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBrigadeActivityURL ¶ added in v1.9.11
type GetBrigadeActivityURL struct { BrigadeID string // contains filtered or unexported fields }
GetBrigadeActivityURL generates an URL for the get brigade activity operation
func (*GetBrigadeActivityURL) Build ¶ added in v1.9.11
func (o *GetBrigadeActivityURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetBrigadeActivityURL) BuildFull ¶ added in v1.9.11
func (o *GetBrigadeActivityURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetBrigadeActivityURL) Must ¶ added in v1.9.11
Must is a helper function to panic when the url builder returns an error
func (*GetBrigadeActivityURL) SetBasePath ¶ added in v1.9.11
func (o *GetBrigadeActivityURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetBrigadeActivityURL) String ¶ added in v1.9.11
func (o *GetBrigadeActivityURL) String() string
String returns the string representation of the path with query string
func (*GetBrigadeActivityURL) StringFull ¶ added in v1.9.11
func (o *GetBrigadeActivityURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetBrigadeActivityURL) WithBasePath ¶ added in v1.9.11
func (o *GetBrigadeActivityURL) WithBasePath(bp string) *GetBrigadeActivityURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetBrigadeActivityUnauthorized ¶ added in v1.9.11
GetBrigadeActivityUnauthorized Unauthorized
swagger:response getBrigadeActivityUnauthorized
func NewGetBrigadeActivityUnauthorized ¶ added in v1.9.11
func NewGetBrigadeActivityUnauthorized() *GetBrigadeActivityUnauthorized
NewGetBrigadeActivityUnauthorized creates GetBrigadeActivityUnauthorized with default headers values
func (*GetBrigadeActivityUnauthorized) SetPayload ¶ added in v1.9.11
func (o *GetBrigadeActivityUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get brigade activity unauthorized response
func (*GetBrigadeActivityUnauthorized) WithPayload ¶ added in v1.9.11
func (o *GetBrigadeActivityUnauthorized) WithPayload(payload *models.Error) *GetBrigadeActivityUnauthorized
WithPayload adds the payload to the get brigade activity unauthorized response
func (*GetBrigadeActivityUnauthorized) WriteResponse ¶ added in v1.9.11
func (o *GetBrigadeActivityUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBrigadeSlots ¶ added in v1.9.11
type GetBrigadeSlots struct { Context *middleware.Context Handler GetBrigadeSlotsHandler }
GetBrigadeSlots swagger:route GET /brigade/{brigade_id}/slots getBrigadeSlots
Get VPN socket brigade slots stats
func NewGetBrigadeSlots ¶ added in v1.9.11
func NewGetBrigadeSlots(ctx *middleware.Context, handler GetBrigadeSlotsHandler) *GetBrigadeSlots
NewGetBrigadeSlots creates a new http.Handler for the get brigade slots operation
func (*GetBrigadeSlots) ServeHTTP ¶ added in v1.9.11
func (o *GetBrigadeSlots) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetBrigadeSlotsBadRequest ¶ added in v1.9.11
type GetBrigadeSlotsBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetBrigadeSlotsBadRequest Bad Request
swagger:response getBrigadeSlotsBadRequest
func NewGetBrigadeSlotsBadRequest ¶ added in v1.9.11
func NewGetBrigadeSlotsBadRequest() *GetBrigadeSlotsBadRequest
NewGetBrigadeSlotsBadRequest creates GetBrigadeSlotsBadRequest with default headers values
func (*GetBrigadeSlotsBadRequest) SetPayload ¶ added in v1.9.11
func (o *GetBrigadeSlotsBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the get brigade slots bad request response
func (*GetBrigadeSlotsBadRequest) WithPayload ¶ added in v1.9.11
func (o *GetBrigadeSlotsBadRequest) WithPayload(payload *models.Error) *GetBrigadeSlotsBadRequest
WithPayload adds the payload to the get brigade slots bad request response
func (*GetBrigadeSlotsBadRequest) WriteResponse ¶ added in v1.9.11
func (o *GetBrigadeSlotsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBrigadeSlotsHandler ¶ added in v1.9.11
type GetBrigadeSlotsHandler interface {
Handle(GetBrigadeSlotsParams, *models.Principal) middleware.Responder
}
GetBrigadeSlotsHandler interface for that can handle valid get brigade slots params
type GetBrigadeSlotsHandlerFunc ¶ added in v1.9.11
type GetBrigadeSlotsHandlerFunc func(GetBrigadeSlotsParams, *models.Principal) middleware.Responder
GetBrigadeSlotsHandlerFunc turns a function with the right signature into a get brigade slots handler
func (GetBrigadeSlotsHandlerFunc) Handle ¶ added in v1.9.11
func (fn GetBrigadeSlotsHandlerFunc) Handle(params GetBrigadeSlotsParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetBrigadeSlotsInternalServerError ¶ added in v1.9.11
type GetBrigadeSlotsInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetBrigadeSlotsInternalServerError Internal Server Error
swagger:response getBrigadeSlotsInternalServerError
func NewGetBrigadeSlotsInternalServerError ¶ added in v1.9.11
func NewGetBrigadeSlotsInternalServerError() *GetBrigadeSlotsInternalServerError
NewGetBrigadeSlotsInternalServerError creates GetBrigadeSlotsInternalServerError with default headers values
func (*GetBrigadeSlotsInternalServerError) SetPayload ¶ added in v1.9.11
func (o *GetBrigadeSlotsInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get brigade slots internal server error response
func (*GetBrigadeSlotsInternalServerError) WithPayload ¶ added in v1.9.11
func (o *GetBrigadeSlotsInternalServerError) WithPayload(payload *models.Error) *GetBrigadeSlotsInternalServerError
WithPayload adds the payload to the get brigade slots internal server error response
func (*GetBrigadeSlotsInternalServerError) WriteResponse ¶ added in v1.9.11
func (o *GetBrigadeSlotsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBrigadeSlotsOK ¶ added in v1.9.11
type GetBrigadeSlotsOK struct { /* In: Body */ Payload *models.BrigadeSlots `json:"body,omitempty"` }
GetBrigadeSlotsOK OK
swagger:response getBrigadeSlotsOK
func NewGetBrigadeSlotsOK ¶ added in v1.9.11
func NewGetBrigadeSlotsOK() *GetBrigadeSlotsOK
NewGetBrigadeSlotsOK creates GetBrigadeSlotsOK with default headers values
func (*GetBrigadeSlotsOK) SetPayload ¶ added in v1.9.11
func (o *GetBrigadeSlotsOK) SetPayload(payload *models.BrigadeSlots)
SetPayload sets the payload to the get brigade slots o k response
func (*GetBrigadeSlotsOK) WithPayload ¶ added in v1.9.11
func (o *GetBrigadeSlotsOK) WithPayload(payload *models.BrigadeSlots) *GetBrigadeSlotsOK
WithPayload adds the payload to the get brigade slots o k response
func (*GetBrigadeSlotsOK) WriteResponse ¶ added in v1.9.11
func (o *GetBrigadeSlotsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBrigadeSlotsParams ¶ added in v1.9.11
type GetBrigadeSlotsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Brigade ID Required: true In: path */ BrigadeID string }
GetBrigadeSlotsParams contains all the bound params for the get brigade slots operation typically these are obtained from a http.Request
swagger:parameters getBrigadeSlots
func NewGetBrigadeSlotsParams ¶ added in v1.9.11
func NewGetBrigadeSlotsParams() GetBrigadeSlotsParams
NewGetBrigadeSlotsParams creates a new GetBrigadeSlotsParams object
There are no default values defined in the spec.
func (*GetBrigadeSlotsParams) BindRequest ¶ added in v1.9.11
func (o *GetBrigadeSlotsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetBrigadeSlotsParams() beforehand.
type GetBrigadeSlotsServiceUnavailable ¶ added in v1.9.11
type GetBrigadeSlotsServiceUnavailable struct { }
GetBrigadeSlotsServiceUnavailable Service Temporarily Unavailable
swagger:response getBrigadeSlotsServiceUnavailable
func NewGetBrigadeSlotsServiceUnavailable ¶ added in v1.9.11
func NewGetBrigadeSlotsServiceUnavailable() *GetBrigadeSlotsServiceUnavailable
NewGetBrigadeSlotsServiceUnavailable creates GetBrigadeSlotsServiceUnavailable with default headers values
func (*GetBrigadeSlotsServiceUnavailable) WriteResponse ¶ added in v1.9.11
func (o *GetBrigadeSlotsServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBrigadeSlotsURL ¶ added in v1.9.11
type GetBrigadeSlotsURL struct { BrigadeID string // contains filtered or unexported fields }
GetBrigadeSlotsURL generates an URL for the get brigade slots operation
func (*GetBrigadeSlotsURL) Build ¶ added in v1.9.11
func (o *GetBrigadeSlotsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetBrigadeSlotsURL) BuildFull ¶ added in v1.9.11
func (o *GetBrigadeSlotsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetBrigadeSlotsURL) Must ¶ added in v1.9.11
Must is a helper function to panic when the url builder returns an error
func (*GetBrigadeSlotsURL) SetBasePath ¶ added in v1.9.11
func (o *GetBrigadeSlotsURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetBrigadeSlotsURL) String ¶ added in v1.9.11
func (o *GetBrigadeSlotsURL) String() string
String returns the string representation of the path with query string
func (*GetBrigadeSlotsURL) StringFull ¶ added in v1.9.11
func (o *GetBrigadeSlotsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetBrigadeSlotsURL) WithBasePath ¶ added in v1.9.11
func (o *GetBrigadeSlotsURL) WithBasePath(bp string) *GetBrigadeSlotsURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetBrigadeSlotsUnauthorized ¶ added in v1.9.11
GetBrigadeSlotsUnauthorized Unauthorized
swagger:response getBrigadeSlotsUnauthorized
func NewGetBrigadeSlotsUnauthorized ¶ added in v1.9.11
func NewGetBrigadeSlotsUnauthorized() *GetBrigadeSlotsUnauthorized
NewGetBrigadeSlotsUnauthorized creates GetBrigadeSlotsUnauthorized with default headers values
func (*GetBrigadeSlotsUnauthorized) SetPayload ¶ added in v1.9.11
func (o *GetBrigadeSlotsUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get brigade slots unauthorized response
func (*GetBrigadeSlotsUnauthorized) WithPayload ¶ added in v1.9.11
func (o *GetBrigadeSlotsUnauthorized) WithPayload(payload *models.Error) *GetBrigadeSlotsUnauthorized
WithPayload adds the payload to the get brigade slots unauthorized response
func (*GetBrigadeSlotsUnauthorized) WriteResponse ¶ added in v1.9.11
func (o *GetBrigadeSlotsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VGSocketRealmAPI ¶
type VGSocketRealmAPI struct { Middleware func(middleware.Builder) http.Handler // BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator // APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator // BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator // JSONConsumer registers a consumer for the following mime types: // - application/json JSONConsumer runtime.Consumer // XMLConsumer registers a consumer for the following mime types: // - application/xml XMLConsumer runtime.Consumer // JSONProducer registers a producer for the following mime types: // - application/json JSONProducer runtime.Producer // XMLProducer registers a producer for the following mime types: // - application/xml XMLProducer runtime.Producer // JWTAuth registers a function that takes an access token and a collection of required scopes and returns a principal // it performs authentication based on an oauth2 bearer token provided in the request JWTAuth func(string, []string) (*models.Principal, error) // APIAuthorizer provides access control (ACL/RBAC/ABAC) by providing access to the request and authenticated principal APIAuthorizer runtime.Authorizer // CreateConfigHandler sets the operation handler for the create config operation CreateConfigHandler CreateConfigHandler // DeleteConfigHandler sets the operation handler for the delete config operation DeleteConfigHandler DeleteConfigHandler // GetBrigadeActivityHandler sets the operation handler for the get brigade activity operation GetBrigadeActivityHandler GetBrigadeActivityHandler // GetBrigadeSlotsHandler sets the operation handler for the get brigade slots operation GetBrigadeSlotsHandler GetBrigadeSlotsHandler // ServeError is called when an error is received, there is a default handler // but you can set your own with this ServeError func(http.ResponseWriter, *http.Request, error) // PreServerShutdown is called before the HTTP(S) server is shutdown // This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic PreServerShutdown func() // ServerShutdown is called when the HTTP(S) server is shut down and done // handling all active connections and does not accept connections any more ServerShutdown func() // Custom command line argument groups with their descriptions CommandLineOptionsGroups []swag.CommandLineOptionsGroup // User defined logger function. Logger func(string, ...interface{}) // contains filtered or unexported fields }
VGSocketRealmAPI VPN Generator socket datacenter API
func NewVGSocketRealmAPI ¶
func NewVGSocketRealmAPI(spec *loads.Document) *VGSocketRealmAPI
NewVGSocketRealmAPI creates a new VGSocketRealm instance
func (*VGSocketRealmAPI) AddMiddlewareFor ¶
func (o *VGSocketRealmAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
AddMiddlewareFor adds a http middleware to existing handler
func (*VGSocketRealmAPI) AuthenticatorsFor ¶
func (o *VGSocketRealmAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*VGSocketRealmAPI) Authorizer ¶
func (o *VGSocketRealmAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*VGSocketRealmAPI) ConsumersFor ¶
func (o *VGSocketRealmAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.
func (*VGSocketRealmAPI) Context ¶
func (o *VGSocketRealmAPI) Context() *middleware.Context
Context returns the middleware context for the v g socket realm API
func (*VGSocketRealmAPI) DefaultConsumes ¶
func (o *VGSocketRealmAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*VGSocketRealmAPI) DefaultProduces ¶
func (o *VGSocketRealmAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*VGSocketRealmAPI) Formats ¶
func (o *VGSocketRealmAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*VGSocketRealmAPI) HandlerFor ¶
func (o *VGSocketRealmAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*VGSocketRealmAPI) Init ¶
func (o *VGSocketRealmAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*VGSocketRealmAPI) ProducersFor ¶
func (o *VGSocketRealmAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*VGSocketRealmAPI) RegisterConsumer ¶
func (o *VGSocketRealmAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*VGSocketRealmAPI) RegisterFormat ¶
func (o *VGSocketRealmAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*VGSocketRealmAPI) RegisterProducer ¶
func (o *VGSocketRealmAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*VGSocketRealmAPI) Serve ¶
func (o *VGSocketRealmAPI) Serve(builder middleware.Builder) http.Handler
Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))
func (*VGSocketRealmAPI) ServeErrorFor ¶
func (o *VGSocketRealmAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*VGSocketRealmAPI) SetDefaultConsumes ¶
func (o *VGSocketRealmAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*VGSocketRealmAPI) SetDefaultProduces ¶
func (o *VGSocketRealmAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*VGSocketRealmAPI) SetSpec ¶
func (o *VGSocketRealmAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*VGSocketRealmAPI) UseRedoc ¶
func (o *VGSocketRealmAPI) UseRedoc()
UseRedoc for documentation at /docs
func (*VGSocketRealmAPI) UseSwaggerUI ¶
func (o *VGSocketRealmAPI) UseSwaggerUI()
UseSwaggerUI for documentation at /docs
func (*VGSocketRealmAPI) Validate ¶
func (o *VGSocketRealmAPI) Validate() error
Validate validates the registrations in the VGSocketRealmAPI
Source Files ¶
- create_config.go
- create_config_parameters.go
- create_config_responses.go
- create_config_urlbuilder.go
- delete_config.go
- delete_config_parameters.go
- delete_config_responses.go
- delete_config_urlbuilder.go
- get_brigade_activity.go
- get_brigade_activity_parameters.go
- get_brigade_activity_responses.go
- get_brigade_activity_urlbuilder.go
- get_brigade_slots.go
- get_brigade_slots_parameters.go
- get_brigade_slots_responses.go
- get_brigade_slots_urlbuilder.go
- v_g_socket_realm_api.go