Documentation ¶
Index ¶
- Constants
- type CheckOrderStatus
- type CheckOrderStatusBadRequest
- type CheckOrderStatusFound
- func (o *CheckOrderStatusFound) SetLocation(location string)
- func (o *CheckOrderStatusFound) SetPayload(payload *models.OrderStatus)
- func (o *CheckOrderStatusFound) WithLocation(location string) *CheckOrderStatusFound
- func (o *CheckOrderStatusFound) WithPayload(payload *models.OrderStatus) *CheckOrderStatusFound
- func (o *CheckOrderStatusFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CheckOrderStatusHandler
- type CheckOrderStatusHandlerFunc
- type CheckOrderStatusInternalServerError
- func (o *CheckOrderStatusInternalServerError) SetPayload(payload *models.Error)
- func (o *CheckOrderStatusInternalServerError) WithPayload(payload *models.Error) *CheckOrderStatusInternalServerError
- func (o *CheckOrderStatusInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CheckOrderStatusOK
- func (o *CheckOrderStatusOK) SetPayload(payload *models.OrderStatus)
- func (o *CheckOrderStatusOK) SetRetryAfter(retryAfter string)
- func (o *CheckOrderStatusOK) WithPayload(payload *models.OrderStatus) *CheckOrderStatusOK
- func (o *CheckOrderStatusOK) WithRetryAfter(retryAfter string) *CheckOrderStatusOK
- func (o *CheckOrderStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CheckOrderStatusParams
- type CheckOrderStatusServiceUnavailable
- func (o *CheckOrderStatusServiceUnavailable) SetPayload(payload *models.ServiceTemporarilyUnavailable)
- func (o *CheckOrderStatusServiceUnavailable) WithPayload(payload *models.ServiceTemporarilyUnavailable) *CheckOrderStatusServiceUnavailable
- func (o *CheckOrderStatusServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CheckOrderStatusURL
- func (o *CheckOrderStatusURL) Build() (*url.URL, error)
- func (o *CheckOrderStatusURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CheckOrderStatusURL) Must(u *url.URL, err error) *url.URL
- func (o *CheckOrderStatusURL) SetBasePath(bp string)
- func (o *CheckOrderStatusURL) String() string
- func (o *CheckOrderStatusURL) StringFull(scheme, host string) string
- func (o *CheckOrderStatusURL) WithBasePath(bp string) *CheckOrderStatusURL
- type CheckOrderStatusUnauthorized
- type CreateBrigade
- type CreateBrigadeAccepted
- func (o *CreateBrigadeAccepted) SetLocation(location strfmt.URI)
- func (o *CreateBrigadeAccepted) SetPayload(payload *models.OrderStatus)
- func (o *CreateBrigadeAccepted) SetRetryAfter(retryAfter string)
- func (o *CreateBrigadeAccepted) WithLocation(location strfmt.URI) *CreateBrigadeAccepted
- func (o *CreateBrigadeAccepted) WithPayload(payload *models.OrderStatus) *CreateBrigadeAccepted
- func (o *CreateBrigadeAccepted) WithRetryAfter(retryAfter string) *CreateBrigadeAccepted
- func (o *CreateBrigadeAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateBrigadeBadRequest
- type CreateBrigadeHandler
- type CreateBrigadeHandlerFunc
- type CreateBrigadeInternalServerError
- type CreateBrigadeParams
- type CreateBrigadeServiceUnavailable
- func (o *CreateBrigadeServiceUnavailable) SetPayload(payload *models.ServiceTemporarilyUnavailable)
- func (o *CreateBrigadeServiceUnavailable) WithPayload(payload *models.ServiceTemporarilyUnavailable) *CreateBrigadeServiceUnavailable
- func (o *CreateBrigadeServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateBrigadeURL
- func (o *CreateBrigadeURL) Build() (*url.URL, error)
- func (o *CreateBrigadeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateBrigadeURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateBrigadeURL) SetBasePath(bp string)
- func (o *CreateBrigadeURL) String() string
- func (o *CreateBrigadeURL) StringFull(scheme, host string) string
- func (o *CreateBrigadeURL) WithBasePath(bp string) *CreateBrigadeURL
- type CreateBrigadeUnauthorized
- type DeleteBrigade
- type DeleteBrigadeAccepted
- func (o *DeleteBrigadeAccepted) SetLocation(location strfmt.URI)
- func (o *DeleteBrigadeAccepted) SetPayload(payload *models.OrderStatus)
- func (o *DeleteBrigadeAccepted) SetRetryAfter(retryAfter string)
- func (o *DeleteBrigadeAccepted) WithLocation(location strfmt.URI) *DeleteBrigadeAccepted
- func (o *DeleteBrigadeAccepted) WithPayload(payload *models.OrderStatus) *DeleteBrigadeAccepted
- func (o *DeleteBrigadeAccepted) WithRetryAfter(retryAfter string) *DeleteBrigadeAccepted
- func (o *DeleteBrigadeAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteBrigadeBadRequest
- type DeleteBrigadeHandler
- type DeleteBrigadeHandlerFunc
- type DeleteBrigadeInternalServerError
- type DeleteBrigadeParams
- type DeleteBrigadeServiceUnavailable
- type DeleteBrigadeURL
- func (o *DeleteBrigadeURL) Build() (*url.URL, error)
- func (o *DeleteBrigadeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteBrigadeURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteBrigadeURL) SetBasePath(bp string)
- func (o *DeleteBrigadeURL) String() string
- func (o *DeleteBrigadeURL) StringFull(scheme, host string) string
- func (o *DeleteBrigadeURL) WithBasePath(bp string) *DeleteBrigadeURL
- type DeleteBrigadeUnauthorized
- type GetBrigade
- type GetBrigadeBadRequest
- type GetBrigadeHandler
- type GetBrigadeHandlerFunc
- type GetBrigadeInternalServerError
- type GetBrigadeOK
- type GetBrigadeParams
- type GetBrigadeServiceUnavailable
- type GetBrigadeURL
- func (o *GetBrigadeURL) Build() (*url.URL, error)
- func (o *GetBrigadeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetBrigadeURL) Must(u *url.URL, err error) *url.URL
- func (o *GetBrigadeURL) SetBasePath(bp string)
- func (o *GetBrigadeURL) String() string
- func (o *GetBrigadeURL) StringFull(scheme, host string) string
- func (o *GetBrigadeURL) WithBasePath(bp string) *GetBrigadeURL
- type GetBrigadeUnauthorized
- type VGSBrigadeRealmAPI
- func (o *VGSBrigadeRealmAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
- func (o *VGSBrigadeRealmAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *VGSBrigadeRealmAPI) Authorizer() runtime.Authorizer
- func (o *VGSBrigadeRealmAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *VGSBrigadeRealmAPI) Context() *middleware.Context
- func (o *VGSBrigadeRealmAPI) DefaultConsumes() string
- func (o *VGSBrigadeRealmAPI) DefaultProduces() string
- func (o *VGSBrigadeRealmAPI) Formats() strfmt.Registry
- func (o *VGSBrigadeRealmAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *VGSBrigadeRealmAPI) Init()
- func (o *VGSBrigadeRealmAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *VGSBrigadeRealmAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *VGSBrigadeRealmAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *VGSBrigadeRealmAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *VGSBrigadeRealmAPI) Serve(builder middleware.Builder) http.Handler
- func (o *VGSBrigadeRealmAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *VGSBrigadeRealmAPI) SetDefaultConsumes(mediaType string)
- func (o *VGSBrigadeRealmAPI) SetDefaultProduces(mediaType string)
- func (o *VGSBrigadeRealmAPI) SetSpec(spec *loads.Document)
- func (o *VGSBrigadeRealmAPI) UseRedoc()
- func (o *VGSBrigadeRealmAPI) UseSwaggerUI()
- func (o *VGSBrigadeRealmAPI) Validate() error
Constants ¶
const CheckOrderStatusBadRequestCode int = 400
CheckOrderStatusBadRequestCode is the HTTP code returned for type CheckOrderStatusBadRequest
const CheckOrderStatusFoundCode int = 302
CheckOrderStatusFoundCode is the HTTP code returned for type CheckOrderStatusFound
const CheckOrderStatusInternalServerErrorCode int = 500
CheckOrderStatusInternalServerErrorCode is the HTTP code returned for type CheckOrderStatusInternalServerError
const CheckOrderStatusOKCode int = 200
CheckOrderStatusOKCode is the HTTP code returned for type CheckOrderStatusOK
CheckOrderStatusServiceUnavailableCode is the HTTP code returned for type CheckOrderStatusServiceUnavailable
CheckOrderStatusUnauthorizedCode is the HTTP code returned for type CheckOrderStatusUnauthorized
const CreateBrigadeAcceptedCode int = 202
CreateBrigadeAcceptedCode is the HTTP code returned for type CreateBrigadeAccepted
const CreateBrigadeBadRequestCode int = 400
CreateBrigadeBadRequestCode is the HTTP code returned for type CreateBrigadeBadRequest
const CreateBrigadeInternalServerErrorCode int = 500
CreateBrigadeInternalServerErrorCode is the HTTP code returned for type CreateBrigadeInternalServerError
CreateBrigadeServiceUnavailableCode is the HTTP code returned for type CreateBrigadeServiceUnavailable
CreateBrigadeUnauthorizedCode is the HTTP code returned for type CreateBrigadeUnauthorized
const DeleteBrigadeAcceptedCode int = 202
DeleteBrigadeAcceptedCode is the HTTP code returned for type DeleteBrigadeAccepted
const DeleteBrigadeBadRequestCode int = 400
DeleteBrigadeBadRequestCode is the HTTP code returned for type DeleteBrigadeBadRequest
const DeleteBrigadeInternalServerErrorCode int = 500
DeleteBrigadeInternalServerErrorCode is the HTTP code returned for type DeleteBrigadeInternalServerError
DeleteBrigadeServiceUnavailableCode is the HTTP code returned for type DeleteBrigadeServiceUnavailable
DeleteBrigadeUnauthorizedCode is the HTTP code returned for type DeleteBrigadeUnauthorized
const GetBrigadeBadRequestCode int = 400
GetBrigadeBadRequestCode is the HTTP code returned for type GetBrigadeBadRequest
const GetBrigadeInternalServerErrorCode int = 500
GetBrigadeInternalServerErrorCode is the HTTP code returned for type GetBrigadeInternalServerError
const GetBrigadeOKCode int = 200
GetBrigadeOKCode is the HTTP code returned for type GetBrigadeOK
GetBrigadeServiceUnavailableCode is the HTTP code returned for type GetBrigadeServiceUnavailable
GetBrigadeUnauthorizedCode is the HTTP code returned for type GetBrigadeUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckOrderStatus ¶
type CheckOrderStatus struct { Context *middleware.Context Handler CheckOrderStatusHandler }
CheckOrderStatus swagger:route GET /brigade/status/{order_id} checkOrderStatus
Check order status
func NewCheckOrderStatus ¶
func NewCheckOrderStatus(ctx *middleware.Context, handler CheckOrderStatusHandler) *CheckOrderStatus
NewCheckOrderStatus creates a new http.Handler for the check order status operation
func (*CheckOrderStatus) ServeHTTP ¶
func (o *CheckOrderStatus) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CheckOrderStatusBadRequest ¶
type CheckOrderStatusBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CheckOrderStatusBadRequest Bad Request
swagger:response checkOrderStatusBadRequest
func NewCheckOrderStatusBadRequest ¶
func NewCheckOrderStatusBadRequest() *CheckOrderStatusBadRequest
NewCheckOrderStatusBadRequest creates CheckOrderStatusBadRequest with default headers values
func (*CheckOrderStatusBadRequest) SetPayload ¶
func (o *CheckOrderStatusBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the check order status bad request response
func (*CheckOrderStatusBadRequest) WithPayload ¶
func (o *CheckOrderStatusBadRequest) WithPayload(payload *models.Error) *CheckOrderStatusBadRequest
WithPayload adds the payload to the check order status bad request response
func (*CheckOrderStatusBadRequest) WriteResponse ¶
func (o *CheckOrderStatusBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CheckOrderStatusFound ¶
type CheckOrderStatusFound struct { /*Location */ Location string `json:"Location"` /* In: Body */ Payload *models.OrderStatus `json:"body,omitempty"` }
CheckOrderStatusFound Found
swagger:response checkOrderStatusFound
func NewCheckOrderStatusFound ¶
func NewCheckOrderStatusFound() *CheckOrderStatusFound
NewCheckOrderStatusFound creates CheckOrderStatusFound with default headers values
func (*CheckOrderStatusFound) SetLocation ¶
func (o *CheckOrderStatusFound) SetLocation(location string)
SetLocation sets the location to the check order status found response
func (*CheckOrderStatusFound) SetPayload ¶
func (o *CheckOrderStatusFound) SetPayload(payload *models.OrderStatus)
SetPayload sets the payload to the check order status found response
func (*CheckOrderStatusFound) WithLocation ¶
func (o *CheckOrderStatusFound) WithLocation(location string) *CheckOrderStatusFound
WithLocation adds the location to the check order status found response
func (*CheckOrderStatusFound) WithPayload ¶
func (o *CheckOrderStatusFound) WithPayload(payload *models.OrderStatus) *CheckOrderStatusFound
WithPayload adds the payload to the check order status found response
func (*CheckOrderStatusFound) WriteResponse ¶
func (o *CheckOrderStatusFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CheckOrderStatusHandler ¶
type CheckOrderStatusHandler interface {
Handle(CheckOrderStatusParams, *models.Principal) middleware.Responder
}
CheckOrderStatusHandler interface for that can handle valid check order status params
type CheckOrderStatusHandlerFunc ¶
type CheckOrderStatusHandlerFunc func(CheckOrderStatusParams, *models.Principal) middleware.Responder
CheckOrderStatusHandlerFunc turns a function with the right signature into a check order status handler
func (CheckOrderStatusHandlerFunc) Handle ¶
func (fn CheckOrderStatusHandlerFunc) Handle(params CheckOrderStatusParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type CheckOrderStatusInternalServerError ¶
type CheckOrderStatusInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CheckOrderStatusInternalServerError Internal Server Error
swagger:response checkOrderStatusInternalServerError
func NewCheckOrderStatusInternalServerError ¶
func NewCheckOrderStatusInternalServerError() *CheckOrderStatusInternalServerError
NewCheckOrderStatusInternalServerError creates CheckOrderStatusInternalServerError with default headers values
func (*CheckOrderStatusInternalServerError) SetPayload ¶
func (o *CheckOrderStatusInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the check order status internal server error response
func (*CheckOrderStatusInternalServerError) WithPayload ¶
func (o *CheckOrderStatusInternalServerError) WithPayload(payload *models.Error) *CheckOrderStatusInternalServerError
WithPayload adds the payload to the check order status internal server error response
func (*CheckOrderStatusInternalServerError) WriteResponse ¶
func (o *CheckOrderStatusInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CheckOrderStatusOK ¶
type CheckOrderStatusOK struct { /*Retry after seconds */ RetryAfter string `json:"Retry-After"` /* In: Body */ Payload *models.OrderStatus `json:"body,omitempty"` }
CheckOrderStatusOK OK
swagger:response checkOrderStatusOK
func NewCheckOrderStatusOK ¶
func NewCheckOrderStatusOK() *CheckOrderStatusOK
NewCheckOrderStatusOK creates CheckOrderStatusOK with default headers values
func (*CheckOrderStatusOK) SetPayload ¶
func (o *CheckOrderStatusOK) SetPayload(payload *models.OrderStatus)
SetPayload sets the payload to the check order status o k response
func (*CheckOrderStatusOK) SetRetryAfter ¶
func (o *CheckOrderStatusOK) SetRetryAfter(retryAfter string)
SetRetryAfter sets the retryAfter to the check order status o k response
func (*CheckOrderStatusOK) WithPayload ¶
func (o *CheckOrderStatusOK) WithPayload(payload *models.OrderStatus) *CheckOrderStatusOK
WithPayload adds the payload to the check order status o k response
func (*CheckOrderStatusOK) WithRetryAfter ¶
func (o *CheckOrderStatusOK) WithRetryAfter(retryAfter string) *CheckOrderStatusOK
WithRetryAfter adds the retryAfter to the check order status o k response
func (*CheckOrderStatusOK) WriteResponse ¶
func (o *CheckOrderStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CheckOrderStatusParams ¶
type CheckOrderStatusParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Order ID Required: true In: path */ OrderID string }
CheckOrderStatusParams contains all the bound params for the check order status operation typically these are obtained from a http.Request
swagger:parameters checkOrderStatus
func NewCheckOrderStatusParams ¶
func NewCheckOrderStatusParams() CheckOrderStatusParams
NewCheckOrderStatusParams creates a new CheckOrderStatusParams object
There are no default values defined in the spec.
func (*CheckOrderStatusParams) BindRequest ¶
func (o *CheckOrderStatusParams) 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 NewCheckOrderStatusParams() beforehand.
type CheckOrderStatusServiceUnavailable ¶
type CheckOrderStatusServiceUnavailable struct { models.ServiceTemporarilyUnavailable `json:"body,omitempty"` }Payload *
CheckOrderStatusServiceUnavailable Service Temporarily Unavailable
swagger:response checkOrderStatusServiceUnavailable
func NewCheckOrderStatusServiceUnavailable ¶
func NewCheckOrderStatusServiceUnavailable() *CheckOrderStatusServiceUnavailable
NewCheckOrderStatusServiceUnavailable creates CheckOrderStatusServiceUnavailable with default headers values
func (*CheckOrderStatusServiceUnavailable) SetPayload ¶
func (o *CheckOrderStatusServiceUnavailable) SetPayload(payload *models.ServiceTemporarilyUnavailable)
SetPayload sets the payload to the check order status service unavailable response
func (*CheckOrderStatusServiceUnavailable) WithPayload ¶
func (o *CheckOrderStatusServiceUnavailable) WithPayload(payload *models.ServiceTemporarilyUnavailable) *CheckOrderStatusServiceUnavailable
WithPayload adds the payload to the check order status service unavailable response
func (*CheckOrderStatusServiceUnavailable) WriteResponse ¶
func (o *CheckOrderStatusServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CheckOrderStatusURL ¶
type CheckOrderStatusURL struct { OrderID string // contains filtered or unexported fields }
CheckOrderStatusURL generates an URL for the check order status operation
func (*CheckOrderStatusURL) Build ¶
func (o *CheckOrderStatusURL) Build() (*url.URL, error)
Build a url path and query string
func (*CheckOrderStatusURL) BuildFull ¶
func (o *CheckOrderStatusURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CheckOrderStatusURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CheckOrderStatusURL) SetBasePath ¶
func (o *CheckOrderStatusURL) 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 (*CheckOrderStatusURL) String ¶
func (o *CheckOrderStatusURL) String() string
String returns the string representation of the path with query string
func (*CheckOrderStatusURL) StringFull ¶
func (o *CheckOrderStatusURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CheckOrderStatusURL) WithBasePath ¶
func (o *CheckOrderStatusURL) WithBasePath(bp string) *CheckOrderStatusURL
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 CheckOrderStatusUnauthorized ¶
CheckOrderStatusUnauthorized Unauthorized
swagger:response checkOrderStatusUnauthorized
func NewCheckOrderStatusUnauthorized ¶
func NewCheckOrderStatusUnauthorized() *CheckOrderStatusUnauthorized
NewCheckOrderStatusUnauthorized creates CheckOrderStatusUnauthorized with default headers values
func (*CheckOrderStatusUnauthorized) SetPayload ¶
func (o *CheckOrderStatusUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the check order status unauthorized response
func (*CheckOrderStatusUnauthorized) WithPayload ¶
func (o *CheckOrderStatusUnauthorized) WithPayload(payload *models.Error) *CheckOrderStatusUnauthorized
WithPayload adds the payload to the check order status unauthorized response
func (*CheckOrderStatusUnauthorized) WriteResponse ¶
func (o *CheckOrderStatusUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateBrigade ¶
type CreateBrigade struct { Context *middleware.Context Handler CreateBrigadeHandler }
CreateBrigade swagger:route POST /brigade createBrigade
Create VPN socket brigade
func NewCreateBrigade ¶
func NewCreateBrigade(ctx *middleware.Context, handler CreateBrigadeHandler) *CreateBrigade
NewCreateBrigade creates a new http.Handler for the create brigade operation
func (*CreateBrigade) ServeHTTP ¶
func (o *CreateBrigade) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateBrigadeAccepted ¶
type CreateBrigadeAccepted struct { /*Location */ Location strfmt.URI `json:"Location"` /*Retry after seconds */ RetryAfter string `json:"Retry-After"` /* In: Body */ Payload *models.OrderStatus `json:"body,omitempty"` }
CreateBrigadeAccepted Accepted
swagger:response createBrigadeAccepted
func NewCreateBrigadeAccepted ¶
func NewCreateBrigadeAccepted() *CreateBrigadeAccepted
NewCreateBrigadeAccepted creates CreateBrigadeAccepted with default headers values
func (*CreateBrigadeAccepted) SetLocation ¶
func (o *CreateBrigadeAccepted) SetLocation(location strfmt.URI)
SetLocation sets the location to the create brigade accepted response
func (*CreateBrigadeAccepted) SetPayload ¶
func (o *CreateBrigadeAccepted) SetPayload(payload *models.OrderStatus)
SetPayload sets the payload to the create brigade accepted response
func (*CreateBrigadeAccepted) SetRetryAfter ¶
func (o *CreateBrigadeAccepted) SetRetryAfter(retryAfter string)
SetRetryAfter sets the retryAfter to the create brigade accepted response
func (*CreateBrigadeAccepted) WithLocation ¶
func (o *CreateBrigadeAccepted) WithLocation(location strfmt.URI) *CreateBrigadeAccepted
WithLocation adds the location to the create brigade accepted response
func (*CreateBrigadeAccepted) WithPayload ¶
func (o *CreateBrigadeAccepted) WithPayload(payload *models.OrderStatus) *CreateBrigadeAccepted
WithPayload adds the payload to the create brigade accepted response
func (*CreateBrigadeAccepted) WithRetryAfter ¶
func (o *CreateBrigadeAccepted) WithRetryAfter(retryAfter string) *CreateBrigadeAccepted
WithRetryAfter adds the retryAfter to the create brigade accepted response
func (*CreateBrigadeAccepted) WriteResponse ¶
func (o *CreateBrigadeAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateBrigadeBadRequest ¶
type CreateBrigadeBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateBrigadeBadRequest Bad Request
swagger:response createBrigadeBadRequest
func NewCreateBrigadeBadRequest ¶
func NewCreateBrigadeBadRequest() *CreateBrigadeBadRequest
NewCreateBrigadeBadRequest creates CreateBrigadeBadRequest with default headers values
func (*CreateBrigadeBadRequest) SetPayload ¶
func (o *CreateBrigadeBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the create brigade bad request response
func (*CreateBrigadeBadRequest) WithPayload ¶
func (o *CreateBrigadeBadRequest) WithPayload(payload *models.Error) *CreateBrigadeBadRequest
WithPayload adds the payload to the create brigade bad request response
func (*CreateBrigadeBadRequest) WriteResponse ¶
func (o *CreateBrigadeBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateBrigadeHandler ¶
type CreateBrigadeHandler interface {
Handle(CreateBrigadeParams, *models.Principal) middleware.Responder
}
CreateBrigadeHandler interface for that can handle valid create brigade params
type CreateBrigadeHandlerFunc ¶
type CreateBrigadeHandlerFunc func(CreateBrigadeParams, *models.Principal) middleware.Responder
CreateBrigadeHandlerFunc turns a function with the right signature into a create brigade handler
func (CreateBrigadeHandlerFunc) Handle ¶
func (fn CreateBrigadeHandlerFunc) Handle(params CreateBrigadeParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type CreateBrigadeInternalServerError ¶
type CreateBrigadeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateBrigadeInternalServerError Internal Server Error
swagger:response createBrigadeInternalServerError
func NewCreateBrigadeInternalServerError ¶
func NewCreateBrigadeInternalServerError() *CreateBrigadeInternalServerError
NewCreateBrigadeInternalServerError creates CreateBrigadeInternalServerError with default headers values
func (*CreateBrigadeInternalServerError) SetPayload ¶
func (o *CreateBrigadeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the create brigade internal server error response
func (*CreateBrigadeInternalServerError) WithPayload ¶
func (o *CreateBrigadeInternalServerError) WithPayload(payload *models.Error) *CreateBrigadeInternalServerError
WithPayload adds the payload to the create brigade internal server error response
func (*CreateBrigadeInternalServerError) WriteResponse ¶
func (o *CreateBrigadeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateBrigadeParams ¶
type CreateBrigadeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Brigade data Required: true In: body */ Body *models.CreateBirgadeRequest }
CreateBrigadeParams contains all the bound params for the create brigade operation typically these are obtained from a http.Request
swagger:parameters createBrigade
func NewCreateBrigadeParams ¶
func NewCreateBrigadeParams() CreateBrigadeParams
NewCreateBrigadeParams creates a new CreateBrigadeParams object
There are no default values defined in the spec.
func (*CreateBrigadeParams) BindRequest ¶
func (o *CreateBrigadeParams) 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 NewCreateBrigadeParams() beforehand.
type CreateBrigadeServiceUnavailable ¶
type CreateBrigadeServiceUnavailable struct { models.ServiceTemporarilyUnavailable `json:"body,omitempty"` }Payload *
CreateBrigadeServiceUnavailable Service Temporarily Unavailable
swagger:response createBrigadeServiceUnavailable
func NewCreateBrigadeServiceUnavailable ¶
func NewCreateBrigadeServiceUnavailable() *CreateBrigadeServiceUnavailable
NewCreateBrigadeServiceUnavailable creates CreateBrigadeServiceUnavailable with default headers values
func (*CreateBrigadeServiceUnavailable) SetPayload ¶
func (o *CreateBrigadeServiceUnavailable) SetPayload(payload *models.ServiceTemporarilyUnavailable)
SetPayload sets the payload to the create brigade service unavailable response
func (*CreateBrigadeServiceUnavailable) WithPayload ¶
func (o *CreateBrigadeServiceUnavailable) WithPayload(payload *models.ServiceTemporarilyUnavailable) *CreateBrigadeServiceUnavailable
WithPayload adds the payload to the create brigade service unavailable response
func (*CreateBrigadeServiceUnavailable) WriteResponse ¶
func (o *CreateBrigadeServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateBrigadeURL ¶
type CreateBrigadeURL struct {
// contains filtered or unexported fields
}
CreateBrigadeURL generates an URL for the create brigade operation
func (*CreateBrigadeURL) Build ¶
func (o *CreateBrigadeURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateBrigadeURL) BuildFull ¶
func (o *CreateBrigadeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateBrigadeURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateBrigadeURL) SetBasePath ¶
func (o *CreateBrigadeURL) 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 (*CreateBrigadeURL) String ¶
func (o *CreateBrigadeURL) String() string
String returns the string representation of the path with query string
func (*CreateBrigadeURL) StringFull ¶
func (o *CreateBrigadeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateBrigadeURL) WithBasePath ¶
func (o *CreateBrigadeURL) WithBasePath(bp string) *CreateBrigadeURL
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 CreateBrigadeUnauthorized ¶
CreateBrigadeUnauthorized Unauthorized
swagger:response createBrigadeUnauthorized
func NewCreateBrigadeUnauthorized ¶
func NewCreateBrigadeUnauthorized() *CreateBrigadeUnauthorized
NewCreateBrigadeUnauthorized creates CreateBrigadeUnauthorized with default headers values
func (*CreateBrigadeUnauthorized) SetPayload ¶
func (o *CreateBrigadeUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the create brigade unauthorized response
func (*CreateBrigadeUnauthorized) WithPayload ¶
func (o *CreateBrigadeUnauthorized) WithPayload(payload *models.Error) *CreateBrigadeUnauthorized
WithPayload adds the payload to the create brigade unauthorized response
func (*CreateBrigadeUnauthorized) WriteResponse ¶
func (o *CreateBrigadeUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteBrigade ¶
type DeleteBrigade struct { Context *middleware.Context Handler DeleteBrigadeHandler }
DeleteBrigade swagger:route DELETE /brigade/{brigade_id} deleteBrigade
Delete VPN socket brigade
func NewDeleteBrigade ¶
func NewDeleteBrigade(ctx *middleware.Context, handler DeleteBrigadeHandler) *DeleteBrigade
NewDeleteBrigade creates a new http.Handler for the delete brigade operation
func (*DeleteBrigade) ServeHTTP ¶
func (o *DeleteBrigade) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteBrigadeAccepted ¶
type DeleteBrigadeAccepted struct { /*Location */ Location strfmt.URI `json:"Location"` /*Retry after seconds */ RetryAfter string `json:"Retry-After"` /* In: Body */ Payload *models.OrderStatus `json:"body,omitempty"` }
DeleteBrigadeAccepted Accepted
swagger:response deleteBrigadeAccepted
func NewDeleteBrigadeAccepted ¶
func NewDeleteBrigadeAccepted() *DeleteBrigadeAccepted
NewDeleteBrigadeAccepted creates DeleteBrigadeAccepted with default headers values
func (*DeleteBrigadeAccepted) SetLocation ¶
func (o *DeleteBrigadeAccepted) SetLocation(location strfmt.URI)
SetLocation sets the location to the delete brigade accepted response
func (*DeleteBrigadeAccepted) SetPayload ¶
func (o *DeleteBrigadeAccepted) SetPayload(payload *models.OrderStatus)
SetPayload sets the payload to the delete brigade accepted response
func (*DeleteBrigadeAccepted) SetRetryAfter ¶
func (o *DeleteBrigadeAccepted) SetRetryAfter(retryAfter string)
SetRetryAfter sets the retryAfter to the delete brigade accepted response
func (*DeleteBrigadeAccepted) WithLocation ¶
func (o *DeleteBrigadeAccepted) WithLocation(location strfmt.URI) *DeleteBrigadeAccepted
WithLocation adds the location to the delete brigade accepted response
func (*DeleteBrigadeAccepted) WithPayload ¶
func (o *DeleteBrigadeAccepted) WithPayload(payload *models.OrderStatus) *DeleteBrigadeAccepted
WithPayload adds the payload to the delete brigade accepted response
func (*DeleteBrigadeAccepted) WithRetryAfter ¶
func (o *DeleteBrigadeAccepted) WithRetryAfter(retryAfter string) *DeleteBrigadeAccepted
WithRetryAfter adds the retryAfter to the delete brigade accepted response
func (*DeleteBrigadeAccepted) WriteResponse ¶
func (o *DeleteBrigadeAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteBrigadeBadRequest ¶
type DeleteBrigadeBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteBrigadeBadRequest Bad Request
swagger:response deleteBrigadeBadRequest
func NewDeleteBrigadeBadRequest ¶
func NewDeleteBrigadeBadRequest() *DeleteBrigadeBadRequest
NewDeleteBrigadeBadRequest creates DeleteBrigadeBadRequest with default headers values
func (*DeleteBrigadeBadRequest) SetPayload ¶
func (o *DeleteBrigadeBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete brigade bad request response
func (*DeleteBrigadeBadRequest) WithPayload ¶
func (o *DeleteBrigadeBadRequest) WithPayload(payload *models.Error) *DeleteBrigadeBadRequest
WithPayload adds the payload to the delete brigade bad request response
func (*DeleteBrigadeBadRequest) WriteResponse ¶
func (o *DeleteBrigadeBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteBrigadeHandler ¶
type DeleteBrigadeHandler interface {
Handle(DeleteBrigadeParams, *models.Principal) middleware.Responder
}
DeleteBrigadeHandler interface for that can handle valid delete brigade params
type DeleteBrigadeHandlerFunc ¶
type DeleteBrigadeHandlerFunc func(DeleteBrigadeParams, *models.Principal) middleware.Responder
DeleteBrigadeHandlerFunc turns a function with the right signature into a delete brigade handler
func (DeleteBrigadeHandlerFunc) Handle ¶
func (fn DeleteBrigadeHandlerFunc) Handle(params DeleteBrigadeParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type DeleteBrigadeInternalServerError ¶
type DeleteBrigadeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteBrigadeInternalServerError Internal Server Error
swagger:response deleteBrigadeInternalServerError
func NewDeleteBrigadeInternalServerError ¶
func NewDeleteBrigadeInternalServerError() *DeleteBrigadeInternalServerError
NewDeleteBrigadeInternalServerError creates DeleteBrigadeInternalServerError with default headers values
func (*DeleteBrigadeInternalServerError) SetPayload ¶
func (o *DeleteBrigadeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete brigade internal server error response
func (*DeleteBrigadeInternalServerError) WithPayload ¶
func (o *DeleteBrigadeInternalServerError) WithPayload(payload *models.Error) *DeleteBrigadeInternalServerError
WithPayload adds the payload to the delete brigade internal server error response
func (*DeleteBrigadeInternalServerError) WriteResponse ¶
func (o *DeleteBrigadeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteBrigadeParams ¶
type DeleteBrigadeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Brigade ID Required: true In: path */ BrigadeID string }
DeleteBrigadeParams contains all the bound params for the delete brigade operation typically these are obtained from a http.Request
swagger:parameters deleteBrigade
func NewDeleteBrigadeParams ¶
func NewDeleteBrigadeParams() DeleteBrigadeParams
NewDeleteBrigadeParams creates a new DeleteBrigadeParams object
There are no default values defined in the spec.
func (*DeleteBrigadeParams) BindRequest ¶
func (o *DeleteBrigadeParams) 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 NewDeleteBrigadeParams() beforehand.
type DeleteBrigadeServiceUnavailable ¶
type DeleteBrigadeServiceUnavailable struct { }
DeleteBrigadeServiceUnavailable Service Temporarily Unavailable
swagger:response deleteBrigadeServiceUnavailable
func NewDeleteBrigadeServiceUnavailable ¶
func NewDeleteBrigadeServiceUnavailable() *DeleteBrigadeServiceUnavailable
NewDeleteBrigadeServiceUnavailable creates DeleteBrigadeServiceUnavailable with default headers values
func (*DeleteBrigadeServiceUnavailable) WriteResponse ¶
func (o *DeleteBrigadeServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteBrigadeURL ¶
type DeleteBrigadeURL struct { BrigadeID string // contains filtered or unexported fields }
DeleteBrigadeURL generates an URL for the delete brigade operation
func (*DeleteBrigadeURL) Build ¶
func (o *DeleteBrigadeURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteBrigadeURL) BuildFull ¶
func (o *DeleteBrigadeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteBrigadeURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteBrigadeURL) SetBasePath ¶
func (o *DeleteBrigadeURL) 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 (*DeleteBrigadeURL) String ¶
func (o *DeleteBrigadeURL) String() string
String returns the string representation of the path with query string
func (*DeleteBrigadeURL) StringFull ¶
func (o *DeleteBrigadeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteBrigadeURL) WithBasePath ¶
func (o *DeleteBrigadeURL) WithBasePath(bp string) *DeleteBrigadeURL
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 DeleteBrigadeUnauthorized ¶
DeleteBrigadeUnauthorized Unauthorized
swagger:response deleteBrigadeUnauthorized
func NewDeleteBrigadeUnauthorized ¶
func NewDeleteBrigadeUnauthorized() *DeleteBrigadeUnauthorized
NewDeleteBrigadeUnauthorized creates DeleteBrigadeUnauthorized with default headers values
func (*DeleteBrigadeUnauthorized) SetPayload ¶
func (o *DeleteBrigadeUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete brigade unauthorized response
func (*DeleteBrigadeUnauthorized) WithPayload ¶
func (o *DeleteBrigadeUnauthorized) WithPayload(payload *models.Error) *DeleteBrigadeUnauthorized
WithPayload adds the payload to the delete brigade unauthorized response
func (*DeleteBrigadeUnauthorized) WriteResponse ¶
func (o *DeleteBrigadeUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBrigade ¶
type GetBrigade struct { Context *middleware.Context Handler GetBrigadeHandler }
GetBrigade swagger:route GET /brigade/{brigade_id} getBrigade
Get VPN socket brigade
func NewGetBrigade ¶
func NewGetBrigade(ctx *middleware.Context, handler GetBrigadeHandler) *GetBrigade
NewGetBrigade creates a new http.Handler for the get brigade operation
func (*GetBrigade) ServeHTTP ¶
func (o *GetBrigade) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetBrigadeBadRequest ¶
GetBrigadeBadRequest Bad Request
swagger:response getBrigadeBadRequest
func NewGetBrigadeBadRequest ¶
func NewGetBrigadeBadRequest() *GetBrigadeBadRequest
NewGetBrigadeBadRequest creates GetBrigadeBadRequest with default headers values
func (*GetBrigadeBadRequest) SetPayload ¶
func (o *GetBrigadeBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the get brigade bad request response
func (*GetBrigadeBadRequest) WithPayload ¶
func (o *GetBrigadeBadRequest) WithPayload(payload *models.Error) *GetBrigadeBadRequest
WithPayload adds the payload to the get brigade bad request response
func (*GetBrigadeBadRequest) WriteResponse ¶
func (o *GetBrigadeBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBrigadeHandler ¶
type GetBrigadeHandler interface {
Handle(GetBrigadeParams, *models.Principal) middleware.Responder
}
GetBrigadeHandler interface for that can handle valid get brigade params
type GetBrigadeHandlerFunc ¶
type GetBrigadeHandlerFunc func(GetBrigadeParams, *models.Principal) middleware.Responder
GetBrigadeHandlerFunc turns a function with the right signature into a get brigade handler
func (GetBrigadeHandlerFunc) Handle ¶
func (fn GetBrigadeHandlerFunc) Handle(params GetBrigadeParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetBrigadeInternalServerError ¶
type GetBrigadeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetBrigadeInternalServerError Internal Server Error
swagger:response getBrigadeInternalServerError
func NewGetBrigadeInternalServerError ¶
func NewGetBrigadeInternalServerError() *GetBrigadeInternalServerError
NewGetBrigadeInternalServerError creates GetBrigadeInternalServerError with default headers values
func (*GetBrigadeInternalServerError) SetPayload ¶
func (o *GetBrigadeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get brigade internal server error response
func (*GetBrigadeInternalServerError) WithPayload ¶
func (o *GetBrigadeInternalServerError) WithPayload(payload *models.Error) *GetBrigadeInternalServerError
WithPayload adds the payload to the get brigade internal server error response
func (*GetBrigadeInternalServerError) WriteResponse ¶
func (o *GetBrigadeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBrigadeOK ¶
GetBrigadeOK OK
swagger:response getBrigadeOK
func NewGetBrigadeOK ¶
func NewGetBrigadeOK() *GetBrigadeOK
NewGetBrigadeOK creates GetBrigadeOK with default headers values
func (*GetBrigadeOK) SetPayload ¶
func (o *GetBrigadeOK) SetPayload(payload *models.Brigade)
SetPayload sets the payload to the get brigade o k response
func (*GetBrigadeOK) WithPayload ¶
func (o *GetBrigadeOK) WithPayload(payload *models.Brigade) *GetBrigadeOK
WithPayload adds the payload to the get brigade o k response
func (*GetBrigadeOK) WriteResponse ¶
func (o *GetBrigadeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBrigadeParams ¶
type GetBrigadeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Brigade ID Required: true In: path */ BrigadeID string }
GetBrigadeParams contains all the bound params for the get brigade operation typically these are obtained from a http.Request
swagger:parameters getBrigade
func NewGetBrigadeParams ¶
func NewGetBrigadeParams() GetBrigadeParams
NewGetBrigadeParams creates a new GetBrigadeParams object
There are no default values defined in the spec.
func (*GetBrigadeParams) BindRequest ¶
func (o *GetBrigadeParams) 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 NewGetBrigadeParams() beforehand.
type GetBrigadeServiceUnavailable ¶
type GetBrigadeServiceUnavailable struct { }
GetBrigadeServiceUnavailable Service Temporarily Unavailable
swagger:response getBrigadeServiceUnavailable
func NewGetBrigadeServiceUnavailable ¶
func NewGetBrigadeServiceUnavailable() *GetBrigadeServiceUnavailable
NewGetBrigadeServiceUnavailable creates GetBrigadeServiceUnavailable with default headers values
func (*GetBrigadeServiceUnavailable) WriteResponse ¶
func (o *GetBrigadeServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBrigadeURL ¶
type GetBrigadeURL struct { BrigadeID string // contains filtered or unexported fields }
GetBrigadeURL generates an URL for the get brigade operation
func (*GetBrigadeURL) Build ¶
func (o *GetBrigadeURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetBrigadeURL) BuildFull ¶
func (o *GetBrigadeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetBrigadeURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetBrigadeURL) SetBasePath ¶
func (o *GetBrigadeURL) 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 (*GetBrigadeURL) String ¶
func (o *GetBrigadeURL) String() string
String returns the string representation of the path with query string
func (*GetBrigadeURL) StringFull ¶
func (o *GetBrigadeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetBrigadeURL) WithBasePath ¶
func (o *GetBrigadeURL) WithBasePath(bp string) *GetBrigadeURL
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 GetBrigadeUnauthorized ¶
GetBrigadeUnauthorized Unauthorized
swagger:response getBrigadeUnauthorized
func NewGetBrigadeUnauthorized ¶
func NewGetBrigadeUnauthorized() *GetBrigadeUnauthorized
NewGetBrigadeUnauthorized creates GetBrigadeUnauthorized with default headers values
func (*GetBrigadeUnauthorized) SetPayload ¶
func (o *GetBrigadeUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get brigade unauthorized response
func (*GetBrigadeUnauthorized) WithPayload ¶
func (o *GetBrigadeUnauthorized) WithPayload(payload *models.Error) *GetBrigadeUnauthorized
WithPayload adds the payload to the get brigade unauthorized response
func (*GetBrigadeUnauthorized) WriteResponse ¶
func (o *GetBrigadeUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VGSBrigadeRealmAPI ¶
type VGSBrigadeRealmAPI 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 // JSONProducer registers a producer for the following mime types: // - application/json JSONProducer 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 // CheckOrderStatusHandler sets the operation handler for the check order status operation CheckOrderStatusHandler CheckOrderStatusHandler // CreateBrigadeHandler sets the operation handler for the create brigade operation CreateBrigadeHandler CreateBrigadeHandler // DeleteBrigadeHandler sets the operation handler for the delete brigade operation DeleteBrigadeHandler DeleteBrigadeHandler // GetBrigadeHandler sets the operation handler for the get brigade operation GetBrigadeHandler GetBrigadeHandler // 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 }
VGSBrigadeRealmAPI VPN Generator socket datacenter API
func NewVGSBrigadeRealmAPI ¶
func NewVGSBrigadeRealmAPI(spec *loads.Document) *VGSBrigadeRealmAPI
NewVGSBrigadeRealmAPI creates a new VGSBrigadeRealm instance
func (*VGSBrigadeRealmAPI) AddMiddlewareFor ¶
func (o *VGSBrigadeRealmAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
AddMiddlewareFor adds a http middleware to existing handler
func (*VGSBrigadeRealmAPI) AuthenticatorsFor ¶
func (o *VGSBrigadeRealmAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*VGSBrigadeRealmAPI) Authorizer ¶
func (o *VGSBrigadeRealmAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*VGSBrigadeRealmAPI) ConsumersFor ¶
func (o *VGSBrigadeRealmAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.
func (*VGSBrigadeRealmAPI) Context ¶
func (o *VGSBrigadeRealmAPI) Context() *middleware.Context
Context returns the middleware context for the v g s brigade realm API
func (*VGSBrigadeRealmAPI) DefaultConsumes ¶
func (o *VGSBrigadeRealmAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*VGSBrigadeRealmAPI) DefaultProduces ¶
func (o *VGSBrigadeRealmAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*VGSBrigadeRealmAPI) Formats ¶
func (o *VGSBrigadeRealmAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*VGSBrigadeRealmAPI) HandlerFor ¶
func (o *VGSBrigadeRealmAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*VGSBrigadeRealmAPI) Init ¶
func (o *VGSBrigadeRealmAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*VGSBrigadeRealmAPI) ProducersFor ¶
func (o *VGSBrigadeRealmAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*VGSBrigadeRealmAPI) RegisterConsumer ¶
func (o *VGSBrigadeRealmAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*VGSBrigadeRealmAPI) RegisterFormat ¶
func (o *VGSBrigadeRealmAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*VGSBrigadeRealmAPI) RegisterProducer ¶
func (o *VGSBrigadeRealmAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*VGSBrigadeRealmAPI) Serve ¶
func (o *VGSBrigadeRealmAPI) 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 (*VGSBrigadeRealmAPI) ServeErrorFor ¶
func (o *VGSBrigadeRealmAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*VGSBrigadeRealmAPI) SetDefaultConsumes ¶
func (o *VGSBrigadeRealmAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*VGSBrigadeRealmAPI) SetDefaultProduces ¶
func (o *VGSBrigadeRealmAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*VGSBrigadeRealmAPI) SetSpec ¶
func (o *VGSBrigadeRealmAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*VGSBrigadeRealmAPI) UseRedoc ¶
func (o *VGSBrigadeRealmAPI) UseRedoc()
UseRedoc for documentation at /docs
func (*VGSBrigadeRealmAPI) UseSwaggerUI ¶
func (o *VGSBrigadeRealmAPI) UseSwaggerUI()
UseSwaggerUI for documentation at /docs
func (*VGSBrigadeRealmAPI) Validate ¶
func (o *VGSBrigadeRealmAPI) Validate() error
Validate validates the registrations in the VGSBrigadeRealmAPI
Source Files ¶
- check_order_status.go
- check_order_status_parameters.go
- check_order_status_responses.go
- check_order_status_urlbuilder.go
- create_brigade.go
- create_brigade_parameters.go
- create_brigade_responses.go
- create_brigade_urlbuilder.go
- delete_brigade.go
- delete_brigade_parameters.go
- delete_brigade_responses.go
- delete_brigade_urlbuilder.go
- get_brigade.go
- get_brigade_parameters.go
- get_brigade_responses.go
- get_brigade_urlbuilder.go
- v_g_s_brigade_realm_api.go