Documentation ¶
Index ¶
- type Client
- type ClientService
- type GetIconBadRequest
- type GetIconInternalServerError
- type GetIconNotFound
- type GetIconOK
- type GetIconParams
- func (o *GetIconParams) SetContext(ctx context.Context)
- 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) 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 Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for icon API
func (*Client) GetIcon ¶
func (a *Client) GetIcon(params *GetIconParams, authInfo runtime.ClientAuthInfoWriter) (*GetIconOK, error)
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
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { GetIcon(params *GetIconParams, authInfo runtime.ClientAuthInfoWriter) (*GetIconOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new icon API client.
type GetIconBadRequest ¶
type GetIconBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetIconBadRequest handles this case 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() *model.Errors
type GetIconInternalServerError ¶
type GetIconInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetIconInternalServerError handles this case 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() *model.Errors
type GetIconNotFound ¶
type GetIconNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetIconNotFound handles this case 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() *model.Errors
type GetIconOK ¶
GetIconOK handles this case with default header values.
Success
func NewGetIconOK ¶
func NewGetIconOK() *GetIconOK
NewGetIconOK creates a GetIconOK with default headers values
func (*GetIconOK) GetPayload ¶
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 values initialized.
func NewGetIconParamsWithContext ¶
func NewGetIconParamsWithContext(ctx context.Context) *GetIconParams
NewGetIconParamsWithContext creates a new GetIconParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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.