Documentation ¶
Index ¶
- type API
- type Client
- type GetIconBadRequest
- func (o *GetIconBadRequest) Error() string
- func (o *GetIconBadRequest) GetPayload() *models.Errors
- func (o *GetIconBadRequest) IsClientError() bool
- func (o *GetIconBadRequest) IsCode(code int) bool
- func (o *GetIconBadRequest) IsRedirect() bool
- func (o *GetIconBadRequest) IsServerError() bool
- func (o *GetIconBadRequest) IsSuccess() bool
- func (o *GetIconBadRequest) String() string
- type GetIconInternalServerError
- func (o *GetIconInternalServerError) Error() string
- func (o *GetIconInternalServerError) GetPayload() *models.Errors
- func (o *GetIconInternalServerError) IsClientError() bool
- func (o *GetIconInternalServerError) IsCode(code int) bool
- func (o *GetIconInternalServerError) IsRedirect() bool
- func (o *GetIconInternalServerError) IsServerError() bool
- func (o *GetIconInternalServerError) IsSuccess() bool
- func (o *GetIconInternalServerError) String() string
- type GetIconNotFound
- func (o *GetIconNotFound) Error() string
- func (o *GetIconNotFound) GetPayload() *models.Errors
- func (o *GetIconNotFound) IsClientError() bool
- func (o *GetIconNotFound) IsCode(code int) bool
- func (o *GetIconNotFound) IsRedirect() bool
- func (o *GetIconNotFound) IsServerError() bool
- func (o *GetIconNotFound) IsSuccess() bool
- func (o *GetIconNotFound) String() string
- type GetIconOK
- func (o *GetIconOK) Error() string
- func (o *GetIconOK) GetPayload() *models.Icon
- func (o *GetIconOK) IsClientError() bool
- func (o *GetIconOK) IsCode(code int) bool
- func (o *GetIconOK) IsRedirect() bool
- func (o *GetIconOK) IsServerError() bool
- func (o *GetIconOK) IsSuccess() bool
- func (o *GetIconOK) String() string
- type GetIconParams
- func (o *GetIconParams) SetContext(ctx context.Context)
- func (o *GetIconParams) SetDefaults()
- func (o *GetIconParams) SetDigest(digest string)
- func (o *GetIconParams) SetHTTPClient(client *http.Client)
- func (o *GetIconParams) SetTimeout(timeout time.Duration)
- func (o *GetIconParams) SetXRequestID(xRequestID *string)
- func (o *GetIconParams) WithContext(ctx context.Context) *GetIconParams
- func (o *GetIconParams) WithDefaults() *GetIconParams
- func (o *GetIconParams) WithDigest(digest string) *GetIconParams
- func (o *GetIconParams) WithHTTPClient(client *http.Client) *GetIconParams
- func (o *GetIconParams) WithTimeout(timeout time.Duration) *GetIconParams
- func (o *GetIconParams) WithXRequestID(xRequestID *string) *GetIconParams
- func (o *GetIconParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetIconReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { /* GetIcon gets 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*/ GetIcon(ctx context.Context, params *GetIconParams) (*GetIconOK, error) }
API is the interface of the icon client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for icon API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new icon API client.
type GetIconBadRequest ¶
type GetIconBadRequest struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetIconBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetIconBadRequest ¶
func NewGetIconBadRequest() *GetIconBadRequest
NewGetIconBadRequest creates a GetIconBadRequest with default headers values
func (*GetIconBadRequest) Error ¶
func (o *GetIconBadRequest) Error() string
func (*GetIconBadRequest) GetPayload ¶
func (o *GetIconBadRequest) GetPayload() *models.Errors
func (*GetIconBadRequest) IsClientError ¶
func (o *GetIconBadRequest) IsClientError() bool
IsClientError returns true when this get icon bad request response has a 4xx status code
func (*GetIconBadRequest) IsCode ¶
func (o *GetIconBadRequest) IsCode(code int) bool
IsCode returns true when this get icon bad request response a status code equal to that given
func (*GetIconBadRequest) IsRedirect ¶
func (o *GetIconBadRequest) IsRedirect() bool
IsRedirect returns true when this get icon bad request response has a 3xx status code
func (*GetIconBadRequest) IsServerError ¶
func (o *GetIconBadRequest) IsServerError() bool
IsServerError returns true when this get icon bad request response has a 5xx status code
func (*GetIconBadRequest) IsSuccess ¶
func (o *GetIconBadRequest) IsSuccess() bool
IsSuccess returns true when this get icon bad request response has a 2xx status code
func (*GetIconBadRequest) String ¶
func (o *GetIconBadRequest) String() string
type GetIconInternalServerError ¶
type GetIconInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetIconInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewGetIconInternalServerError ¶
func NewGetIconInternalServerError() *GetIconInternalServerError
NewGetIconInternalServerError creates a GetIconInternalServerError with default headers values
func (*GetIconInternalServerError) Error ¶
func (o *GetIconInternalServerError) Error() string
func (*GetIconInternalServerError) GetPayload ¶
func (o *GetIconInternalServerError) GetPayload() *models.Errors
func (*GetIconInternalServerError) IsClientError ¶
func (o *GetIconInternalServerError) IsClientError() bool
IsClientError returns true when this get icon internal server error response has a 4xx status code
func (*GetIconInternalServerError) IsCode ¶
func (o *GetIconInternalServerError) IsCode(code int) bool
IsCode returns true when this get icon internal server error response a status code equal to that given
func (*GetIconInternalServerError) IsRedirect ¶
func (o *GetIconInternalServerError) IsRedirect() bool
IsRedirect returns true when this get icon internal server error response has a 3xx status code
func (*GetIconInternalServerError) IsServerError ¶
func (o *GetIconInternalServerError) IsServerError() bool
IsServerError returns true when this get icon internal server error response has a 5xx status code
func (*GetIconInternalServerError) IsSuccess ¶
func (o *GetIconInternalServerError) IsSuccess() bool
IsSuccess returns true when this get icon internal server error response has a 2xx status code
func (*GetIconInternalServerError) String ¶
func (o *GetIconInternalServerError) String() string
type GetIconNotFound ¶
type GetIconNotFound struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetIconNotFound describes a response with status code 404, with default header values.
Not found
func NewGetIconNotFound ¶
func NewGetIconNotFound() *GetIconNotFound
NewGetIconNotFound creates a GetIconNotFound with default headers values
func (*GetIconNotFound) Error ¶
func (o *GetIconNotFound) Error() string
func (*GetIconNotFound) GetPayload ¶
func (o *GetIconNotFound) GetPayload() *models.Errors
func (*GetIconNotFound) IsClientError ¶
func (o *GetIconNotFound) IsClientError() bool
IsClientError returns true when this get icon not found response has a 4xx status code
func (*GetIconNotFound) IsCode ¶
func (o *GetIconNotFound) IsCode(code int) bool
IsCode returns true when this get icon not found response a status code equal to that given
func (*GetIconNotFound) IsRedirect ¶
func (o *GetIconNotFound) IsRedirect() bool
IsRedirect returns true when this get icon not found response has a 3xx status code
func (*GetIconNotFound) IsServerError ¶
func (o *GetIconNotFound) IsServerError() bool
IsServerError returns true when this get icon not found response has a 5xx status code
func (*GetIconNotFound) IsSuccess ¶
func (o *GetIconNotFound) IsSuccess() bool
IsSuccess returns true when this get icon not found response has a 2xx status code
func (*GetIconNotFound) String ¶
func (o *GetIconNotFound) String() string
type GetIconOK ¶
GetIconOK describes a response with status code 200, with default header values.
Success
func NewGetIconOK ¶
func NewGetIconOK() *GetIconOK
NewGetIconOK creates a GetIconOK with default headers values
func (*GetIconOK) GetPayload ¶
func (*GetIconOK) IsClientError ¶
IsClientError returns true when this get icon o k response has a 4xx status code
func (*GetIconOK) IsCode ¶
IsCode returns true when this get icon o k response a status code equal to that given
func (*GetIconOK) IsRedirect ¶
IsRedirect returns true when this get icon o k response has a 3xx status code
func (*GetIconOK) IsServerError ¶
IsServerError returns true when this get icon o k response has a 5xx status code
type GetIconParams ¶
type GetIconParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string /* Digest. The digest of the resource */ Digest string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetIconParams contains all the parameters to send to the API endpoint
for the get icon operation. Typically these are written to a http.Request.
func NewGetIconParams ¶
func NewGetIconParams() *GetIconParams
NewGetIconParams creates a new GetIconParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetIconParamsWithContext ¶
func NewGetIconParamsWithContext(ctx context.Context) *GetIconParams
NewGetIconParamsWithContext creates a new GetIconParams object with the ability to set a context for a request.
func NewGetIconParamsWithHTTPClient ¶
func NewGetIconParamsWithHTTPClient(client *http.Client) *GetIconParams
NewGetIconParamsWithHTTPClient creates a new GetIconParams object with the ability to set a custom HTTPClient for a request.
func NewGetIconParamsWithTimeout ¶
func NewGetIconParamsWithTimeout(timeout time.Duration) *GetIconParams
NewGetIconParamsWithTimeout creates a new GetIconParams object with the ability to set a timeout on a request.
func (*GetIconParams) SetContext ¶
func (o *GetIconParams) SetContext(ctx context.Context)
SetContext adds the context to the get icon params
func (*GetIconParams) SetDefaults ¶
func (o *GetIconParams) SetDefaults()
SetDefaults hydrates default values in the get icon params (not the query body).
All values with no default are reset to their zero value.
func (*GetIconParams) SetDigest ¶
func (o *GetIconParams) SetDigest(digest string)
SetDigest adds the digest to the get icon params
func (*GetIconParams) SetHTTPClient ¶
func (o *GetIconParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get icon params
func (*GetIconParams) SetTimeout ¶
func (o *GetIconParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get icon params
func (*GetIconParams) SetXRequestID ¶
func (o *GetIconParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get icon params
func (*GetIconParams) WithContext ¶
func (o *GetIconParams) WithContext(ctx context.Context) *GetIconParams
WithContext adds the context to the get icon params
func (*GetIconParams) WithDefaults ¶
func (o *GetIconParams) WithDefaults() *GetIconParams
WithDefaults hydrates default values in the get icon params (not the query body).
All values with no default are reset to their zero value.
func (*GetIconParams) WithDigest ¶
func (o *GetIconParams) WithDigest(digest string) *GetIconParams
WithDigest adds the digest to the get icon params
func (*GetIconParams) WithHTTPClient ¶
func (o *GetIconParams) WithHTTPClient(client *http.Client) *GetIconParams
WithHTTPClient adds the HTTPClient to the get icon params
func (*GetIconParams) WithTimeout ¶
func (o *GetIconParams) WithTimeout(timeout time.Duration) *GetIconParams
WithTimeout adds the timeout to the get icon params
func (*GetIconParams) WithXRequestID ¶
func (o *GetIconParams) WithXRequestID(xRequestID *string) *GetIconParams
WithXRequestID adds the xRequestID to the get icon params
func (*GetIconParams) WriteToRequest ¶
func (o *GetIconParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetIconReader ¶
type GetIconReader struct {
// contains filtered or unexported fields
}
GetIconReader is a Reader for the GetIcon structure.
func (*GetIconReader) ReadResponse ¶
func (o *GetIconReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.