Documentation ¶
Index ¶
- Constants
- type GetIcon
- type GetIconBadRequest
- func (o *GetIconBadRequest) SetPayload(payload *models.Errors)
- func (o *GetIconBadRequest) SetXRequestID(xRequestID string)
- func (o *GetIconBadRequest) WithPayload(payload *models.Errors) *GetIconBadRequest
- func (o *GetIconBadRequest) WithXRequestID(xRequestID string) *GetIconBadRequest
- func (o *GetIconBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetIconHandler
- type GetIconHandlerFunc
- type GetIconInternalServerError
- func (o *GetIconInternalServerError) SetPayload(payload *models.Errors)
- func (o *GetIconInternalServerError) SetXRequestID(xRequestID string)
- func (o *GetIconInternalServerError) WithPayload(payload *models.Errors) *GetIconInternalServerError
- func (o *GetIconInternalServerError) WithXRequestID(xRequestID string) *GetIconInternalServerError
- func (o *GetIconInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetIconNotFound
- func (o *GetIconNotFound) SetPayload(payload *models.Errors)
- func (o *GetIconNotFound) SetXRequestID(xRequestID string)
- func (o *GetIconNotFound) WithPayload(payload *models.Errors) *GetIconNotFound
- func (o *GetIconNotFound) WithXRequestID(xRequestID string) *GetIconNotFound
- func (o *GetIconNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetIconOK
- type GetIconParams
- type GetIconURL
- func (o *GetIconURL) Build() (*url.URL, error)
- func (o *GetIconURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetIconURL) Must(u *url.URL, err error) *url.URL
- func (o *GetIconURL) SetBasePath(bp string)
- func (o *GetIconURL) String() string
- func (o *GetIconURL) StringFull(scheme, host string) string
- func (o *GetIconURL) WithBasePath(bp string) *GetIconURL
Constants ¶
const GetIconBadRequestCode int = 400
GetIconBadRequestCode is the HTTP code returned for type GetIconBadRequest
const GetIconInternalServerErrorCode int = 500
GetIconInternalServerErrorCode is the HTTP code returned for type GetIconInternalServerError
const GetIconNotFoundCode int = 404
GetIconNotFoundCode is the HTTP code returned for type GetIconNotFound
const GetIconOKCode int = 200
GetIconOKCode is the HTTP code returned for type GetIconOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetIcon ¶
type GetIcon struct { Context *middleware.Context Handler GetIconHandler }
GetIcon swagger:route GET /icons/{digest} icon getIcon
Get artifact icon ¶
Get the artifact icon with the specified digest. As the original icon image is resized and encoded before returning, the parameter "digest" in the path doesn't match the hash of the returned content
func NewGetIcon ¶
func NewGetIcon(ctx *middleware.Context, handler GetIconHandler) *GetIcon
NewGetIcon creates a new http.Handler for the get icon operation
type GetIconBadRequest ¶
type GetIconBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
GetIconBadRequest Bad request
swagger:response getIconBadRequest
func NewGetIconBadRequest ¶
func NewGetIconBadRequest() *GetIconBadRequest
NewGetIconBadRequest creates GetIconBadRequest with default headers values
func (*GetIconBadRequest) SetPayload ¶
func (o *GetIconBadRequest) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get icon bad request response
func (*GetIconBadRequest) SetXRequestID ¶
func (o *GetIconBadRequest) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get icon bad request response
func (*GetIconBadRequest) WithPayload ¶
func (o *GetIconBadRequest) WithPayload(payload *models.Errors) *GetIconBadRequest
WithPayload adds the payload to the get icon bad request response
func (*GetIconBadRequest) WithXRequestID ¶
func (o *GetIconBadRequest) WithXRequestID(xRequestID string) *GetIconBadRequest
WithXRequestID adds the xRequestId to the get icon bad request response
func (*GetIconBadRequest) WriteResponse ¶
func (o *GetIconBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetIconHandler ¶
type GetIconHandler interface {
Handle(GetIconParams, interface{}) middleware.Responder
}
GetIconHandler interface for that can handle valid get icon params
type GetIconHandlerFunc ¶
type GetIconHandlerFunc func(GetIconParams, interface{}) middleware.Responder
GetIconHandlerFunc turns a function with the right signature into a get icon handler
func (GetIconHandlerFunc) Handle ¶
func (fn GetIconHandlerFunc) Handle(params GetIconParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetIconInternalServerError ¶
type GetIconInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
GetIconInternalServerError Internal server error
swagger:response getIconInternalServerError
func NewGetIconInternalServerError ¶
func NewGetIconInternalServerError() *GetIconInternalServerError
NewGetIconInternalServerError creates GetIconInternalServerError with default headers values
func (*GetIconInternalServerError) SetPayload ¶
func (o *GetIconInternalServerError) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get icon internal server error response
func (*GetIconInternalServerError) SetXRequestID ¶
func (o *GetIconInternalServerError) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get icon internal server error response
func (*GetIconInternalServerError) WithPayload ¶
func (o *GetIconInternalServerError) WithPayload(payload *models.Errors) *GetIconInternalServerError
WithPayload adds the payload to the get icon internal server error response
func (*GetIconInternalServerError) WithXRequestID ¶
func (o *GetIconInternalServerError) WithXRequestID(xRequestID string) *GetIconInternalServerError
WithXRequestID adds the xRequestId to the get icon internal server error response
func (*GetIconInternalServerError) WriteResponse ¶
func (o *GetIconInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetIconNotFound ¶
type GetIconNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
GetIconNotFound Not found
swagger:response getIconNotFound
func NewGetIconNotFound ¶
func NewGetIconNotFound() *GetIconNotFound
NewGetIconNotFound creates GetIconNotFound with default headers values
func (*GetIconNotFound) SetPayload ¶
func (o *GetIconNotFound) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get icon not found response
func (*GetIconNotFound) SetXRequestID ¶
func (o *GetIconNotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get icon not found response
func (*GetIconNotFound) WithPayload ¶
func (o *GetIconNotFound) WithPayload(payload *models.Errors) *GetIconNotFound
WithPayload adds the payload to the get icon not found response
func (*GetIconNotFound) WithXRequestID ¶
func (o *GetIconNotFound) WithXRequestID(xRequestID string) *GetIconNotFound
WithXRequestID adds the xRequestId to the get icon not found response
func (*GetIconNotFound) WriteResponse ¶
func (o *GetIconNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetIconOK ¶
GetIconOK Success
swagger:response getIconOK
func NewGetIconOK ¶
func NewGetIconOK() *GetIconOK
NewGetIconOK creates GetIconOK with default headers values
func (*GetIconOK) SetPayload ¶
SetPayload sets the payload to the get icon o k response
func (*GetIconOK) WithPayload ¶
WithPayload adds the payload to the get icon o k response
func (*GetIconOK) WriteResponse ¶
func (o *GetIconOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetIconParams ¶
type GetIconParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*An unique ID for the request Min Length: 1 In: header */ XRequestID *string /*The digest of the resource Required: true In: path */ Digest string }
GetIconParams contains all the bound params for the get icon operation typically these are obtained from a http.Request
swagger:parameters getIcon
func NewGetIconParams ¶
func NewGetIconParams() GetIconParams
NewGetIconParams creates a new GetIconParams object no default values defined in spec.
func (*GetIconParams) BindRequest ¶
func (o *GetIconParams) 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 NewGetIconParams() beforehand.
type GetIconURL ¶
type GetIconURL struct { Digest string // contains filtered or unexported fields }
GetIconURL generates an URL for the get icon operation
func (*GetIconURL) Build ¶
func (o *GetIconURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetIconURL) BuildFull ¶
func (o *GetIconURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetIconURL) SetBasePath ¶
func (o *GetIconURL) 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 (*GetIconURL) String ¶
func (o *GetIconURL) String() string
String returns the string representation of the path with query string
func (*GetIconURL) StringFull ¶
func (o *GetIconURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetIconURL) WithBasePath ¶
func (o *GetIconURL) WithBasePath(bp string) *GetIconURL
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