Documentation ¶
Index ¶
- Constants
- type DeleteLink
- type DeleteLinkBadRequest
- type DeleteLinkHandler
- type DeleteLinkHandlerFunc
- type DeleteLinkOK
- type DeleteLinkParams
- type DeleteLinkURL
- func (o *DeleteLinkURL) Build() (*url.URL, error)
- func (o *DeleteLinkURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteLinkURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteLinkURL) SetBasePath(bp string)
- func (o *DeleteLinkURL) String() string
- func (o *DeleteLinkURL) StringFull(scheme, host string) string
- func (o *DeleteLinkURL) WithBasePath(bp string) *DeleteLinkURL
- type DeleteLinkUnauthorized
- type DetailLink
- type DetailLinkHandler
- type DetailLinkHandlerFunc
- type DetailLinkNotFound
- type DetailLinkOK
- type DetailLinkParams
- type DetailLinkURL
- func (o *DetailLinkURL) Build() (*url.URL, error)
- func (o *DetailLinkURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DetailLinkURL) Must(u *url.URL, err error) *url.URL
- func (o *DetailLinkURL) SetBasePath(bp string)
- func (o *DetailLinkURL) String() string
- func (o *DetailLinkURL) StringFull(scheme, host string) string
- func (o *DetailLinkURL) WithBasePath(bp string) *DetailLinkURL
- type DetailLinkUnauthorized
- type ListLinks
- type ListLinksHandler
- type ListLinksHandlerFunc
- type ListLinksOK
- type ListLinksParams
- type ListLinksURL
- func (o *ListLinksURL) Build() (*url.URL, error)
- func (o *ListLinksURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListLinksURL) Must(u *url.URL, err error) *url.URL
- func (o *ListLinksURL) SetBasePath(bp string)
- func (o *ListLinksURL) String() string
- func (o *ListLinksURL) StringFull(scheme, host string) string
- func (o *ListLinksURL) WithBasePath(bp string) *ListLinksURL
- type ListLinksUnauthorized
- type PatchLink
- type PatchLinkBadRequest
- type PatchLinkHandler
- type PatchLinkHandlerFunc
- type PatchLinkNotFound
- type PatchLinkOK
- type PatchLinkParams
- type PatchLinkURL
- func (o *PatchLinkURL) Build() (*url.URL, error)
- func (o *PatchLinkURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PatchLinkURL) Must(u *url.URL, err error) *url.URL
- func (o *PatchLinkURL) SetBasePath(bp string)
- func (o *PatchLinkURL) String() string
- func (o *PatchLinkURL) StringFull(scheme, host string) string
- func (o *PatchLinkURL) WithBasePath(bp string) *PatchLinkURL
- type PatchLinkUnauthorized
Constants ¶
const DeleteLinkBadRequestCode int = 400
DeleteLinkBadRequestCode is the HTTP code returned for type DeleteLinkBadRequest
const DeleteLinkOKCode int = 200
DeleteLinkOKCode is the HTTP code returned for type DeleteLinkOK
DeleteLinkUnauthorizedCode is the HTTP code returned for type DeleteLinkUnauthorized
const DetailLinkNotFoundCode int = 404
DetailLinkNotFoundCode is the HTTP code returned for type DetailLinkNotFound
const DetailLinkOKCode int = 200
DetailLinkOKCode is the HTTP code returned for type DetailLinkOK
DetailLinkUnauthorizedCode is the HTTP code returned for type DetailLinkUnauthorized
const ListLinksOKCode int = 200
ListLinksOKCode is the HTTP code returned for type ListLinksOK
ListLinksUnauthorizedCode is the HTTP code returned for type ListLinksUnauthorized
const PatchLinkBadRequestCode int = 400
PatchLinkBadRequestCode is the HTTP code returned for type PatchLinkBadRequest
const PatchLinkNotFoundCode int = 404
PatchLinkNotFoundCode is the HTTP code returned for type PatchLinkNotFound
const PatchLinkOKCode int = 200
PatchLinkOKCode is the HTTP code returned for type PatchLinkOK
PatchLinkUnauthorizedCode is the HTTP code returned for type PatchLinkUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteLink ¶ added in v0.17.121
type DeleteLink struct { Context *middleware.Context Handler DeleteLinkHandler }
DeleteLink swagger:route DELETE /links/{id} Link deleteLink
Delete a link ¶
Delete a link by id. Requires admin access.
func NewDeleteLink ¶ added in v0.17.121
func NewDeleteLink(ctx *middleware.Context, handler DeleteLinkHandler) *DeleteLink
NewDeleteLink creates a new http.Handler for the delete link operation
func (*DeleteLink) ServeHTTP ¶ added in v0.17.121
func (o *DeleteLink) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteLinkBadRequest ¶ added in v0.17.121
type DeleteLinkBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DeleteLinkBadRequest 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 deleteLinkBadRequest
func NewDeleteLinkBadRequest ¶ added in v0.17.121
func NewDeleteLinkBadRequest() *DeleteLinkBadRequest
NewDeleteLinkBadRequest creates DeleteLinkBadRequest with default headers values
func (*DeleteLinkBadRequest) SetPayload ¶ added in v0.17.121
func (o *DeleteLinkBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete link bad request response
func (*DeleteLinkBadRequest) WithPayload ¶ added in v0.17.121
func (o *DeleteLinkBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteLinkBadRequest
WithPayload adds the payload to the delete link bad request response
func (*DeleteLinkBadRequest) WriteResponse ¶ added in v0.17.121
func (o *DeleteLinkBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteLinkHandler ¶ added in v0.17.121
type DeleteLinkHandler interface {
Handle(DeleteLinkParams) middleware.Responder
}
DeleteLinkHandler interface for that can handle valid delete link params
type DeleteLinkHandlerFunc ¶ added in v0.17.121
type DeleteLinkHandlerFunc func(DeleteLinkParams) middleware.Responder
DeleteLinkHandlerFunc turns a function with the right signature into a delete link handler
func (DeleteLinkHandlerFunc) Handle ¶ added in v0.17.121
func (fn DeleteLinkHandlerFunc) Handle(params DeleteLinkParams) middleware.Responder
Handle executing the request and returning a response
type DeleteLinkOK ¶ added in v0.17.121
type DeleteLinkOK struct { /* In: Body */ Payload *rest_model.Empty `json:"body,omitempty"` }
DeleteLinkOK The delete request was successful and the resource has been removed
swagger:response deleteLinkOK
func NewDeleteLinkOK ¶ added in v0.17.121
func NewDeleteLinkOK() *DeleteLinkOK
NewDeleteLinkOK creates DeleteLinkOK with default headers values
func (*DeleteLinkOK) SetPayload ¶ added in v0.17.121
func (o *DeleteLinkOK) SetPayload(payload *rest_model.Empty)
SetPayload sets the payload to the delete link o k response
func (*DeleteLinkOK) WithPayload ¶ added in v0.17.121
func (o *DeleteLinkOK) WithPayload(payload *rest_model.Empty) *DeleteLinkOK
WithPayload adds the payload to the delete link o k response
func (*DeleteLinkOK) WriteResponse ¶ added in v0.17.121
func (o *DeleteLinkOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteLinkParams ¶ added in v0.17.121
type DeleteLinkParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the requested resource Required: true In: path */ ID string }
DeleteLinkParams contains all the bound params for the delete link operation typically these are obtained from a http.Request
swagger:parameters deleteLink
func NewDeleteLinkParams ¶ added in v0.17.121
func NewDeleteLinkParams() DeleteLinkParams
NewDeleteLinkParams creates a new DeleteLinkParams object
There are no default values defined in the spec.
func (*DeleteLinkParams) BindRequest ¶ added in v0.17.121
func (o *DeleteLinkParams) 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 NewDeleteLinkParams() beforehand.
type DeleteLinkURL ¶ added in v0.17.121
type DeleteLinkURL struct { ID string // contains filtered or unexported fields }
DeleteLinkURL generates an URL for the delete link operation
func (*DeleteLinkURL) Build ¶ added in v0.17.121
func (o *DeleteLinkURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteLinkURL) BuildFull ¶ added in v0.17.121
func (o *DeleteLinkURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteLinkURL) Must ¶ added in v0.17.121
Must is a helper function to panic when the url builder returns an error
func (*DeleteLinkURL) SetBasePath ¶ added in v0.17.121
func (o *DeleteLinkURL) 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 (*DeleteLinkURL) String ¶ added in v0.17.121
func (o *DeleteLinkURL) String() string
String returns the string representation of the path with query string
func (*DeleteLinkURL) StringFull ¶ added in v0.17.121
func (o *DeleteLinkURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteLinkURL) WithBasePath ¶ added in v0.17.121
func (o *DeleteLinkURL) WithBasePath(bp string) *DeleteLinkURL
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 DeleteLinkUnauthorized ¶ added in v0.17.121
type DeleteLinkUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
DeleteLinkUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response deleteLinkUnauthorized
func NewDeleteLinkUnauthorized ¶ added in v0.17.121
func NewDeleteLinkUnauthorized() *DeleteLinkUnauthorized
NewDeleteLinkUnauthorized creates DeleteLinkUnauthorized with default headers values
func (*DeleteLinkUnauthorized) SetPayload ¶ added in v0.17.121
func (o *DeleteLinkUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete link unauthorized response
func (*DeleteLinkUnauthorized) WithPayload ¶ added in v0.17.121
func (o *DeleteLinkUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteLinkUnauthorized
WithPayload adds the payload to the delete link unauthorized response
func (*DeleteLinkUnauthorized) WriteResponse ¶ added in v0.17.121
func (o *DeleteLinkUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailLink ¶
type DetailLink struct { Context *middleware.Context Handler DetailLinkHandler }
DetailLink swagger:route GET /links/{id} Link detailLink
Retrieves a single link ¶
Retrieves a single link by id. Requires admin access.
func NewDetailLink ¶
func NewDetailLink(ctx *middleware.Context, handler DetailLinkHandler) *DetailLink
NewDetailLink creates a new http.Handler for the detail link operation
func (*DetailLink) ServeHTTP ¶
func (o *DetailLink) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DetailLinkHandler ¶
type DetailLinkHandler interface {
Handle(DetailLinkParams) middleware.Responder
}
DetailLinkHandler interface for that can handle valid detail link params
type DetailLinkHandlerFunc ¶
type DetailLinkHandlerFunc func(DetailLinkParams) middleware.Responder
DetailLinkHandlerFunc turns a function with the right signature into a detail link handler
func (DetailLinkHandlerFunc) Handle ¶
func (fn DetailLinkHandlerFunc) Handle(params DetailLinkParams) middleware.Responder
Handle executing the request and returning a response
type DetailLinkNotFound ¶
type DetailLinkNotFound struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DetailLinkNotFound The requested resource does not exist
swagger:response detailLinkNotFound
func NewDetailLinkNotFound ¶
func NewDetailLinkNotFound() *DetailLinkNotFound
NewDetailLinkNotFound creates DetailLinkNotFound with default headers values
func (*DetailLinkNotFound) SetPayload ¶
func (o *DetailLinkNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the detail link not found response
func (*DetailLinkNotFound) WithPayload ¶
func (o *DetailLinkNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailLinkNotFound
WithPayload adds the payload to the detail link not found response
func (*DetailLinkNotFound) WriteResponse ¶
func (o *DetailLinkNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailLinkOK ¶
type DetailLinkOK struct { /* In: Body */ Payload *rest_model.DetailLinkEnvelope `json:"body,omitempty"` }
DetailLinkOK A single link
swagger:response detailLinkOK
func NewDetailLinkOK ¶
func NewDetailLinkOK() *DetailLinkOK
NewDetailLinkOK creates DetailLinkOK with default headers values
func (*DetailLinkOK) SetPayload ¶
func (o *DetailLinkOK) SetPayload(payload *rest_model.DetailLinkEnvelope)
SetPayload sets the payload to the detail link o k response
func (*DetailLinkOK) WithPayload ¶
func (o *DetailLinkOK) WithPayload(payload *rest_model.DetailLinkEnvelope) *DetailLinkOK
WithPayload adds the payload to the detail link o k response
func (*DetailLinkOK) WriteResponse ¶
func (o *DetailLinkOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DetailLinkParams ¶
type DetailLinkParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the requested resource Required: true In: path */ ID string }
DetailLinkParams contains all the bound params for the detail link operation typically these are obtained from a http.Request
swagger:parameters detailLink
func NewDetailLinkParams ¶
func NewDetailLinkParams() DetailLinkParams
NewDetailLinkParams creates a new DetailLinkParams object
There are no default values defined in the spec.
func (*DetailLinkParams) BindRequest ¶
func (o *DetailLinkParams) 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 NewDetailLinkParams() beforehand.
type DetailLinkURL ¶
type DetailLinkURL struct { ID string // contains filtered or unexported fields }
DetailLinkURL generates an URL for the detail link operation
func (*DetailLinkURL) Build ¶
func (o *DetailLinkURL) Build() (*url.URL, error)
Build a url path and query string
func (*DetailLinkURL) BuildFull ¶
func (o *DetailLinkURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DetailLinkURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DetailLinkURL) SetBasePath ¶
func (o *DetailLinkURL) 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 (*DetailLinkURL) String ¶
func (o *DetailLinkURL) String() string
String returns the string representation of the path with query string
func (*DetailLinkURL) StringFull ¶
func (o *DetailLinkURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DetailLinkURL) WithBasePath ¶
func (o *DetailLinkURL) WithBasePath(bp string) *DetailLinkURL
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 DetailLinkUnauthorized ¶
type DetailLinkUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
DetailLinkUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response detailLinkUnauthorized
func NewDetailLinkUnauthorized ¶
func NewDetailLinkUnauthorized() *DetailLinkUnauthorized
NewDetailLinkUnauthorized creates DetailLinkUnauthorized with default headers values
func (*DetailLinkUnauthorized) SetPayload ¶
func (o *DetailLinkUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the detail link unauthorized response
func (*DetailLinkUnauthorized) WithPayload ¶
func (o *DetailLinkUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailLinkUnauthorized
WithPayload adds the payload to the detail link unauthorized response
func (*DetailLinkUnauthorized) WriteResponse ¶
func (o *DetailLinkUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListLinks ¶
type ListLinks struct { Context *middleware.Context Handler ListLinksHandler }
ListLinks swagger:route GET /links Link listLinks
List links ¶
Retrieves a list of link resources; does not supports filtering, sorting, or pagination. Requires admin access.
func NewListLinks ¶
func NewListLinks(ctx *middleware.Context, handler ListLinksHandler) *ListLinks
NewListLinks creates a new http.Handler for the list links operation
type ListLinksHandler ¶
type ListLinksHandler interface {
Handle(ListLinksParams) middleware.Responder
}
ListLinksHandler interface for that can handle valid list links params
type ListLinksHandlerFunc ¶
type ListLinksHandlerFunc func(ListLinksParams) middleware.Responder
ListLinksHandlerFunc turns a function with the right signature into a list links handler
func (ListLinksHandlerFunc) Handle ¶
func (fn ListLinksHandlerFunc) Handle(params ListLinksParams) middleware.Responder
Handle executing the request and returning a response
type ListLinksOK ¶
type ListLinksOK struct { /* In: Body */ Payload *rest_model.ListLinksEnvelope `json:"body,omitempty"` }
ListLinksOK A list of links
swagger:response listLinksOK
func NewListLinksOK ¶
func NewListLinksOK() *ListLinksOK
NewListLinksOK creates ListLinksOK with default headers values
func (*ListLinksOK) SetPayload ¶
func (o *ListLinksOK) SetPayload(payload *rest_model.ListLinksEnvelope)
SetPayload sets the payload to the list links o k response
func (*ListLinksOK) WithPayload ¶
func (o *ListLinksOK) WithPayload(payload *rest_model.ListLinksEnvelope) *ListLinksOK
WithPayload adds the payload to the list links o k response
func (*ListLinksOK) WriteResponse ¶
func (o *ListLinksOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListLinksParams ¶
ListLinksParams contains all the bound params for the list links operation typically these are obtained from a http.Request
swagger:parameters listLinks
func NewListLinksParams ¶
func NewListLinksParams() ListLinksParams
NewListLinksParams creates a new ListLinksParams object
There are no default values defined in the spec.
func (*ListLinksParams) BindRequest ¶
func (o *ListLinksParams) 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 NewListLinksParams() beforehand.
type ListLinksURL ¶
type ListLinksURL struct {
// contains filtered or unexported fields
}
ListLinksURL generates an URL for the list links operation
func (*ListLinksURL) Build ¶
func (o *ListLinksURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListLinksURL) BuildFull ¶
func (o *ListLinksURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListLinksURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListLinksURL) SetBasePath ¶
func (o *ListLinksURL) 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 (*ListLinksURL) String ¶
func (o *ListLinksURL) String() string
String returns the string representation of the path with query string
func (*ListLinksURL) StringFull ¶
func (o *ListLinksURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListLinksURL) WithBasePath ¶
func (o *ListLinksURL) WithBasePath(bp string) *ListLinksURL
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 ListLinksUnauthorized ¶
type ListLinksUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
ListLinksUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response listLinksUnauthorized
func NewListLinksUnauthorized ¶
func NewListLinksUnauthorized() *ListLinksUnauthorized
NewListLinksUnauthorized creates ListLinksUnauthorized with default headers values
func (*ListLinksUnauthorized) SetPayload ¶
func (o *ListLinksUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the list links unauthorized response
func (*ListLinksUnauthorized) WithPayload ¶
func (o *ListLinksUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *ListLinksUnauthorized
WithPayload adds the payload to the list links unauthorized response
func (*ListLinksUnauthorized) WriteResponse ¶
func (o *ListLinksUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchLink ¶
type PatchLink struct { Context *middleware.Context Handler PatchLinkHandler }
PatchLink swagger:route PATCH /links/{id} Link patchLink
Update the supplied fields on a link ¶
Update the supplied fields on a link. Requires admin access.
func NewPatchLink ¶
func NewPatchLink(ctx *middleware.Context, handler PatchLinkHandler) *PatchLink
NewPatchLink creates a new http.Handler for the patch link operation
type PatchLinkBadRequest ¶
type PatchLinkBadRequest struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
PatchLinkBadRequest 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 patchLinkBadRequest
func NewPatchLinkBadRequest ¶
func NewPatchLinkBadRequest() *PatchLinkBadRequest
NewPatchLinkBadRequest creates PatchLinkBadRequest with default headers values
func (*PatchLinkBadRequest) SetPayload ¶
func (o *PatchLinkBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the patch link bad request response
func (*PatchLinkBadRequest) WithPayload ¶
func (o *PatchLinkBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *PatchLinkBadRequest
WithPayload adds the payload to the patch link bad request response
func (*PatchLinkBadRequest) WriteResponse ¶
func (o *PatchLinkBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchLinkHandler ¶
type PatchLinkHandler interface {
Handle(PatchLinkParams) middleware.Responder
}
PatchLinkHandler interface for that can handle valid patch link params
type PatchLinkHandlerFunc ¶
type PatchLinkHandlerFunc func(PatchLinkParams) middleware.Responder
PatchLinkHandlerFunc turns a function with the right signature into a patch link handler
func (PatchLinkHandlerFunc) Handle ¶
func (fn PatchLinkHandlerFunc) Handle(params PatchLinkParams) middleware.Responder
Handle executing the request and returning a response
type PatchLinkNotFound ¶
type PatchLinkNotFound struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
PatchLinkNotFound The requested resource does not exist
swagger:response patchLinkNotFound
func NewPatchLinkNotFound ¶
func NewPatchLinkNotFound() *PatchLinkNotFound
NewPatchLinkNotFound creates PatchLinkNotFound with default headers values
func (*PatchLinkNotFound) SetPayload ¶
func (o *PatchLinkNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the patch link not found response
func (*PatchLinkNotFound) WithPayload ¶
func (o *PatchLinkNotFound) WithPayload(payload *rest_model.APIErrorEnvelope) *PatchLinkNotFound
WithPayload adds the payload to the patch link not found response
func (*PatchLinkNotFound) WriteResponse ¶
func (o *PatchLinkNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchLinkOK ¶
type PatchLinkOK struct { /* In: Body */ Payload *rest_model.Empty `json:"body,omitempty"` }
PatchLinkOK The patch request was successful and the resource has been altered
swagger:response patchLinkOK
func NewPatchLinkOK ¶
func NewPatchLinkOK() *PatchLinkOK
NewPatchLinkOK creates PatchLinkOK with default headers values
func (*PatchLinkOK) SetPayload ¶
func (o *PatchLinkOK) SetPayload(payload *rest_model.Empty)
SetPayload sets the payload to the patch link o k response
func (*PatchLinkOK) WithPayload ¶
func (o *PatchLinkOK) WithPayload(payload *rest_model.Empty) *PatchLinkOK
WithPayload adds the payload to the patch link o k response
func (*PatchLinkOK) WriteResponse ¶
func (o *PatchLinkOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchLinkParams ¶
type PatchLinkParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the requested resource Required: true In: path */ ID string /*A link patch object Required: true In: body */ Link *rest_model.LinkPatch }
PatchLinkParams contains all the bound params for the patch link operation typically these are obtained from a http.Request
swagger:parameters patchLink
func NewPatchLinkParams ¶
func NewPatchLinkParams() PatchLinkParams
NewPatchLinkParams creates a new PatchLinkParams object
There are no default values defined in the spec.
func (*PatchLinkParams) BindRequest ¶
func (o *PatchLinkParams) 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 NewPatchLinkParams() beforehand.
type PatchLinkURL ¶
type PatchLinkURL struct { ID string // contains filtered or unexported fields }
PatchLinkURL generates an URL for the patch link operation
func (*PatchLinkURL) Build ¶
func (o *PatchLinkURL) Build() (*url.URL, error)
Build a url path and query string
func (*PatchLinkURL) BuildFull ¶
func (o *PatchLinkURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PatchLinkURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PatchLinkURL) SetBasePath ¶
func (o *PatchLinkURL) 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 (*PatchLinkURL) String ¶
func (o *PatchLinkURL) String() string
String returns the string representation of the path with query string
func (*PatchLinkURL) StringFull ¶
func (o *PatchLinkURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PatchLinkURL) WithBasePath ¶
func (o *PatchLinkURL) WithBasePath(bp string) *PatchLinkURL
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 PatchLinkUnauthorized ¶
type PatchLinkUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
PatchLinkUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response patchLinkUnauthorized
func NewPatchLinkUnauthorized ¶
func NewPatchLinkUnauthorized() *PatchLinkUnauthorized
NewPatchLinkUnauthorized creates PatchLinkUnauthorized with default headers values
func (*PatchLinkUnauthorized) SetPayload ¶
func (o *PatchLinkUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the patch link unauthorized response
func (*PatchLinkUnauthorized) WithPayload ¶
func (o *PatchLinkUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *PatchLinkUnauthorized
WithPayload adds the payload to the patch link unauthorized response
func (*PatchLinkUnauthorized) WriteResponse ¶
func (o *PatchLinkUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- delete_link.go
- delete_link_parameters.go
- delete_link_responses.go
- delete_link_urlbuilder.go
- detail_link.go
- detail_link_parameters.go
- detail_link_responses.go
- detail_link_urlbuilder.go
- list_links.go
- list_links_parameters.go
- list_links_responses.go
- list_links_urlbuilder.go
- patch_link.go
- patch_link_parameters.go
- patch_link_responses.go
- patch_link_urlbuilder.go