Documentation ¶
Index ¶
- Constants
- type CreateRouter
- type CreateRouterBadRequest
- type CreateRouterCreated
- type CreateRouterHandler
- type CreateRouterHandlerFunc
- type CreateRouterParams
- type CreateRouterURL
- func (o *CreateRouterURL) Build() (*url.URL, error)
- func (o *CreateRouterURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateRouterURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateRouterURL) SetBasePath(bp string)
- func (o *CreateRouterURL) String() string
- func (o *CreateRouterURL) StringFull(scheme, host string) string
- func (o *CreateRouterURL) WithBasePath(bp string) *CreateRouterURL
- type CreateRouterUnauthorized
- type DeleteRouter
- type DeleteRouterBadRequest
- type DeleteRouterConflict
- type DeleteRouterHandler
- type DeleteRouterHandlerFunc
- type DeleteRouterOK
- type DeleteRouterParams
- type DeleteRouterURL
- func (o *DeleteRouterURL) Build() (*url.URL, error)
- func (o *DeleteRouterURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteRouterURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteRouterURL) SetBasePath(bp string)
- func (o *DeleteRouterURL) String() string
- func (o *DeleteRouterURL) StringFull(scheme, host string) string
- func (o *DeleteRouterURL) WithBasePath(bp string) *DeleteRouterURL
- type DeleteRouterUnauthorized
- type DetailRouter
- type DetailRouterHandler
- type DetailRouterHandlerFunc
- type DetailRouterNotFound
- type DetailRouterOK
- type DetailRouterParams
- type DetailRouterURL
- func (o *DetailRouterURL) Build() (*url.URL, error)
- func (o *DetailRouterURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DetailRouterURL) Must(u *url.URL, err error) *url.URL
- func (o *DetailRouterURL) SetBasePath(bp string)
- func (o *DetailRouterURL) String() string
- func (o *DetailRouterURL) StringFull(scheme, host string) string
- func (o *DetailRouterURL) WithBasePath(bp string) *DetailRouterURL
- type DetailRouterUnauthorized
- type ListRouterTerminators
- type ListRouterTerminatorsBadRequest
- func (o *ListRouterTerminatorsBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *ListRouterTerminatorsBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *ListRouterTerminatorsBadRequest
- func (o *ListRouterTerminatorsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRouterTerminatorsHandler
- type ListRouterTerminatorsHandlerFunc
- type ListRouterTerminatorsOK
- func (o *ListRouterTerminatorsOK) SetPayload(payload *rest_model.ListTerminatorsEnvelope)
- func (o *ListRouterTerminatorsOK) WithPayload(payload *rest_model.ListTerminatorsEnvelope) *ListRouterTerminatorsOK
- func (o *ListRouterTerminatorsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRouterTerminatorsParams
- type ListRouterTerminatorsURL
- func (o *ListRouterTerminatorsURL) Build() (*url.URL, error)
- func (o *ListRouterTerminatorsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListRouterTerminatorsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListRouterTerminatorsURL) SetBasePath(bp string)
- func (o *ListRouterTerminatorsURL) String() string
- func (o *ListRouterTerminatorsURL) StringFull(scheme, host string) string
- func (o *ListRouterTerminatorsURL) WithBasePath(bp string) *ListRouterTerminatorsURL
- type ListRouterTerminatorsUnauthorized
- func (o *ListRouterTerminatorsUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *ListRouterTerminatorsUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *ListRouterTerminatorsUnauthorized
- func (o *ListRouterTerminatorsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListRouters
- type ListRoutersHandler
- type ListRoutersHandlerFunc
- type ListRoutersOK
- type ListRoutersParams
- type ListRoutersURL
- func (o *ListRoutersURL) Build() (*url.URL, error)
- func (o *ListRoutersURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListRoutersURL) Must(u *url.URL, err error) *url.URL
- func (o *ListRoutersURL) SetBasePath(bp string)
- func (o *ListRoutersURL) String() string
- func (o *ListRoutersURL) StringFull(scheme, host string) string
- func (o *ListRoutersURL) WithBasePath(bp string) *ListRoutersURL
- type ListRoutersUnauthorized
- type PatchRouter
- type PatchRouterBadRequest
- type PatchRouterHandler
- type PatchRouterHandlerFunc
- type PatchRouterNotFound
- type PatchRouterOK
- type PatchRouterParams
- type PatchRouterURL
- func (o *PatchRouterURL) Build() (*url.URL, error)
- func (o *PatchRouterURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PatchRouterURL) Must(u *url.URL, err error) *url.URL
- func (o *PatchRouterURL) SetBasePath(bp string)
- func (o *PatchRouterURL) String() string
- func (o *PatchRouterURL) StringFull(scheme, host string) string
- func (o *PatchRouterURL) WithBasePath(bp string) *PatchRouterURL
- type PatchRouterUnauthorized
- type UpdateRouter
- type UpdateRouterBadRequest
- type UpdateRouterHandler
- type UpdateRouterHandlerFunc
- type UpdateRouterNotFound
- type UpdateRouterOK
- type UpdateRouterParams
- type UpdateRouterURL
- func (o *UpdateRouterURL) Build() (*url.URL, error)
- func (o *UpdateRouterURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateRouterURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateRouterURL) SetBasePath(bp string)
- func (o *UpdateRouterURL) String() string
- func (o *UpdateRouterURL) StringFull(scheme, host string) string
- func (o *UpdateRouterURL) WithBasePath(bp string) *UpdateRouterURL
- type UpdateRouterUnauthorized
Constants ¶
const CreateRouterBadRequestCode int = 400
CreateRouterBadRequestCode is the HTTP code returned for type CreateRouterBadRequest
const CreateRouterCreatedCode int = 201
CreateRouterCreatedCode is the HTTP code returned for type CreateRouterCreated
CreateRouterUnauthorizedCode is the HTTP code returned for type CreateRouterUnauthorized
const DeleteRouterBadRequestCode int = 400
DeleteRouterBadRequestCode is the HTTP code returned for type DeleteRouterBadRequest
const DeleteRouterConflictCode int = 409
DeleteRouterConflictCode is the HTTP code returned for type DeleteRouterConflict
const DeleteRouterOKCode int = 200
DeleteRouterOKCode is the HTTP code returned for type DeleteRouterOK
DeleteRouterUnauthorizedCode is the HTTP code returned for type DeleteRouterUnauthorized
const DetailRouterNotFoundCode int = 404
DetailRouterNotFoundCode is the HTTP code returned for type DetailRouterNotFound
const DetailRouterOKCode int = 200
DetailRouterOKCode is the HTTP code returned for type DetailRouterOK
DetailRouterUnauthorizedCode is the HTTP code returned for type DetailRouterUnauthorized
const ListRouterTerminatorsBadRequestCode int = 400
ListRouterTerminatorsBadRequestCode is the HTTP code returned for type ListRouterTerminatorsBadRequest
const ListRouterTerminatorsOKCode int = 200
ListRouterTerminatorsOKCode is the HTTP code returned for type ListRouterTerminatorsOK
ListRouterTerminatorsUnauthorizedCode is the HTTP code returned for type ListRouterTerminatorsUnauthorized
const ListRoutersOKCode int = 200
ListRoutersOKCode is the HTTP code returned for type ListRoutersOK
ListRoutersUnauthorizedCode is the HTTP code returned for type ListRoutersUnauthorized
const PatchRouterBadRequestCode int = 400
PatchRouterBadRequestCode is the HTTP code returned for type PatchRouterBadRequest
const PatchRouterNotFoundCode int = 404
PatchRouterNotFoundCode is the HTTP code returned for type PatchRouterNotFound
const PatchRouterOKCode int = 200
PatchRouterOKCode is the HTTP code returned for type PatchRouterOK
PatchRouterUnauthorizedCode is the HTTP code returned for type PatchRouterUnauthorized
const UpdateRouterBadRequestCode int = 400
UpdateRouterBadRequestCode is the HTTP code returned for type UpdateRouterBadRequest
const UpdateRouterNotFoundCode int = 404
UpdateRouterNotFoundCode is the HTTP code returned for type UpdateRouterNotFound
const UpdateRouterOKCode int = 200
UpdateRouterOKCode is the HTTP code returned for type UpdateRouterOK
UpdateRouterUnauthorizedCode is the HTTP code returned for type UpdateRouterUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRouter ¶
type CreateRouter struct { Context *middleware.Context Handler CreateRouterHandler }
CreateRouter swagger:route POST /routers Router createRouter
Create a router resource ¶
Create a router resource. Requires admin access.
func NewCreateRouter ¶
func NewCreateRouter(ctx *middleware.Context, handler CreateRouterHandler) *CreateRouter
NewCreateRouter creates a new http.Handler for the create router operation
func (*CreateRouter) ServeHTTP ¶
func (o *CreateRouter) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateRouterBadRequest ¶
type CreateRouterBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
CreateRouterBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response createRouterBadRequest
func NewCreateRouterBadRequest ¶
func NewCreateRouterBadRequest() *CreateRouterBadRequest
NewCreateRouterBadRequest creates CreateRouterBadRequest with default headers values
func (*CreateRouterBadRequest) SetPayload ¶
func (o *CreateRouterBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the create router bad request response
func (*CreateRouterBadRequest) WithPayload ¶
func (o *CreateRouterBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateRouterBadRequest
WithPayload adds the payload to the create router bad request response
func (*CreateRouterBadRequest) WriteResponse ¶
func (o *CreateRouterBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRouterCreated ¶
type CreateRouterCreated struct { /* In: Body */ Payload *rest_model.CreateEnvelope `json:"body,omitempty"` }
CreateRouterCreated The create request was successful and the resource has been added at the following location
swagger:response createRouterCreated
func NewCreateRouterCreated ¶
func NewCreateRouterCreated() *CreateRouterCreated
NewCreateRouterCreated creates CreateRouterCreated with default headers values
func (*CreateRouterCreated) SetPayload ¶
func (o *CreateRouterCreated) SetPayload(payload *rest_model.CreateEnvelope)
SetPayload sets the payload to the create router created response
func (*CreateRouterCreated) WithPayload ¶
func (o *CreateRouterCreated) WithPayload(payload *rest_model.CreateEnvelope) *CreateRouterCreated
WithPayload adds the payload to the create router created response
func (*CreateRouterCreated) WriteResponse ¶
func (o *CreateRouterCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRouterHandler ¶
type CreateRouterHandler interface {
Handle(CreateRouterParams) middleware.Responder
}
CreateRouterHandler interface for that can handle valid create router params
type CreateRouterHandlerFunc ¶
type CreateRouterHandlerFunc func(CreateRouterParams) middleware.Responder
CreateRouterHandlerFunc turns a function with the right signature into a create router handler
func (CreateRouterHandlerFunc) Handle ¶
func (fn CreateRouterHandlerFunc) Handle(params CreateRouterParams) middleware.Responder
Handle executing the request and returning a response
type CreateRouterParams ¶
type CreateRouterParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*A router to create Required: true In: body */ Router *rest_model.RouterCreate }
CreateRouterParams contains all the bound params for the create router operation typically these are obtained from a http.Request
swagger:parameters createRouter
func NewCreateRouterParams ¶
func NewCreateRouterParams() CreateRouterParams
NewCreateRouterParams creates a new CreateRouterParams object
There are no default values defined in the spec.
func (*CreateRouterParams) BindRequest ¶
func (o *CreateRouterParams) 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 NewCreateRouterParams() beforehand.
type CreateRouterURL ¶
type CreateRouterURL struct {
// contains filtered or unexported fields
}
CreateRouterURL generates an URL for the create router operation
func (*CreateRouterURL) Build ¶
func (o *CreateRouterURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateRouterURL) BuildFull ¶
func (o *CreateRouterURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateRouterURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateRouterURL) SetBasePath ¶
func (o *CreateRouterURL) 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 (*CreateRouterURL) String ¶
func (o *CreateRouterURL) String() string
String returns the string representation of the path with query string
func (*CreateRouterURL) StringFull ¶
func (o *CreateRouterURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateRouterURL) WithBasePath ¶
func (o *CreateRouterURL) WithBasePath(bp string) *CreateRouterURL
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 CreateRouterUnauthorized ¶
type CreateRouterUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
CreateRouterUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response createRouterUnauthorized
func NewCreateRouterUnauthorized ¶
func NewCreateRouterUnauthorized() *CreateRouterUnauthorized
NewCreateRouterUnauthorized creates CreateRouterUnauthorized with default headers values
func (*CreateRouterUnauthorized) SetPayload ¶
func (o *CreateRouterUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the create router unauthorized response
func (*CreateRouterUnauthorized) WithPayload ¶
func (o *CreateRouterUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateRouterUnauthorized
WithPayload adds the payload to the create router unauthorized response
func (*CreateRouterUnauthorized) WriteResponse ¶
func (o *CreateRouterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRouter ¶
type DeleteRouter struct { Context *middleware.Context Handler DeleteRouterHandler }
DeleteRouter swagger:route DELETE /routers/{id} Router deleteRouter
Delete a router ¶
Delete a router by id. Requires admin access.
func NewDeleteRouter ¶
func NewDeleteRouter(ctx *middleware.Context, handler DeleteRouterHandler) *DeleteRouter
NewDeleteRouter creates a new http.Handler for the delete router operation
func (*DeleteRouter) ServeHTTP ¶
func (o *DeleteRouter) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteRouterBadRequest ¶
type DeleteRouterBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DeleteRouterBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response deleteRouterBadRequest
func NewDeleteRouterBadRequest ¶
func NewDeleteRouterBadRequest() *DeleteRouterBadRequest
NewDeleteRouterBadRequest creates DeleteRouterBadRequest with default headers values
func (*DeleteRouterBadRequest) SetPayload ¶
func (o *DeleteRouterBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete router bad request response
func (*DeleteRouterBadRequest) WithPayload ¶
func (o *DeleteRouterBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteRouterBadRequest
WithPayload adds the payload to the delete router bad request response
func (*DeleteRouterBadRequest) WriteResponse ¶
func (o *DeleteRouterBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRouterConflict ¶
type DeleteRouterConflict struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DeleteRouterConflict The resource requested to be removed/altered cannot be as it is referenced by another object.
swagger:response deleteRouterConflict
func NewDeleteRouterConflict ¶
func NewDeleteRouterConflict() *DeleteRouterConflict
NewDeleteRouterConflict creates DeleteRouterConflict with default headers values
func (*DeleteRouterConflict) SetPayload ¶
func (o *DeleteRouterConflict) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete router conflict response
func (*DeleteRouterConflict) WithPayload ¶
func (o *DeleteRouterConflict) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteRouterConflict
WithPayload adds the payload to the delete router conflict response
func (*DeleteRouterConflict) WriteResponse ¶
func (o *DeleteRouterConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRouterHandler ¶
type DeleteRouterHandler interface {
Handle(DeleteRouterParams) middleware.Responder
}
DeleteRouterHandler interface for that can handle valid delete router params
type DeleteRouterHandlerFunc ¶
type DeleteRouterHandlerFunc func(DeleteRouterParams) middleware.Responder
DeleteRouterHandlerFunc turns a function with the right signature into a delete router handler
func (DeleteRouterHandlerFunc) Handle ¶
func (fn DeleteRouterHandlerFunc) Handle(params DeleteRouterParams) middleware.Responder
Handle executing the request and returning a response
type DeleteRouterOK ¶
type DeleteRouterOK struct { /* In: Body */ Payload *rest_model.Empty `json:"body,omitempty"` }
DeleteRouterOK The delete request was successful and the resource has been removed
swagger:response deleteRouterOK
func NewDeleteRouterOK ¶
func NewDeleteRouterOK() *DeleteRouterOK
NewDeleteRouterOK creates DeleteRouterOK with default headers values
func (*DeleteRouterOK) SetPayload ¶
func (o *DeleteRouterOK) SetPayload(payload *rest_model.Empty)
SetPayload sets the payload to the delete router o k response
func (*DeleteRouterOK) WithPayload ¶
func (o *DeleteRouterOK) WithPayload(payload *rest_model.Empty) *DeleteRouterOK
WithPayload adds the payload to the delete router o k response
func (*DeleteRouterOK) WriteResponse ¶
func (o *DeleteRouterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRouterParams ¶
type DeleteRouterParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the requested resource Required: true In: path */ ID string }
DeleteRouterParams contains all the bound params for the delete router operation typically these are obtained from a http.Request
swagger:parameters deleteRouter
func NewDeleteRouterParams ¶
func NewDeleteRouterParams() DeleteRouterParams
NewDeleteRouterParams creates a new DeleteRouterParams object
There are no default values defined in the spec.
func (*DeleteRouterParams) BindRequest ¶
func (o *DeleteRouterParams) 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 NewDeleteRouterParams() beforehand.
type DeleteRouterURL ¶
type DeleteRouterURL struct { ID string // contains filtered or unexported fields }
DeleteRouterURL generates an URL for the delete router operation
func (*DeleteRouterURL) Build ¶
func (o *DeleteRouterURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteRouterURL) BuildFull ¶
func (o *DeleteRouterURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteRouterURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteRouterURL) SetBasePath ¶
func (o *DeleteRouterURL) 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 (*DeleteRouterURL) String ¶
func (o *DeleteRouterURL) String() string
String returns the string representation of the path with query string
func (*DeleteRouterURL) StringFull ¶
func (o *DeleteRouterURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteRouterURL) WithBasePath ¶
func (o *DeleteRouterURL) WithBasePath(bp string) *DeleteRouterURL
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 DeleteRouterUnauthorized ¶
type DeleteRouterUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
DeleteRouterUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response deleteRouterUnauthorized
func NewDeleteRouterUnauthorized ¶
func NewDeleteRouterUnauthorized() *DeleteRouterUnauthorized
NewDeleteRouterUnauthorized creates DeleteRouterUnauthorized with default headers values
func (*DeleteRouterUnauthorized) SetPayload ¶
func (o *DeleteRouterUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete router unauthorized response
func (*DeleteRouterUnauthorized) WithPayload ¶
func (o *DeleteRouterUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteRouterUnauthorized
WithPayload adds the payload to the delete router unauthorized response
func (*DeleteRouterUnauthorized) WriteResponse ¶
func (o *DeleteRouterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailRouter ¶
type DetailRouter struct { Context *middleware.Context Handler DetailRouterHandler }
DetailRouter swagger:route GET /routers/{id} Router detailRouter
Retrieves a single router ¶
Retrieves a single router by id. Requires admin access.
func NewDetailRouter ¶
func NewDetailRouter(ctx *middleware.Context, handler DetailRouterHandler) *DetailRouter
NewDetailRouter creates a new http.Handler for the detail router operation
func (*DetailRouter) ServeHTTP ¶
func (o *DetailRouter) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DetailRouterHandler ¶
type DetailRouterHandler interface {
Handle(DetailRouterParams) middleware.Responder
}
DetailRouterHandler interface for that can handle valid detail router params
type DetailRouterHandlerFunc ¶
type DetailRouterHandlerFunc func(DetailRouterParams) middleware.Responder
DetailRouterHandlerFunc turns a function with the right signature into a detail router handler
func (DetailRouterHandlerFunc) Handle ¶
func (fn DetailRouterHandlerFunc) Handle(params DetailRouterParams) middleware.Responder
Handle executing the request and returning a response
type DetailRouterNotFound ¶
type DetailRouterNotFound struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DetailRouterNotFound The requested resource does not exist
swagger:response detailRouterNotFound
func NewDetailRouterNotFound ¶
func NewDetailRouterNotFound() *DetailRouterNotFound
NewDetailRouterNotFound creates DetailRouterNotFound with default headers values
func (*DetailRouterNotFound) SetPayload ¶
func (o *DetailRouterNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the detail router not found response
func (*DetailRouterNotFound) WithPayload ¶
func (o *DetailRouterNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailRouterNotFound
WithPayload adds the payload to the detail router not found response
func (*DetailRouterNotFound) WriteResponse ¶
func (o *DetailRouterNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailRouterOK ¶
type DetailRouterOK struct { /* In: Body */ Payload *rest_model.DetailRouterEnvelope `json:"body,omitempty"` }
DetailRouterOK A single router
swagger:response detailRouterOK
func NewDetailRouterOK ¶
func NewDetailRouterOK() *DetailRouterOK
NewDetailRouterOK creates DetailRouterOK with default headers values
func (*DetailRouterOK) SetPayload ¶
func (o *DetailRouterOK) SetPayload(payload *rest_model.DetailRouterEnvelope)
SetPayload sets the payload to the detail router o k response
func (*DetailRouterOK) WithPayload ¶
func (o *DetailRouterOK) WithPayload(payload *rest_model.DetailRouterEnvelope) *DetailRouterOK
WithPayload adds the payload to the detail router o k response
func (*DetailRouterOK) WriteResponse ¶
func (o *DetailRouterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailRouterParams ¶
type DetailRouterParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the requested resource Required: true In: path */ ID string }
DetailRouterParams contains all the bound params for the detail router operation typically these are obtained from a http.Request
swagger:parameters detailRouter
func NewDetailRouterParams ¶
func NewDetailRouterParams() DetailRouterParams
NewDetailRouterParams creates a new DetailRouterParams object
There are no default values defined in the spec.
func (*DetailRouterParams) BindRequest ¶
func (o *DetailRouterParams) 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 NewDetailRouterParams() beforehand.
type DetailRouterURL ¶
type DetailRouterURL struct { ID string // contains filtered or unexported fields }
DetailRouterURL generates an URL for the detail router operation
func (*DetailRouterURL) Build ¶
func (o *DetailRouterURL) Build() (*url.URL, error)
Build a url path and query string
func (*DetailRouterURL) BuildFull ¶
func (o *DetailRouterURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DetailRouterURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DetailRouterURL) SetBasePath ¶
func (o *DetailRouterURL) 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 (*DetailRouterURL) String ¶
func (o *DetailRouterURL) String() string
String returns the string representation of the path with query string
func (*DetailRouterURL) StringFull ¶
func (o *DetailRouterURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DetailRouterURL) WithBasePath ¶
func (o *DetailRouterURL) WithBasePath(bp string) *DetailRouterURL
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 DetailRouterUnauthorized ¶
type DetailRouterUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
DetailRouterUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response detailRouterUnauthorized
func NewDetailRouterUnauthorized ¶
func NewDetailRouterUnauthorized() *DetailRouterUnauthorized
NewDetailRouterUnauthorized creates DetailRouterUnauthorized with default headers values
func (*DetailRouterUnauthorized) SetPayload ¶
func (o *DetailRouterUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the detail router unauthorized response
func (*DetailRouterUnauthorized) WithPayload ¶
func (o *DetailRouterUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailRouterUnauthorized
WithPayload adds the payload to the detail router unauthorized response
func (*DetailRouterUnauthorized) WriteResponse ¶
func (o *DetailRouterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRouterTerminators ¶
type ListRouterTerminators struct { Context *middleware.Context Handler ListRouterTerminatorsHandler }
ListRouterTerminators swagger:route GET /routers/{id}/terminators Router listRouterTerminators
List of terminators assigned to a router ¶
Retrieves a list of terminator resources that are assigned specific router; supports filtering, sorting, and pagination.
func NewListRouterTerminators ¶
func NewListRouterTerminators(ctx *middleware.Context, handler ListRouterTerminatorsHandler) *ListRouterTerminators
NewListRouterTerminators creates a new http.Handler for the list router terminators operation
func (*ListRouterTerminators) ServeHTTP ¶
func (o *ListRouterTerminators) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListRouterTerminatorsBadRequest ¶
type ListRouterTerminatorsBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
ListRouterTerminatorsBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response listRouterTerminatorsBadRequest
func NewListRouterTerminatorsBadRequest ¶
func NewListRouterTerminatorsBadRequest() *ListRouterTerminatorsBadRequest
NewListRouterTerminatorsBadRequest creates ListRouterTerminatorsBadRequest with default headers values
func (*ListRouterTerminatorsBadRequest) SetPayload ¶
func (o *ListRouterTerminatorsBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the list router terminators bad request response
func (*ListRouterTerminatorsBadRequest) WithPayload ¶
func (o *ListRouterTerminatorsBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *ListRouterTerminatorsBadRequest
WithPayload adds the payload to the list router terminators bad request response
func (*ListRouterTerminatorsBadRequest) WriteResponse ¶
func (o *ListRouterTerminatorsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRouterTerminatorsHandler ¶
type ListRouterTerminatorsHandler interface {
Handle(ListRouterTerminatorsParams) middleware.Responder
}
ListRouterTerminatorsHandler interface for that can handle valid list router terminators params
type ListRouterTerminatorsHandlerFunc ¶
type ListRouterTerminatorsHandlerFunc func(ListRouterTerminatorsParams) middleware.Responder
ListRouterTerminatorsHandlerFunc turns a function with the right signature into a list router terminators handler
func (ListRouterTerminatorsHandlerFunc) Handle ¶
func (fn ListRouterTerminatorsHandlerFunc) Handle(params ListRouterTerminatorsParams) middleware.Responder
Handle executing the request and returning a response
type ListRouterTerminatorsOK ¶
type ListRouterTerminatorsOK struct { /* In: Body */ Payload *rest_model.ListTerminatorsEnvelope `json:"body,omitempty"` }
ListRouterTerminatorsOK A list of terminators
swagger:response listRouterTerminatorsOK
func NewListRouterTerminatorsOK ¶
func NewListRouterTerminatorsOK() *ListRouterTerminatorsOK
NewListRouterTerminatorsOK creates ListRouterTerminatorsOK with default headers values
func (*ListRouterTerminatorsOK) SetPayload ¶
func (o *ListRouterTerminatorsOK) SetPayload(payload *rest_model.ListTerminatorsEnvelope)
SetPayload sets the payload to the list router terminators o k response
func (*ListRouterTerminatorsOK) WithPayload ¶
func (o *ListRouterTerminatorsOK) WithPayload(payload *rest_model.ListTerminatorsEnvelope) *ListRouterTerminatorsOK
WithPayload adds the payload to the list router terminators o k response
func (*ListRouterTerminatorsOK) WriteResponse ¶
func (o *ListRouterTerminatorsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRouterTerminatorsParams ¶
type ListRouterTerminatorsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: query */ Filter *string /*The id of the requested resource Required: true In: path */ ID string /* In: query */ Limit *int64 /* In: query */ Offset *int64 }
ListRouterTerminatorsParams contains all the bound params for the list router terminators operation typically these are obtained from a http.Request
swagger:parameters listRouterTerminators
func NewListRouterTerminatorsParams ¶
func NewListRouterTerminatorsParams() ListRouterTerminatorsParams
NewListRouterTerminatorsParams creates a new ListRouterTerminatorsParams object
There are no default values defined in the spec.
func (*ListRouterTerminatorsParams) BindRequest ¶
func (o *ListRouterTerminatorsParams) 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 NewListRouterTerminatorsParams() beforehand.
type ListRouterTerminatorsURL ¶
type ListRouterTerminatorsURL struct { ID string Filter *string Limit *int64 Offset *int64 // contains filtered or unexported fields }
ListRouterTerminatorsURL generates an URL for the list router terminators operation
func (*ListRouterTerminatorsURL) Build ¶
func (o *ListRouterTerminatorsURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListRouterTerminatorsURL) BuildFull ¶
func (o *ListRouterTerminatorsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListRouterTerminatorsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListRouterTerminatorsURL) SetBasePath ¶
func (o *ListRouterTerminatorsURL) 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 (*ListRouterTerminatorsURL) String ¶
func (o *ListRouterTerminatorsURL) String() string
String returns the string representation of the path with query string
func (*ListRouterTerminatorsURL) StringFull ¶
func (o *ListRouterTerminatorsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListRouterTerminatorsURL) WithBasePath ¶
func (o *ListRouterTerminatorsURL) WithBasePath(bp string) *ListRouterTerminatorsURL
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 ListRouterTerminatorsUnauthorized ¶
type ListRouterTerminatorsUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
ListRouterTerminatorsUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response listRouterTerminatorsUnauthorized
func NewListRouterTerminatorsUnauthorized ¶
func NewListRouterTerminatorsUnauthorized() *ListRouterTerminatorsUnauthorized
NewListRouterTerminatorsUnauthorized creates ListRouterTerminatorsUnauthorized with default headers values
func (*ListRouterTerminatorsUnauthorized) SetPayload ¶
func (o *ListRouterTerminatorsUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the list router terminators unauthorized response
func (*ListRouterTerminatorsUnauthorized) WithPayload ¶
func (o *ListRouterTerminatorsUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *ListRouterTerminatorsUnauthorized
WithPayload adds the payload to the list router terminators unauthorized response
func (*ListRouterTerminatorsUnauthorized) WriteResponse ¶
func (o *ListRouterTerminatorsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRouters ¶
type ListRouters struct { Context *middleware.Context Handler ListRoutersHandler }
ListRouters swagger:route GET /routers Router listRouters
List routers ¶
Retrieves a list of router resources; supports filtering, sorting, and pagination. Requires admin access.
func NewListRouters ¶
func NewListRouters(ctx *middleware.Context, handler ListRoutersHandler) *ListRouters
NewListRouters creates a new http.Handler for the list routers operation
func (*ListRouters) ServeHTTP ¶
func (o *ListRouters) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListRoutersHandler ¶
type ListRoutersHandler interface {
Handle(ListRoutersParams) middleware.Responder
}
ListRoutersHandler interface for that can handle valid list routers params
type ListRoutersHandlerFunc ¶
type ListRoutersHandlerFunc func(ListRoutersParams) middleware.Responder
ListRoutersHandlerFunc turns a function with the right signature into a list routers handler
func (ListRoutersHandlerFunc) Handle ¶
func (fn ListRoutersHandlerFunc) Handle(params ListRoutersParams) middleware.Responder
Handle executing the request and returning a response
type ListRoutersOK ¶
type ListRoutersOK struct { /* In: Body */ Payload *rest_model.ListRoutersEnvelope `json:"body,omitempty"` }
ListRoutersOK A list of routers
swagger:response listRoutersOK
func NewListRoutersOK ¶
func NewListRoutersOK() *ListRoutersOK
NewListRoutersOK creates ListRoutersOK with default headers values
func (*ListRoutersOK) SetPayload ¶
func (o *ListRoutersOK) SetPayload(payload *rest_model.ListRoutersEnvelope)
SetPayload sets the payload to the list routers o k response
func (*ListRoutersOK) WithPayload ¶
func (o *ListRoutersOK) WithPayload(payload *rest_model.ListRoutersEnvelope) *ListRoutersOK
WithPayload adds the payload to the list routers o k response
func (*ListRoutersOK) WriteResponse ¶
func (o *ListRoutersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRoutersParams ¶
type ListRoutersParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: query */ Filter *string /* In: query */ Limit *int64 /* In: query */ Offset *int64 }
ListRoutersParams contains all the bound params for the list routers operation typically these are obtained from a http.Request
swagger:parameters listRouters
func NewListRoutersParams ¶
func NewListRoutersParams() ListRoutersParams
NewListRoutersParams creates a new ListRoutersParams object
There are no default values defined in the spec.
func (*ListRoutersParams) BindRequest ¶
func (o *ListRoutersParams) 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 NewListRoutersParams() beforehand.
type ListRoutersURL ¶
type ListRoutersURL struct { Filter *string Limit *int64 Offset *int64 // contains filtered or unexported fields }
ListRoutersURL generates an URL for the list routers operation
func (*ListRoutersURL) Build ¶
func (o *ListRoutersURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListRoutersURL) BuildFull ¶
func (o *ListRoutersURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListRoutersURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListRoutersURL) SetBasePath ¶
func (o *ListRoutersURL) 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 (*ListRoutersURL) String ¶
func (o *ListRoutersURL) String() string
String returns the string representation of the path with query string
func (*ListRoutersURL) StringFull ¶
func (o *ListRoutersURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListRoutersURL) WithBasePath ¶
func (o *ListRoutersURL) WithBasePath(bp string) *ListRoutersURL
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 ListRoutersUnauthorized ¶
type ListRoutersUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
ListRoutersUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response listRoutersUnauthorized
func NewListRoutersUnauthorized ¶
func NewListRoutersUnauthorized() *ListRoutersUnauthorized
NewListRoutersUnauthorized creates ListRoutersUnauthorized with default headers values
func (*ListRoutersUnauthorized) SetPayload ¶
func (o *ListRoutersUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the list routers unauthorized response
func (*ListRoutersUnauthorized) WithPayload ¶
func (o *ListRoutersUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *ListRoutersUnauthorized
WithPayload adds the payload to the list routers unauthorized response
func (*ListRoutersUnauthorized) WriteResponse ¶
func (o *ListRoutersUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchRouter ¶
type PatchRouter struct { Context *middleware.Context Handler PatchRouterHandler }
PatchRouter swagger:route PATCH /routers/{id} Router patchRouter
Update the supplied fields on a router ¶
Update the supplied fields on a router. Requires admin access.
func NewPatchRouter ¶
func NewPatchRouter(ctx *middleware.Context, handler PatchRouterHandler) *PatchRouter
NewPatchRouter creates a new http.Handler for the patch router operation
func (*PatchRouter) ServeHTTP ¶
func (o *PatchRouter) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PatchRouterBadRequest ¶
type PatchRouterBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
PatchRouterBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response patchRouterBadRequest
func NewPatchRouterBadRequest ¶
func NewPatchRouterBadRequest() *PatchRouterBadRequest
NewPatchRouterBadRequest creates PatchRouterBadRequest with default headers values
func (*PatchRouterBadRequest) SetPayload ¶
func (o *PatchRouterBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the patch router bad request response
func (*PatchRouterBadRequest) WithPayload ¶
func (o *PatchRouterBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *PatchRouterBadRequest
WithPayload adds the payload to the patch router bad request response
func (*PatchRouterBadRequest) WriteResponse ¶
func (o *PatchRouterBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchRouterHandler ¶
type PatchRouterHandler interface {
Handle(PatchRouterParams) middleware.Responder
}
PatchRouterHandler interface for that can handle valid patch router params
type PatchRouterHandlerFunc ¶
type PatchRouterHandlerFunc func(PatchRouterParams) middleware.Responder
PatchRouterHandlerFunc turns a function with the right signature into a patch router handler
func (PatchRouterHandlerFunc) Handle ¶
func (fn PatchRouterHandlerFunc) Handle(params PatchRouterParams) middleware.Responder
Handle executing the request and returning a response
type PatchRouterNotFound ¶
type PatchRouterNotFound struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
PatchRouterNotFound The requested resource does not exist
swagger:response patchRouterNotFound
func NewPatchRouterNotFound ¶
func NewPatchRouterNotFound() *PatchRouterNotFound
NewPatchRouterNotFound creates PatchRouterNotFound with default headers values
func (*PatchRouterNotFound) SetPayload ¶
func (o *PatchRouterNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the patch router not found response
func (*PatchRouterNotFound) WithPayload ¶
func (o *PatchRouterNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *PatchRouterNotFound
WithPayload adds the payload to the patch router not found response
func (*PatchRouterNotFound) WriteResponse ¶
func (o *PatchRouterNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchRouterOK ¶
type PatchRouterOK struct { /* In: Body */ Payload *rest_model.Empty `json:"body,omitempty"` }
PatchRouterOK The patch request was successful and the resource has been altered
swagger:response patchRouterOK
func NewPatchRouterOK ¶
func NewPatchRouterOK() *PatchRouterOK
NewPatchRouterOK creates PatchRouterOK with default headers values
func (*PatchRouterOK) SetPayload ¶
func (o *PatchRouterOK) SetPayload(payload *rest_model.Empty)
SetPayload sets the payload to the patch router o k response
func (*PatchRouterOK) WithPayload ¶
func (o *PatchRouterOK) WithPayload(payload *rest_model.Empty) *PatchRouterOK
WithPayload adds the payload to the patch router o k response
func (*PatchRouterOK) WriteResponse ¶
func (o *PatchRouterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchRouterParams ¶
type PatchRouterParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the requested resource Required: true In: path */ ID string /*A router patch object Required: true In: body */ Router *rest_model.RouterPatch }
PatchRouterParams contains all the bound params for the patch router operation typically these are obtained from a http.Request
swagger:parameters patchRouter
func NewPatchRouterParams ¶
func NewPatchRouterParams() PatchRouterParams
NewPatchRouterParams creates a new PatchRouterParams object
There are no default values defined in the spec.
func (*PatchRouterParams) BindRequest ¶
func (o *PatchRouterParams) 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 NewPatchRouterParams() beforehand.
type PatchRouterURL ¶
type PatchRouterURL struct { ID string // contains filtered or unexported fields }
PatchRouterURL generates an URL for the patch router operation
func (*PatchRouterURL) Build ¶
func (o *PatchRouterURL) Build() (*url.URL, error)
Build a url path and query string
func (*PatchRouterURL) BuildFull ¶
func (o *PatchRouterURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PatchRouterURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PatchRouterURL) SetBasePath ¶
func (o *PatchRouterURL) 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 (*PatchRouterURL) String ¶
func (o *PatchRouterURL) String() string
String returns the string representation of the path with query string
func (*PatchRouterURL) StringFull ¶
func (o *PatchRouterURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PatchRouterURL) WithBasePath ¶
func (o *PatchRouterURL) WithBasePath(bp string) *PatchRouterURL
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 PatchRouterUnauthorized ¶
type PatchRouterUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
PatchRouterUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response patchRouterUnauthorized
func NewPatchRouterUnauthorized ¶
func NewPatchRouterUnauthorized() *PatchRouterUnauthorized
NewPatchRouterUnauthorized creates PatchRouterUnauthorized with default headers values
func (*PatchRouterUnauthorized) SetPayload ¶
func (o *PatchRouterUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the patch router unauthorized response
func (*PatchRouterUnauthorized) WithPayload ¶
func (o *PatchRouterUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *PatchRouterUnauthorized
WithPayload adds the payload to the patch router unauthorized response
func (*PatchRouterUnauthorized) WriteResponse ¶
func (o *PatchRouterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRouter ¶
type UpdateRouter struct { Context *middleware.Context Handler UpdateRouterHandler }
UpdateRouter swagger:route PUT /routers/{id} Router updateRouter
Update all fields on a router ¶
Update all fields on a router by id. Requires admin access.
func NewUpdateRouter ¶
func NewUpdateRouter(ctx *middleware.Context, handler UpdateRouterHandler) *UpdateRouter
NewUpdateRouter creates a new http.Handler for the update router operation
func (*UpdateRouter) ServeHTTP ¶
func (o *UpdateRouter) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateRouterBadRequest ¶
type UpdateRouterBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
UpdateRouterBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
swagger:response updateRouterBadRequest
func NewUpdateRouterBadRequest ¶
func NewUpdateRouterBadRequest() *UpdateRouterBadRequest
NewUpdateRouterBadRequest creates UpdateRouterBadRequest with default headers values
func (*UpdateRouterBadRequest) SetPayload ¶
func (o *UpdateRouterBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the update router bad request response
func (*UpdateRouterBadRequest) WithPayload ¶
func (o *UpdateRouterBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *UpdateRouterBadRequest
WithPayload adds the payload to the update router bad request response
func (*UpdateRouterBadRequest) WriteResponse ¶
func (o *UpdateRouterBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRouterHandler ¶
type UpdateRouterHandler interface {
Handle(UpdateRouterParams) middleware.Responder
}
UpdateRouterHandler interface for that can handle valid update router params
type UpdateRouterHandlerFunc ¶
type UpdateRouterHandlerFunc func(UpdateRouterParams) middleware.Responder
UpdateRouterHandlerFunc turns a function with the right signature into a update router handler
func (UpdateRouterHandlerFunc) Handle ¶
func (fn UpdateRouterHandlerFunc) Handle(params UpdateRouterParams) middleware.Responder
Handle executing the request and returning a response
type UpdateRouterNotFound ¶
type UpdateRouterNotFound struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
UpdateRouterNotFound The requested resource does not exist
swagger:response updateRouterNotFound
func NewUpdateRouterNotFound ¶
func NewUpdateRouterNotFound() *UpdateRouterNotFound
NewUpdateRouterNotFound creates UpdateRouterNotFound with default headers values
func (*UpdateRouterNotFound) SetPayload ¶
func (o *UpdateRouterNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the update router not found response
func (*UpdateRouterNotFound) WithPayload ¶
func (o *UpdateRouterNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *UpdateRouterNotFound
WithPayload adds the payload to the update router not found response
func (*UpdateRouterNotFound) WriteResponse ¶
func (o *UpdateRouterNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRouterOK ¶
type UpdateRouterOK struct { /* In: Body */ Payload *rest_model.Empty `json:"body,omitempty"` }
UpdateRouterOK The update request was successful and the resource has been altered
swagger:response updateRouterOK
func NewUpdateRouterOK ¶
func NewUpdateRouterOK() *UpdateRouterOK
NewUpdateRouterOK creates UpdateRouterOK with default headers values
func (*UpdateRouterOK) SetPayload ¶
func (o *UpdateRouterOK) SetPayload(payload *rest_model.Empty)
SetPayload sets the payload to the update router o k response
func (*UpdateRouterOK) WithPayload ¶
func (o *UpdateRouterOK) WithPayload(payload *rest_model.Empty) *UpdateRouterOK
WithPayload adds the payload to the update router o k response
func (*UpdateRouterOK) WriteResponse ¶
func (o *UpdateRouterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRouterParams ¶
type UpdateRouterParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the requested resource Required: true In: path */ ID string /*A router update object Required: true In: body */ Router *rest_model.RouterUpdate }
UpdateRouterParams contains all the bound params for the update router operation typically these are obtained from a http.Request
swagger:parameters updateRouter
func NewUpdateRouterParams ¶
func NewUpdateRouterParams() UpdateRouterParams
NewUpdateRouterParams creates a new UpdateRouterParams object
There are no default values defined in the spec.
func (*UpdateRouterParams) BindRequest ¶
func (o *UpdateRouterParams) 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 NewUpdateRouterParams() beforehand.
type UpdateRouterURL ¶
type UpdateRouterURL struct { ID string // contains filtered or unexported fields }
UpdateRouterURL generates an URL for the update router operation
func (*UpdateRouterURL) Build ¶
func (o *UpdateRouterURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateRouterURL) BuildFull ¶
func (o *UpdateRouterURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateRouterURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateRouterURL) SetBasePath ¶
func (o *UpdateRouterURL) 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 (*UpdateRouterURL) String ¶
func (o *UpdateRouterURL) String() string
String returns the string representation of the path with query string
func (*UpdateRouterURL) StringFull ¶
func (o *UpdateRouterURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateRouterURL) WithBasePath ¶
func (o *UpdateRouterURL) WithBasePath(bp string) *UpdateRouterURL
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 UpdateRouterUnauthorized ¶
type UpdateRouterUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
UpdateRouterUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response updateRouterUnauthorized
func NewUpdateRouterUnauthorized ¶
func NewUpdateRouterUnauthorized() *UpdateRouterUnauthorized
NewUpdateRouterUnauthorized creates UpdateRouterUnauthorized with default headers values
func (*UpdateRouterUnauthorized) SetPayload ¶
func (o *UpdateRouterUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the update router unauthorized response
func (*UpdateRouterUnauthorized) WithPayload ¶
func (o *UpdateRouterUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *UpdateRouterUnauthorized
WithPayload adds the payload to the update router unauthorized response
func (*UpdateRouterUnauthorized) WriteResponse ¶
func (o *UpdateRouterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- create_router.go
- create_router_parameters.go
- create_router_responses.go
- create_router_urlbuilder.go
- delete_router.go
- delete_router_parameters.go
- delete_router_responses.go
- delete_router_urlbuilder.go
- detail_router.go
- detail_router_parameters.go
- detail_router_responses.go
- detail_router_urlbuilder.go
- list_router_terminators.go
- list_router_terminators_parameters.go
- list_router_terminators_responses.go
- list_router_terminators_urlbuilder.go
- list_routers.go
- list_routers_parameters.go
- list_routers_responses.go
- list_routers_urlbuilder.go
- patch_router.go
- patch_router_parameters.go
- patch_router_responses.go
- patch_router_urlbuilder.go
- update_router.go
- update_router_parameters.go
- update_router_responses.go
- update_router_urlbuilder.go