operations

package
v1.9.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const CheckOrderStatusBadRequestCode int = 400

CheckOrderStatusBadRequestCode is the HTTP code returned for type CheckOrderStatusBadRequest

View Source
const CheckOrderStatusFoundCode int = 302

CheckOrderStatusFoundCode is the HTTP code returned for type CheckOrderStatusFound

View Source
const CheckOrderStatusInternalServerErrorCode int = 500

CheckOrderStatusInternalServerErrorCode is the HTTP code returned for type CheckOrderStatusInternalServerError

View Source
const CheckOrderStatusOKCode int = 200

CheckOrderStatusOKCode is the HTTP code returned for type CheckOrderStatusOK

View Source
const CheckOrderStatusServiceUnavailableCode int = 503

CheckOrderStatusServiceUnavailableCode is the HTTP code returned for type CheckOrderStatusServiceUnavailable

View Source
const CheckOrderStatusUnauthorizedCode int = 401

CheckOrderStatusUnauthorizedCode is the HTTP code returned for type CheckOrderStatusUnauthorized

View Source
const CreateBrigadeAcceptedCode int = 202

CreateBrigadeAcceptedCode is the HTTP code returned for type CreateBrigadeAccepted

View Source
const CreateBrigadeBadRequestCode int = 400

CreateBrigadeBadRequestCode is the HTTP code returned for type CreateBrigadeBadRequest

View Source
const CreateBrigadeInternalServerErrorCode int = 500

CreateBrigadeInternalServerErrorCode is the HTTP code returned for type CreateBrigadeInternalServerError

View Source
const CreateBrigadeServiceUnavailableCode int = 503

CreateBrigadeServiceUnavailableCode is the HTTP code returned for type CreateBrigadeServiceUnavailable

View Source
const CreateBrigadeUnauthorizedCode int = 401

CreateBrigadeUnauthorizedCode is the HTTP code returned for type CreateBrigadeUnauthorized

View Source
const DeleteBrigadeAcceptedCode int = 202

DeleteBrigadeAcceptedCode is the HTTP code returned for type DeleteBrigadeAccepted

View Source
const DeleteBrigadeBadRequestCode int = 400

DeleteBrigadeBadRequestCode is the HTTP code returned for type DeleteBrigadeBadRequest

View Source
const DeleteBrigadeInternalServerErrorCode int = 500

DeleteBrigadeInternalServerErrorCode is the HTTP code returned for type DeleteBrigadeInternalServerError

View Source
const DeleteBrigadeServiceUnavailableCode int = 503

DeleteBrigadeServiceUnavailableCode is the HTTP code returned for type DeleteBrigadeServiceUnavailable

View Source
const DeleteBrigadeUnauthorizedCode int = 401

DeleteBrigadeUnauthorizedCode is the HTTP code returned for type DeleteBrigadeUnauthorized

View Source
const GetBrigadeBadRequestCode int = 400

GetBrigadeBadRequestCode is the HTTP code returned for type GetBrigadeBadRequest

View Source
const GetBrigadeInternalServerErrorCode int = 500

GetBrigadeInternalServerErrorCode is the HTTP code returned for type GetBrigadeInternalServerError

View Source
const GetBrigadeOKCode int = 200

GetBrigadeOKCode is the HTTP code returned for type GetBrigadeOK

View Source
const GetBrigadeServiceUnavailableCode int = 503

GetBrigadeServiceUnavailableCode is the HTTP code returned for type GetBrigadeServiceUnavailable

View Source
const GetBrigadeUnauthorizedCode int = 401

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

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

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

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

WithPayload adds the payload to the check order status internal server error response

func (*CheckOrderStatusInternalServerError) WriteResponse

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 {

	/*
	  In: Body
	*/
	Payload *models.ServiceTemporarilyUnavailable `json:"body,omitempty"`
}

CheckOrderStatusServiceUnavailable Service Temporarily Unavailable

swagger:response checkOrderStatusServiceUnavailable

func NewCheckOrderStatusServiceUnavailable

func NewCheckOrderStatusServiceUnavailable() *CheckOrderStatusServiceUnavailable

NewCheckOrderStatusServiceUnavailable creates CheckOrderStatusServiceUnavailable with default headers values

func (*CheckOrderStatusServiceUnavailable) SetPayload

SetPayload sets the payload to the check order status service unavailable response

func (*CheckOrderStatusServiceUnavailable) WithPayload

WithPayload adds the payload to the check order status service unavailable response

func (*CheckOrderStatusServiceUnavailable) WriteResponse

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

func (o *CheckOrderStatusURL) Must(u *url.URL, err error) *url.URL

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

type CheckOrderStatusUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

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

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

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

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 {

	/*
	  In: Body
	*/
	Payload *models.ServiceTemporarilyUnavailable `json:"body,omitempty"`
}

CreateBrigadeServiceUnavailable Service Temporarily Unavailable

swagger:response createBrigadeServiceUnavailable

func NewCreateBrigadeServiceUnavailable

func NewCreateBrigadeServiceUnavailable() *CreateBrigadeServiceUnavailable

NewCreateBrigadeServiceUnavailable creates CreateBrigadeServiceUnavailable with default headers values

func (*CreateBrigadeServiceUnavailable) SetPayload

SetPayload sets the payload to the create brigade service unavailable response

func (*CreateBrigadeServiceUnavailable) WithPayload

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

func (o *CreateBrigadeURL) Must(u *url.URL, err error) *url.URL

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

type CreateBrigadeUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

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

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

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

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

func (o *DeleteBrigadeURL) Must(u *url.URL, err error) *url.URL

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

type DeleteBrigadeUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

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

type GetBrigadeBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

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

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

type GetBrigadeOK struct {

	/*
	  In: Body
	*/
	Payload *models.Brigade `json:"body,omitempty"`
}

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

func (o *GetBrigadeURL) Must(u *url.URL, err error) *url.URL

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

type GetBrigadeUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL