Documentation ¶
Index ¶
- type Client
- type DistributionInspectInternalServerError
- type DistributionInspectOK
- type DistributionInspectParams
- func NewDistributionInspectParams() *DistributionInspectParams
- func NewDistributionInspectParamsWithContext(ctx context.Context) *DistributionInspectParams
- func NewDistributionInspectParamsWithHTTPClient(client *http.Client) *DistributionInspectParams
- func NewDistributionInspectParamsWithTimeout(timeout time.Duration) *DistributionInspectParams
- func (o *DistributionInspectParams) SetContext(ctx context.Context)
- func (o *DistributionInspectParams) SetHTTPClient(client *http.Client)
- func (o *DistributionInspectParams) SetName(name string)
- func (o *DistributionInspectParams) SetTimeout(timeout time.Duration)
- func (o *DistributionInspectParams) WithContext(ctx context.Context) *DistributionInspectParams
- func (o *DistributionInspectParams) WithHTTPClient(client *http.Client) *DistributionInspectParams
- func (o *DistributionInspectParams) WithName(name string) *DistributionInspectParams
- func (o *DistributionInspectParams) WithTimeout(timeout time.Duration) *DistributionInspectParams
- func (o *DistributionInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DistributionInspectReader
- type DistributionInspectUnauthorized
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 distribution API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new distribution API client.
func (*Client) DistributionInspect ¶
func (a *Client) DistributionInspect(params *DistributionInspectParams) (*DistributionInspectOK, error)
DistributionInspect gets image information from the registry
Return image digest and platform information by contacting the registry.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type DistributionInspectInternalServerError ¶
type DistributionInspectInternalServerError struct {
Payload *models.ErrorResponse
}
DistributionInspectInternalServerError handles this case with default header values.
Server error
func NewDistributionInspectInternalServerError ¶
func NewDistributionInspectInternalServerError() *DistributionInspectInternalServerError
NewDistributionInspectInternalServerError creates a DistributionInspectInternalServerError with default headers values
func (*DistributionInspectInternalServerError) Error ¶
func (o *DistributionInspectInternalServerError) Error() string
type DistributionInspectOK ¶
type DistributionInspectOK struct {
Payload *models.DistributionInspect
}
DistributionInspectOK handles this case with default header values.
descriptor and platform information
func NewDistributionInspectOK ¶
func NewDistributionInspectOK() *DistributionInspectOK
NewDistributionInspectOK creates a DistributionInspectOK with default headers values
func (*DistributionInspectOK) Error ¶
func (o *DistributionInspectOK) Error() string
type DistributionInspectParams ¶
type DistributionInspectParams struct { /*Name Image name or id */ Name string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DistributionInspectParams contains all the parameters to send to the API endpoint for the distribution inspect operation typically these are written to a http.Request
func NewDistributionInspectParams ¶
func NewDistributionInspectParams() *DistributionInspectParams
NewDistributionInspectParams creates a new DistributionInspectParams object with the default values initialized.
func NewDistributionInspectParamsWithContext ¶
func NewDistributionInspectParamsWithContext(ctx context.Context) *DistributionInspectParams
NewDistributionInspectParamsWithContext creates a new DistributionInspectParams object with the default values initialized, and the ability to set a context for a request
func NewDistributionInspectParamsWithHTTPClient ¶
func NewDistributionInspectParamsWithHTTPClient(client *http.Client) *DistributionInspectParams
NewDistributionInspectParamsWithHTTPClient creates a new DistributionInspectParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDistributionInspectParamsWithTimeout ¶
func NewDistributionInspectParamsWithTimeout(timeout time.Duration) *DistributionInspectParams
NewDistributionInspectParamsWithTimeout creates a new DistributionInspectParams object with the default values initialized, and the ability to set a timeout on a request
func (*DistributionInspectParams) SetContext ¶
func (o *DistributionInspectParams) SetContext(ctx context.Context)
SetContext adds the context to the distribution inspect params
func (*DistributionInspectParams) SetHTTPClient ¶
func (o *DistributionInspectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the distribution inspect params
func (*DistributionInspectParams) SetName ¶
func (o *DistributionInspectParams) SetName(name string)
SetName adds the name to the distribution inspect params
func (*DistributionInspectParams) SetTimeout ¶
func (o *DistributionInspectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the distribution inspect params
func (*DistributionInspectParams) WithContext ¶
func (o *DistributionInspectParams) WithContext(ctx context.Context) *DistributionInspectParams
WithContext adds the context to the distribution inspect params
func (*DistributionInspectParams) WithHTTPClient ¶
func (o *DistributionInspectParams) WithHTTPClient(client *http.Client) *DistributionInspectParams
WithHTTPClient adds the HTTPClient to the distribution inspect params
func (*DistributionInspectParams) WithName ¶
func (o *DistributionInspectParams) WithName(name string) *DistributionInspectParams
WithName adds the name to the distribution inspect params
func (*DistributionInspectParams) WithTimeout ¶
func (o *DistributionInspectParams) WithTimeout(timeout time.Duration) *DistributionInspectParams
WithTimeout adds the timeout to the distribution inspect params
func (*DistributionInspectParams) WriteToRequest ¶
func (o *DistributionInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DistributionInspectReader ¶
type DistributionInspectReader struct {
// contains filtered or unexported fields
}
DistributionInspectReader is a Reader for the DistributionInspect structure.
func (*DistributionInspectReader) ReadResponse ¶
func (o *DistributionInspectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DistributionInspectUnauthorized ¶
type DistributionInspectUnauthorized struct {
}DistributionInspectUnauthorized handles this case with default header values.
Failed authentication or no image found
func NewDistributionInspectUnauthorized ¶
func NewDistributionInspectUnauthorized() *DistributionInspectUnauthorized
NewDistributionInspectUnauthorized creates a DistributionInspectUnauthorized with default headers values
func (*DistributionInspectUnauthorized) Error ¶
func (o *DistributionInspectUnauthorized) Error() string