Documentation ¶
Index ¶
- Constants
- type DeleteLink
- type DeleteLinkBadRequest
- type DeleteLinkHandler
- type DeleteLinkHandlerFunc
- type DeleteLinkOK
- type DeleteLinkParams
- type DeleteLinkTooManyRequests
- 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 DetailLinkTooManyRequests
- 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 ListLinksTooManyRequests
- 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 PatchLinkTooManyRequests
- 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
const DeleteLinkTooManyRequestsCode int = 429
DeleteLinkTooManyRequestsCode is the HTTP code returned for type DeleteLinkTooManyRequests
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
const DetailLinkTooManyRequestsCode int = 429
DetailLinkTooManyRequestsCode is the HTTP code returned for type DetailLinkTooManyRequests
DetailLinkUnauthorizedCode is the HTTP code returned for type DetailLinkUnauthorized
const ListLinksOKCode int = 200
ListLinksOKCode is the HTTP code returned for type ListLinksOK
const ListLinksTooManyRequestsCode int = 429
ListLinksTooManyRequestsCode is the HTTP code returned for type ListLinksTooManyRequests
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
const PatchLinkTooManyRequestsCode int = 429
PatchLinkTooManyRequestsCode is the HTTP code returned for type PatchLinkTooManyRequests
PatchLinkUnauthorizedCode is the HTTP code returned for type PatchLinkUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteLink ¶
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 ¶
func NewDeleteLink(ctx *middleware.Context, handler DeleteLinkHandler) *DeleteLink
NewDeleteLink creates a new http.Handler for the delete link operation
func (*DeleteLink) ServeHTTP ¶
func (o *DeleteLink) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteLinkBadRequest ¶
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 ¶
func NewDeleteLinkBadRequest() *DeleteLinkBadRequest
NewDeleteLinkBadRequest creates DeleteLinkBadRequest with default headers values
func (*DeleteLinkBadRequest) SetPayload ¶
func (o *DeleteLinkBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete link bad request response
func (*DeleteLinkBadRequest) WithPayload ¶
func (o *DeleteLinkBadRequest) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteLinkBadRequest
WithPayload adds the payload to the delete link bad request response
func (*DeleteLinkBadRequest) WriteResponse ¶
func (o *DeleteLinkBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteLinkHandler ¶
type DeleteLinkHandler interface {
Handle(DeleteLinkParams) middleware.Responder
}
DeleteLinkHandler interface for that can handle valid delete link params
type DeleteLinkHandlerFunc ¶
type DeleteLinkHandlerFunc func(DeleteLinkParams) middleware.Responder
DeleteLinkHandlerFunc turns a function with the right signature into a delete link handler
func (DeleteLinkHandlerFunc) Handle ¶
func (fn DeleteLinkHandlerFunc) Handle(params DeleteLinkParams) middleware.Responder
Handle executing the request and returning a response
type DeleteLinkOK ¶
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 ¶
func NewDeleteLinkOK() *DeleteLinkOK
NewDeleteLinkOK creates DeleteLinkOK with default headers values
func (*DeleteLinkOK) SetPayload ¶
func (o *DeleteLinkOK) SetPayload(payload *rest_model.Empty)
SetPayload sets the payload to the delete link o k response
func (*DeleteLinkOK) WithPayload ¶
func (o *DeleteLinkOK) WithPayload(payload *rest_model.Empty) *DeleteLinkOK
WithPayload adds the payload to the delete link o k response
func (*DeleteLinkOK) WriteResponse ¶
func (o *DeleteLinkOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteLinkParams ¶
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 ¶
func NewDeleteLinkParams() DeleteLinkParams
NewDeleteLinkParams creates a new DeleteLinkParams object
There are no default values defined in the spec.
func (*DeleteLinkParams) BindRequest ¶
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 DeleteLinkTooManyRequests ¶ added in v0.31.0
type DeleteLinkTooManyRequests struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DeleteLinkTooManyRequests The resource requested is rate limited and the rate limit has been exceeded
swagger:response deleteLinkTooManyRequests
func NewDeleteLinkTooManyRequests ¶ added in v0.31.0
func NewDeleteLinkTooManyRequests() *DeleteLinkTooManyRequests
NewDeleteLinkTooManyRequests creates DeleteLinkTooManyRequests with default headers values
func (*DeleteLinkTooManyRequests) SetPayload ¶ added in v0.31.0
func (o *DeleteLinkTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete link too many requests response
func (*DeleteLinkTooManyRequests) WithPayload ¶ added in v0.31.0
func (o *DeleteLinkTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteLinkTooManyRequests
WithPayload adds the payload to the delete link too many requests response
func (*DeleteLinkTooManyRequests) WriteResponse ¶ added in v0.31.0
func (o *DeleteLinkTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteLinkURL ¶
type DeleteLinkURL struct { ID string // contains filtered or unexported fields }
DeleteLinkURL generates an URL for the delete link operation
func (*DeleteLinkURL) Build ¶
func (o *DeleteLinkURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteLinkURL) BuildFull ¶
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 ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteLinkURL) SetBasePath ¶
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 ¶
func (o *DeleteLinkURL) String() string
String returns the string representation of the path with query string
func (*DeleteLinkURL) StringFull ¶
func (o *DeleteLinkURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteLinkURL) WithBasePath ¶
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 ¶
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 ¶
func NewDeleteLinkUnauthorized() *DeleteLinkUnauthorized
NewDeleteLinkUnauthorized creates DeleteLinkUnauthorized with default headers values
func (*DeleteLinkUnauthorized) SetPayload ¶
func (o *DeleteLinkUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the delete link unauthorized response
func (*DeleteLinkUnauthorized) WithPayload ¶
func (o *DeleteLinkUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *DeleteLinkUnauthorized
WithPayload adds the payload to the delete link unauthorized response
func (*DeleteLinkUnauthorized) WriteResponse ¶
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 DetailLinkTooManyRequests ¶ added in v0.31.0
type DetailLinkTooManyRequests struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
DetailLinkTooManyRequests The resource requested is rate limited and the rate limit has been exceeded
swagger:response detailLinkTooManyRequests
func NewDetailLinkTooManyRequests ¶ added in v0.31.0
func NewDetailLinkTooManyRequests() *DetailLinkTooManyRequests
NewDetailLinkTooManyRequests creates DetailLinkTooManyRequests with default headers values
func (*DetailLinkTooManyRequests) SetPayload ¶ added in v0.31.0
func (o *DetailLinkTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the detail link too many requests response
func (*DetailLinkTooManyRequests) WithPayload ¶ added in v0.31.0
func (o *DetailLinkTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *DetailLinkTooManyRequests
WithPayload adds the payload to the detail link too many requests response
func (*DetailLinkTooManyRequests) WriteResponse ¶ added in v0.31.0
func (o *DetailLinkTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
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 ¶
type ListLinksParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: query */ Filter *string /* In: query */ Limit *int64 /* In: query */ Offset *int64 }
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 ListLinksTooManyRequests ¶ added in v0.31.0
type ListLinksTooManyRequests struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
ListLinksTooManyRequests The resource requested is rate limited and the rate limit has been exceeded
swagger:response listLinksTooManyRequests
func NewListLinksTooManyRequests ¶ added in v0.31.0
func NewListLinksTooManyRequests() *ListLinksTooManyRequests
NewListLinksTooManyRequests creates ListLinksTooManyRequests with default headers values
func (*ListLinksTooManyRequests) SetPayload ¶ added in v0.31.0
func (o *ListLinksTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the list links too many requests response
func (*ListLinksTooManyRequests) WithPayload ¶ added in v0.31.0
func (o *ListLinksTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *ListLinksTooManyRequests
WithPayload adds the payload to the list links too many requests response
func (*ListLinksTooManyRequests) WriteResponse ¶ added in v0.31.0
func (o *ListLinksTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListLinksURL ¶
type ListLinksURL struct { Filter *string Limit *int64 Offset *int64 // 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 PatchLinkTooManyRequests ¶ added in v0.31.0
type PatchLinkTooManyRequests struct { /* In: Body */ Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` }
PatchLinkTooManyRequests The resource requested is rate limited and the rate limit has been exceeded
swagger:response patchLinkTooManyRequests
func NewPatchLinkTooManyRequests ¶ added in v0.31.0
func NewPatchLinkTooManyRequests() *PatchLinkTooManyRequests
NewPatchLinkTooManyRequests creates PatchLinkTooManyRequests with default headers values
func (*PatchLinkTooManyRequests) SetPayload ¶ added in v0.31.0
func (o *PatchLinkTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the patch link too many requests response
func (*PatchLinkTooManyRequests) WithPayload ¶ added in v0.31.0
func (o *PatchLinkTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *PatchLinkTooManyRequests
WithPayload adds the payload to the patch link too many requests response
func (*PatchLinkTooManyRequests) WriteResponse ¶ added in v0.31.0
func (o *PatchLinkTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
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