Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateImage(params *CreateImageParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateImageOK, *CreateImageCreated, error)
- func (a *Client) DeleteImage(params *DeleteImageParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteImageOK, error)
- func (a *Client) DownloadImage(params *DownloadImageParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DownloadImageOK, error)
- func (a *Client) GetImage(params *GetImageParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetImageOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UploadImage(params *UploadImageParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UploadImageOK, error)
- type ClientOption
- type ClientService
- type CreateImageBadRequest
- type CreateImageCreated
- type CreateImageForbidden
- type CreateImageInternalServerError
- type CreateImageOK
- type CreateImageParams
- func (o *CreateImageParams) SetContext(ctx context.Context)
- func (o *CreateImageParams) SetDefaults()
- func (o *CreateImageParams) SetHTTPClient(client *http.Client)
- func (o *CreateImageParams) SetImage(image *models.Image)
- func (o *CreateImageParams) SetTimeout(timeout time.Duration)
- func (o *CreateImageParams) WithContext(ctx context.Context) *CreateImageParams
- func (o *CreateImageParams) WithDefaults() *CreateImageParams
- func (o *CreateImageParams) WithHTTPClient(client *http.Client) *CreateImageParams
- func (o *CreateImageParams) WithImage(image *models.Image) *CreateImageParams
- func (o *CreateImageParams) WithTimeout(timeout time.Duration) *CreateImageParams
- func (o *CreateImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateImageReader
- type CreateImageUnauthorized
- type DeleteImageForbidden
- type DeleteImageInternalServerError
- type DeleteImageNotFound
- type DeleteImageOK
- type DeleteImageParams
- func (o *DeleteImageParams) SetContext(ctx context.Context)
- func (o *DeleteImageParams) SetDefaults()
- func (o *DeleteImageParams) SetHTTPClient(client *http.Client)
- func (o *DeleteImageParams) SetRef(ref string)
- func (o *DeleteImageParams) SetTimeout(timeout time.Duration)
- func (o *DeleteImageParams) WithContext(ctx context.Context) *DeleteImageParams
- func (o *DeleteImageParams) WithDefaults() *DeleteImageParams
- func (o *DeleteImageParams) WithHTTPClient(client *http.Client) *DeleteImageParams
- func (o *DeleteImageParams) WithRef(ref string) *DeleteImageParams
- func (o *DeleteImageParams) WithTimeout(timeout time.Duration) *DeleteImageParams
- func (o *DeleteImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteImageReader
- type DeleteImageUnauthorized
- type DownloadImageForbidden
- type DownloadImageInternalServerError
- type DownloadImageNotFound
- type DownloadImageOK
- type DownloadImageParams
- func (o *DownloadImageParams) SetContext(ctx context.Context)
- func (o *DownloadImageParams) SetDefaults()
- func (o *DownloadImageParams) SetHTTPClient(client *http.Client)
- func (o *DownloadImageParams) SetRef(ref string)
- func (o *DownloadImageParams) SetTimeout(timeout time.Duration)
- func (o *DownloadImageParams) WithContext(ctx context.Context) *DownloadImageParams
- func (o *DownloadImageParams) WithDefaults() *DownloadImageParams
- func (o *DownloadImageParams) WithHTTPClient(client *http.Client) *DownloadImageParams
- func (o *DownloadImageParams) WithRef(ref string) *DownloadImageParams
- func (o *DownloadImageParams) WithTimeout(timeout time.Duration) *DownloadImageParams
- func (o *DownloadImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DownloadImageReader
- type DownloadImageUnauthorized
- type GetImageForbidden
- type GetImageInternalServerError
- type GetImageNotFound
- type GetImageOK
- type GetImageParams
- func (o *GetImageParams) SetContext(ctx context.Context)
- func (o *GetImageParams) SetDefaults()
- func (o *GetImageParams) SetHTTPClient(client *http.Client)
- func (o *GetImageParams) SetRef(ref string)
- func (o *GetImageParams) SetTimeout(timeout time.Duration)
- func (o *GetImageParams) WithContext(ctx context.Context) *GetImageParams
- func (o *GetImageParams) WithDefaults() *GetImageParams
- func (o *GetImageParams) WithHTTPClient(client *http.Client) *GetImageParams
- func (o *GetImageParams) WithRef(ref string) *GetImageParams
- func (o *GetImageParams) WithTimeout(timeout time.Duration) *GetImageParams
- func (o *GetImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetImageReader
- type GetImageUnauthorized
- type UploadImageBadRequest
- type UploadImageForbidden
- type UploadImageInsufficientStorage
- type UploadImageInternalServerError
- type UploadImageOK
- type UploadImageParams
- func (o *UploadImageParams) SetContext(ctx context.Context)
- func (o *UploadImageParams) SetDefaults()
- func (o *UploadImageParams) SetFile(file io.ReadCloser)
- func (o *UploadImageParams) SetHTTPClient(client *http.Client)
- func (o *UploadImageParams) SetRef(ref string)
- func (o *UploadImageParams) SetTimeout(timeout time.Duration)
- func (o *UploadImageParams) WithContext(ctx context.Context) *UploadImageParams
- func (o *UploadImageParams) WithDefaults() *UploadImageParams
- func (o *UploadImageParams) WithFile(file io.ReadCloser) *UploadImageParams
- func (o *UploadImageParams) WithHTTPClient(client *http.Client) *UploadImageParams
- func (o *UploadImageParams) WithRef(ref string) *UploadImageParams
- func (o *UploadImageParams) WithTimeout(timeout time.Duration) *UploadImageParams
- func (o *UploadImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UploadImageReader
- type UploadImageUnauthorized
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 image API
func (*Client) CreateImage ¶
func (a *Client) CreateImage(params *CreateImageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateImageOK, *CreateImageCreated, error)
CreateImage creates image
Create a new image within a collection
func (*Client) DeleteImage ¶
func (a *Client) DeleteImage(params *DeleteImageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteImageOK, error)
DeleteImage deletes image
Delete an image from the library
func (*Client) DownloadImage ¶
func (a *Client) DownloadImage(params *DownloadImageParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer, opts ...ClientOption) (*DownloadImageOK, error)
DownloadImage downloads image
Download the image file for an image
func (*Client) GetImage ¶
func (a *Client) GetImage(params *GetImageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetImageOK, error)
GetImage gets image
Get detail about an image in the library
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UploadImage ¶
func (a *Client) UploadImage(params *UploadImageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadImageOK, error)
UploadImage uploads image
Upload the image file for an image
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface {
CreateImage(params *CreateImageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateImageOK, *CreateImageCreated, error)
DeleteImage(params *DeleteImageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteImageOK, error)
DownloadImage(params *DownloadImageParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer, opts ...ClientOption) (*DownloadImageOK, error)
GetImage(params *GetImageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetImageOK, error)
UploadImage(params *UploadImageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadImageOK, 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 image API client.
type CreateImageBadRequest ¶
type CreateImageBadRequest struct {
Payload *models.Json400error
}
CreateImageBadRequest describes a response with status code 400, with default header values.
Provided image was not valid
func NewCreateImageBadRequest ¶
func NewCreateImageBadRequest() *CreateImageBadRequest
NewCreateImageBadRequest creates a CreateImageBadRequest with default headers values
func (*CreateImageBadRequest) Error ¶
func (o *CreateImageBadRequest) Error() string
func (*CreateImageBadRequest) GetPayload ¶
func (o *CreateImageBadRequest) GetPayload() *models.Json400error
type CreateImageCreated ¶
type CreateImageCreated struct {
Payload *models.ImageResponse
}
CreateImageCreated describes a response with status code 201, with default header values.
Return new image
func NewCreateImageCreated ¶
func NewCreateImageCreated() *CreateImageCreated
NewCreateImageCreated creates a CreateImageCreated with default headers values
func (*CreateImageCreated) Error ¶
func (o *CreateImageCreated) Error() string
func (*CreateImageCreated) GetPayload ¶
func (o *CreateImageCreated) GetPayload() *models.ImageResponse
type CreateImageForbidden ¶
type CreateImageForbidden struct {
Payload *models.Json403error
}
CreateImageForbidden describes a response with status code 403, with default header values.
Not authorized to create this image
func NewCreateImageForbidden ¶
func NewCreateImageForbidden() *CreateImageForbidden
NewCreateImageForbidden creates a CreateImageForbidden with default headers values
func (*CreateImageForbidden) Error ¶
func (o *CreateImageForbidden) Error() string
func (*CreateImageForbidden) GetPayload ¶
func (o *CreateImageForbidden) GetPayload() *models.Json403error
type CreateImageInternalServerError ¶
type CreateImageInternalServerError struct {
Payload *models.Json500error
}
CreateImageInternalServerError describes a response with status code 500, with default header values.
Server internal error
func NewCreateImageInternalServerError ¶
func NewCreateImageInternalServerError() *CreateImageInternalServerError
NewCreateImageInternalServerError creates a CreateImageInternalServerError with default headers values
func (*CreateImageInternalServerError) Error ¶
func (o *CreateImageInternalServerError) Error() string
func (*CreateImageInternalServerError) GetPayload ¶
func (o *CreateImageInternalServerError) GetPayload() *models.Json500error
type CreateImageOK ¶
type CreateImageOK struct {
Payload *models.ImageResponse
}
CreateImageOK describes a response with status code 200, with default header values.
Return new image
func NewCreateImageOK ¶
func NewCreateImageOK() *CreateImageOK
NewCreateImageOK creates a CreateImageOK with default headers values
func (*CreateImageOK) Error ¶
func (o *CreateImageOK) Error() string
func (*CreateImageOK) GetPayload ¶
func (o *CreateImageOK) GetPayload() *models.ImageResponse
type CreateImageParams ¶
type CreateImageParams struct {
/* Image.
Image to be created
*/
Image *models.Image
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CreateImageParams contains all the parameters to send to the API endpoint
for the create image operation. Typically these are written to a http.Request.
func NewCreateImageParams ¶
func NewCreateImageParams() *CreateImageParams
NewCreateImageParams creates a new CreateImageParams 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 NewCreateImageParamsWithContext ¶
func NewCreateImageParamsWithContext(ctx context.Context) *CreateImageParams
NewCreateImageParamsWithContext creates a new CreateImageParams object with the ability to set a context for a request.
func NewCreateImageParamsWithHTTPClient ¶
func NewCreateImageParamsWithHTTPClient(client *http.Client) *CreateImageParams
NewCreateImageParamsWithHTTPClient creates a new CreateImageParams object with the ability to set a custom HTTPClient for a request.
func NewCreateImageParamsWithTimeout ¶
func NewCreateImageParamsWithTimeout(timeout time.Duration) *CreateImageParams
NewCreateImageParamsWithTimeout creates a new CreateImageParams object with the ability to set a timeout on a request.
func (*CreateImageParams) SetContext ¶
func (o *CreateImageParams) SetContext(ctx context.Context)
SetContext adds the context to the create image params
func (*CreateImageParams) SetDefaults ¶
func (o *CreateImageParams) SetDefaults()
SetDefaults hydrates default values in the create image params (not the query body).
All values with no default are reset to their zero value.
func (*CreateImageParams) SetHTTPClient ¶
func (o *CreateImageParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create image params
func (*CreateImageParams) SetImage ¶
func (o *CreateImageParams) SetImage(image *models.Image)
SetImage adds the image to the create image params
func (*CreateImageParams) SetTimeout ¶
func (o *CreateImageParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create image params
func (*CreateImageParams) WithContext ¶
func (o *CreateImageParams) WithContext(ctx context.Context) *CreateImageParams
WithContext adds the context to the create image params
func (*CreateImageParams) WithDefaults ¶
func (o *CreateImageParams) WithDefaults() *CreateImageParams
WithDefaults hydrates default values in the create image params (not the query body).
All values with no default are reset to their zero value.
func (*CreateImageParams) WithHTTPClient ¶
func (o *CreateImageParams) WithHTTPClient(client *http.Client) *CreateImageParams
WithHTTPClient adds the HTTPClient to the create image params
func (*CreateImageParams) WithImage ¶
func (o *CreateImageParams) WithImage(image *models.Image) *CreateImageParams
WithImage adds the image to the create image params
func (*CreateImageParams) WithTimeout ¶
func (o *CreateImageParams) WithTimeout(timeout time.Duration) *CreateImageParams
WithTimeout adds the timeout to the create image params
func (*CreateImageParams) WriteToRequest ¶
func (o *CreateImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateImageReader ¶
type CreateImageReader struct {
// contains filtered or unexported fields
}
CreateImageReader is a Reader for the CreateImage structure.
func (*CreateImageReader) ReadResponse ¶
func (o *CreateImageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateImageUnauthorized ¶
type CreateImageUnauthorized struct {
}
CreateImageUnauthorized describes a response with status code 401, with default header values.
Not authorized to create this image
func NewCreateImageUnauthorized ¶
func NewCreateImageUnauthorized() *CreateImageUnauthorized
NewCreateImageUnauthorized creates a CreateImageUnauthorized with default headers values
func (*CreateImageUnauthorized) Error ¶
func (o *CreateImageUnauthorized) Error() string
func (*CreateImageUnauthorized) GetPayload ¶
func (o *CreateImageUnauthorized) GetPayload() *models.Json401error
type DeleteImageForbidden ¶
type DeleteImageForbidden struct {
Payload *models.Json403error
}
DeleteImageForbidden describes a response with status code 403, with default header values.
Not authorized to delete this image
func NewDeleteImageForbidden ¶
func NewDeleteImageForbidden() *DeleteImageForbidden
NewDeleteImageForbidden creates a DeleteImageForbidden with default headers values
func (*DeleteImageForbidden) Error ¶
func (o *DeleteImageForbidden) Error() string
func (*DeleteImageForbidden) GetPayload ¶
func (o *DeleteImageForbidden) GetPayload() *models.Json403error
type DeleteImageInternalServerError ¶
type DeleteImageInternalServerError struct {
Payload *models.Json500error
}
DeleteImageInternalServerError describes a response with status code 500, with default header values.
Server internal error
func NewDeleteImageInternalServerError ¶
func NewDeleteImageInternalServerError() *DeleteImageInternalServerError
NewDeleteImageInternalServerError creates a DeleteImageInternalServerError with default headers values
func (*DeleteImageInternalServerError) Error ¶
func (o *DeleteImageInternalServerError) Error() string
func (*DeleteImageInternalServerError) GetPayload ¶
func (o *DeleteImageInternalServerError) GetPayload() *models.Json500error
type DeleteImageNotFound ¶
type DeleteImageNotFound struct {
Payload *models.Json404error
}
DeleteImageNotFound describes a response with status code 404, with default header values.
Requested image was not found
func NewDeleteImageNotFound ¶
func NewDeleteImageNotFound() *DeleteImageNotFound
NewDeleteImageNotFound creates a DeleteImageNotFound with default headers values
func (*DeleteImageNotFound) Error ¶
func (o *DeleteImageNotFound) Error() string
func (*DeleteImageNotFound) GetPayload ¶
func (o *DeleteImageNotFound) GetPayload() *models.Json404error
type DeleteImageOK ¶
type DeleteImageOK struct {
Payload *models.ImageResponse
}
DeleteImageOK describes a response with status code 200, with default header values.
Returns the image that was deleted
func NewDeleteImageOK ¶
func NewDeleteImageOK() *DeleteImageOK
NewDeleteImageOK creates a DeleteImageOK with default headers values
func (*DeleteImageOK) Error ¶
func (o *DeleteImageOK) Error() string
func (*DeleteImageOK) GetPayload ¶
func (o *DeleteImageOK) GetPayload() *models.ImageResponse
type DeleteImageParams ¶
type DeleteImageParams struct {
/* Ref.
ID of an image
*/
Ref string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteImageParams contains all the parameters to send to the API endpoint
for the delete image operation. Typically these are written to a http.Request.
func NewDeleteImageParams ¶
func NewDeleteImageParams() *DeleteImageParams
NewDeleteImageParams creates a new DeleteImageParams 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 NewDeleteImageParamsWithContext ¶
func NewDeleteImageParamsWithContext(ctx context.Context) *DeleteImageParams
NewDeleteImageParamsWithContext creates a new DeleteImageParams object with the ability to set a context for a request.
func NewDeleteImageParamsWithHTTPClient ¶
func NewDeleteImageParamsWithHTTPClient(client *http.Client) *DeleteImageParams
NewDeleteImageParamsWithHTTPClient creates a new DeleteImageParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteImageParamsWithTimeout ¶
func NewDeleteImageParamsWithTimeout(timeout time.Duration) *DeleteImageParams
NewDeleteImageParamsWithTimeout creates a new DeleteImageParams object with the ability to set a timeout on a request.
func (*DeleteImageParams) SetContext ¶
func (o *DeleteImageParams) SetContext(ctx context.Context)
SetContext adds the context to the delete image params
func (*DeleteImageParams) SetDefaults ¶
func (o *DeleteImageParams) SetDefaults()
SetDefaults hydrates default values in the delete image params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteImageParams) SetHTTPClient ¶
func (o *DeleteImageParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete image params
func (*DeleteImageParams) SetRef ¶
func (o *DeleteImageParams) SetRef(ref string)
SetRef adds the ref to the delete image params
func (*DeleteImageParams) SetTimeout ¶
func (o *DeleteImageParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete image params
func (*DeleteImageParams) WithContext ¶
func (o *DeleteImageParams) WithContext(ctx context.Context) *DeleteImageParams
WithContext adds the context to the delete image params
func (*DeleteImageParams) WithDefaults ¶
func (o *DeleteImageParams) WithDefaults() *DeleteImageParams
WithDefaults hydrates default values in the delete image params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteImageParams) WithHTTPClient ¶
func (o *DeleteImageParams) WithHTTPClient(client *http.Client) *DeleteImageParams
WithHTTPClient adds the HTTPClient to the delete image params
func (*DeleteImageParams) WithRef ¶
func (o *DeleteImageParams) WithRef(ref string) *DeleteImageParams
WithRef adds the ref to the delete image params
func (*DeleteImageParams) WithTimeout ¶
func (o *DeleteImageParams) WithTimeout(timeout time.Duration) *DeleteImageParams
WithTimeout adds the timeout to the delete image params
func (*DeleteImageParams) WriteToRequest ¶
func (o *DeleteImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteImageReader ¶
type DeleteImageReader struct {
// contains filtered or unexported fields
}
DeleteImageReader is a Reader for the DeleteImage structure.
func (*DeleteImageReader) ReadResponse ¶
func (o *DeleteImageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteImageUnauthorized ¶
type DeleteImageUnauthorized struct {
}
DeleteImageUnauthorized describes a response with status code 401, with default header values.
Not authorized to delete this image
func NewDeleteImageUnauthorized ¶
func NewDeleteImageUnauthorized() *DeleteImageUnauthorized
NewDeleteImageUnauthorized creates a DeleteImageUnauthorized with default headers values
func (*DeleteImageUnauthorized) Error ¶
func (o *DeleteImageUnauthorized) Error() string
func (*DeleteImageUnauthorized) GetPayload ¶
func (o *DeleteImageUnauthorized) GetPayload() *models.Json401error
type DownloadImageForbidden ¶
type DownloadImageForbidden struct {
Payload *models.Json401error
}
DownloadImageForbidden describes a response with status code 403, with default header values.
Not authorized to download this image
func NewDownloadImageForbidden ¶
func NewDownloadImageForbidden() *DownloadImageForbidden
NewDownloadImageForbidden creates a DownloadImageForbidden with default headers values
func (*DownloadImageForbidden) Error ¶
func (o *DownloadImageForbidden) Error() string
func (*DownloadImageForbidden) GetPayload ¶
func (o *DownloadImageForbidden) GetPayload() *models.Json401error
type DownloadImageInternalServerError ¶
type DownloadImageInternalServerError struct {
Payload *models.Json500error
}
DownloadImageInternalServerError describes a response with status code 500, with default header values.
Server internal error
func NewDownloadImageInternalServerError ¶
func NewDownloadImageInternalServerError() *DownloadImageInternalServerError
NewDownloadImageInternalServerError creates a DownloadImageInternalServerError with default headers values
func (*DownloadImageInternalServerError) Error ¶
func (o *DownloadImageInternalServerError) Error() string
func (*DownloadImageInternalServerError) GetPayload ¶
func (o *DownloadImageInternalServerError) GetPayload() *models.Json500error
type DownloadImageNotFound ¶
type DownloadImageNotFound struct {
Payload *models.Json404error
}
DownloadImageNotFound describes a response with status code 404, with default header values.
Requested image was not found
func NewDownloadImageNotFound ¶
func NewDownloadImageNotFound() *DownloadImageNotFound
NewDownloadImageNotFound creates a DownloadImageNotFound with default headers values
func (*DownloadImageNotFound) Error ¶
func (o *DownloadImageNotFound) Error() string
func (*DownloadImageNotFound) GetPayload ¶
func (o *DownloadImageNotFound) GetPayload() *models.Json404error
type DownloadImageOK ¶
DownloadImageOK describes a response with status code 200, with default header values.
Success
func NewDownloadImageOK ¶
func NewDownloadImageOK(writer io.Writer) *DownloadImageOK
NewDownloadImageOK creates a DownloadImageOK with default headers values
func (*DownloadImageOK) Error ¶
func (o *DownloadImageOK) Error() string
func (*DownloadImageOK) GetPayload ¶
func (o *DownloadImageOK) GetPayload() io.Writer
type DownloadImageParams ¶
type DownloadImageParams struct {
/* Ref.
ID of an image
*/
Ref string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DownloadImageParams contains all the parameters to send to the API endpoint
for the download image operation. Typically these are written to a http.Request.
func NewDownloadImageParams ¶
func NewDownloadImageParams() *DownloadImageParams
NewDownloadImageParams creates a new DownloadImageParams 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 NewDownloadImageParamsWithContext ¶
func NewDownloadImageParamsWithContext(ctx context.Context) *DownloadImageParams
NewDownloadImageParamsWithContext creates a new DownloadImageParams object with the ability to set a context for a request.
func NewDownloadImageParamsWithHTTPClient ¶
func NewDownloadImageParamsWithHTTPClient(client *http.Client) *DownloadImageParams
NewDownloadImageParamsWithHTTPClient creates a new DownloadImageParams object with the ability to set a custom HTTPClient for a request.
func NewDownloadImageParamsWithTimeout ¶
func NewDownloadImageParamsWithTimeout(timeout time.Duration) *DownloadImageParams
NewDownloadImageParamsWithTimeout creates a new DownloadImageParams object with the ability to set a timeout on a request.
func (*DownloadImageParams) SetContext ¶
func (o *DownloadImageParams) SetContext(ctx context.Context)
SetContext adds the context to the download image params
func (*DownloadImageParams) SetDefaults ¶
func (o *DownloadImageParams) SetDefaults()
SetDefaults hydrates default values in the download image params (not the query body).
All values with no default are reset to their zero value.
func (*DownloadImageParams) SetHTTPClient ¶
func (o *DownloadImageParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the download image params
func (*DownloadImageParams) SetRef ¶
func (o *DownloadImageParams) SetRef(ref string)
SetRef adds the ref to the download image params
func (*DownloadImageParams) SetTimeout ¶
func (o *DownloadImageParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the download image params
func (*DownloadImageParams) WithContext ¶
func (o *DownloadImageParams) WithContext(ctx context.Context) *DownloadImageParams
WithContext adds the context to the download image params
func (*DownloadImageParams) WithDefaults ¶
func (o *DownloadImageParams) WithDefaults() *DownloadImageParams
WithDefaults hydrates default values in the download image params (not the query body).
All values with no default are reset to their zero value.
func (*DownloadImageParams) WithHTTPClient ¶
func (o *DownloadImageParams) WithHTTPClient(client *http.Client) *DownloadImageParams
WithHTTPClient adds the HTTPClient to the download image params
func (*DownloadImageParams) WithRef ¶
func (o *DownloadImageParams) WithRef(ref string) *DownloadImageParams
WithRef adds the ref to the download image params
func (*DownloadImageParams) WithTimeout ¶
func (o *DownloadImageParams) WithTimeout(timeout time.Duration) *DownloadImageParams
WithTimeout adds the timeout to the download image params
func (*DownloadImageParams) WriteToRequest ¶
func (o *DownloadImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DownloadImageReader ¶
type DownloadImageReader struct {
// contains filtered or unexported fields
}
DownloadImageReader is a Reader for the DownloadImage structure.
func (*DownloadImageReader) ReadResponse ¶
func (o *DownloadImageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DownloadImageUnauthorized ¶
type DownloadImageUnauthorized struct {
}
DownloadImageUnauthorized describes a response with status code 401, with default header values.
Not authorized to download this image
func NewDownloadImageUnauthorized ¶
func NewDownloadImageUnauthorized() *DownloadImageUnauthorized
NewDownloadImageUnauthorized creates a DownloadImageUnauthorized with default headers values
func (*DownloadImageUnauthorized) Error ¶
func (o *DownloadImageUnauthorized) Error() string
func (*DownloadImageUnauthorized) GetPayload ¶
func (o *DownloadImageUnauthorized) GetPayload() *models.Json401error
type GetImageForbidden ¶
type GetImageForbidden struct {
Payload *models.Json401error
}
GetImageForbidden describes a response with status code 403, with default header values.
Not authorized to access this image
func NewGetImageForbidden ¶
func NewGetImageForbidden() *GetImageForbidden
NewGetImageForbidden creates a GetImageForbidden with default headers values
func (*GetImageForbidden) Error ¶
func (o *GetImageForbidden) Error() string
func (*GetImageForbidden) GetPayload ¶
func (o *GetImageForbidden) GetPayload() *models.Json401error
type GetImageInternalServerError ¶
type GetImageInternalServerError struct {
Payload *models.Json500error
}
GetImageInternalServerError describes a response with status code 500, with default header values.
Server internal error
func NewGetImageInternalServerError ¶
func NewGetImageInternalServerError() *GetImageInternalServerError
NewGetImageInternalServerError creates a GetImageInternalServerError with default headers values
func (*GetImageInternalServerError) Error ¶
func (o *GetImageInternalServerError) Error() string
func (*GetImageInternalServerError) GetPayload ¶
func (o *GetImageInternalServerError) GetPayload() *models.Json500error
type GetImageNotFound ¶
type GetImageNotFound struct {
Payload *models.Json404error
}
GetImageNotFound describes a response with status code 404, with default header values.
Requested image was not found
func NewGetImageNotFound ¶
func NewGetImageNotFound() *GetImageNotFound
NewGetImageNotFound creates a GetImageNotFound with default headers values
func (*GetImageNotFound) Error ¶
func (o *GetImageNotFound) Error() string
func (*GetImageNotFound) GetPayload ¶
func (o *GetImageNotFound) GetPayload() *models.Json404error
type GetImageOK ¶
type GetImageOK struct {
Payload *models.ImageResponse
}
GetImageOK describes a response with status code 200, with default header values.
Success
func NewGetImageOK ¶
func NewGetImageOK() *GetImageOK
NewGetImageOK creates a GetImageOK with default headers values
func (*GetImageOK) Error ¶
func (o *GetImageOK) Error() string
func (*GetImageOK) GetPayload ¶
func (o *GetImageOK) GetPayload() *models.ImageResponse
type GetImageParams ¶
type GetImageParams struct {
/* Ref.
ID of an image
*/
Ref string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetImageParams contains all the parameters to send to the API endpoint
for the get image operation. Typically these are written to a http.Request.
func NewGetImageParams ¶
func NewGetImageParams() *GetImageParams
NewGetImageParams creates a new GetImageParams 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 NewGetImageParamsWithContext ¶
func NewGetImageParamsWithContext(ctx context.Context) *GetImageParams
NewGetImageParamsWithContext creates a new GetImageParams object with the ability to set a context for a request.
func NewGetImageParamsWithHTTPClient ¶
func NewGetImageParamsWithHTTPClient(client *http.Client) *GetImageParams
NewGetImageParamsWithHTTPClient creates a new GetImageParams object with the ability to set a custom HTTPClient for a request.
func NewGetImageParamsWithTimeout ¶
func NewGetImageParamsWithTimeout(timeout time.Duration) *GetImageParams
NewGetImageParamsWithTimeout creates a new GetImageParams object with the ability to set a timeout on a request.
func (*GetImageParams) SetContext ¶
func (o *GetImageParams) SetContext(ctx context.Context)
SetContext adds the context to the get image params
func (*GetImageParams) SetDefaults ¶
func (o *GetImageParams) SetDefaults()
SetDefaults hydrates default values in the get image params (not the query body).
All values with no default are reset to their zero value.
func (*GetImageParams) SetHTTPClient ¶
func (o *GetImageParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get image params
func (*GetImageParams) SetRef ¶
func (o *GetImageParams) SetRef(ref string)
SetRef adds the ref to the get image params
func (*GetImageParams) SetTimeout ¶
func (o *GetImageParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get image params
func (*GetImageParams) WithContext ¶
func (o *GetImageParams) WithContext(ctx context.Context) *GetImageParams
WithContext adds the context to the get image params
func (*GetImageParams) WithDefaults ¶
func (o *GetImageParams) WithDefaults() *GetImageParams
WithDefaults hydrates default values in the get image params (not the query body).
All values with no default are reset to their zero value.
func (*GetImageParams) WithHTTPClient ¶
func (o *GetImageParams) WithHTTPClient(client *http.Client) *GetImageParams
WithHTTPClient adds the HTTPClient to the get image params
func (*GetImageParams) WithRef ¶
func (o *GetImageParams) WithRef(ref string) *GetImageParams
WithRef adds the ref to the get image params
func (*GetImageParams) WithTimeout ¶
func (o *GetImageParams) WithTimeout(timeout time.Duration) *GetImageParams
WithTimeout adds the timeout to the get image params
func (*GetImageParams) WriteToRequest ¶
func (o *GetImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetImageReader ¶
type GetImageReader struct {
// contains filtered or unexported fields
}
GetImageReader is a Reader for the GetImage structure.
func (*GetImageReader) ReadResponse ¶
func (o *GetImageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetImageUnauthorized ¶
type GetImageUnauthorized struct {
}
GetImageUnauthorized describes a response with status code 401, with default header values.
Not authorized to access this image
func NewGetImageUnauthorized ¶
func NewGetImageUnauthorized() *GetImageUnauthorized
NewGetImageUnauthorized creates a GetImageUnauthorized with default headers values
func (*GetImageUnauthorized) Error ¶
func (o *GetImageUnauthorized) Error() string
func (*GetImageUnauthorized) GetPayload ¶
func (o *GetImageUnauthorized) GetPayload() *models.Json401error
type UploadImageBadRequest ¶
type UploadImageBadRequest struct {
Payload *models.Json400error
}
UploadImageBadRequest describes a response with status code 400, with default header values.
Provided image upload was not valid
func NewUploadImageBadRequest ¶
func NewUploadImageBadRequest() *UploadImageBadRequest
NewUploadImageBadRequest creates a UploadImageBadRequest with default headers values
func (*UploadImageBadRequest) Error ¶
func (o *UploadImageBadRequest) Error() string
func (*UploadImageBadRequest) GetPayload ¶
func (o *UploadImageBadRequest) GetPayload() *models.Json400error
type UploadImageForbidden ¶
type UploadImageForbidden struct {
Payload *models.Json403error
}
UploadImageForbidden describes a response with status code 403, with default header values.
Not authorized to upload this image
func NewUploadImageForbidden ¶
func NewUploadImageForbidden() *UploadImageForbidden
NewUploadImageForbidden creates a UploadImageForbidden with default headers values
func (*UploadImageForbidden) Error ¶
func (o *UploadImageForbidden) Error() string
func (*UploadImageForbidden) GetPayload ¶
func (o *UploadImageForbidden) GetPayload() *models.Json403error
type UploadImageInsufficientStorage ¶
type UploadImageInsufficientStorage struct {
Payload *models.Json507error
}
UploadImageInsufficientStorage describes a response with status code 507, with default header values.
Over quota for upload
func NewUploadImageInsufficientStorage ¶
func NewUploadImageInsufficientStorage() *UploadImageInsufficientStorage
NewUploadImageInsufficientStorage creates a UploadImageInsufficientStorage with default headers values
func (*UploadImageInsufficientStorage) Error ¶
func (o *UploadImageInsufficientStorage) Error() string
func (*UploadImageInsufficientStorage) GetPayload ¶
func (o *UploadImageInsufficientStorage) GetPayload() *models.Json507error
type UploadImageInternalServerError ¶
type UploadImageInternalServerError struct {
Payload *models.Json500error
}
UploadImageInternalServerError describes a response with status code 500, with default header values.
Server internal error
func NewUploadImageInternalServerError ¶
func NewUploadImageInternalServerError() *UploadImageInternalServerError
NewUploadImageInternalServerError creates a UploadImageInternalServerError with default headers values
func (*UploadImageInternalServerError) Error ¶
func (o *UploadImageInternalServerError) Error() string
func (*UploadImageInternalServerError) GetPayload ¶
func (o *UploadImageInternalServerError) GetPayload() *models.Json500error
type UploadImageOK ¶
type UploadImageOK struct {
}
UploadImageOK describes a response with status code 200, with default header values.
Upload Successful
func NewUploadImageOK ¶
func NewUploadImageOK() *UploadImageOK
NewUploadImageOK creates a UploadImageOK with default headers values
func (*UploadImageOK) Error ¶
func (o *UploadImageOK) Error() string
type UploadImageParams ¶
type UploadImageParams struct {
/* File.
the raw image as application/octet-stream
Format: binary
*/
File io.ReadCloser
/* Ref.
ID of an image
*/
Ref string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
UploadImageParams contains all the parameters to send to the API endpoint
for the upload image operation. Typically these are written to a http.Request.
func NewUploadImageParams ¶
func NewUploadImageParams() *UploadImageParams
NewUploadImageParams creates a new UploadImageParams 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 NewUploadImageParamsWithContext ¶
func NewUploadImageParamsWithContext(ctx context.Context) *UploadImageParams
NewUploadImageParamsWithContext creates a new UploadImageParams object with the ability to set a context for a request.
func NewUploadImageParamsWithHTTPClient ¶
func NewUploadImageParamsWithHTTPClient(client *http.Client) *UploadImageParams
NewUploadImageParamsWithHTTPClient creates a new UploadImageParams object with the ability to set a custom HTTPClient for a request.
func NewUploadImageParamsWithTimeout ¶
func NewUploadImageParamsWithTimeout(timeout time.Duration) *UploadImageParams
NewUploadImageParamsWithTimeout creates a new UploadImageParams object with the ability to set a timeout on a request.
func (*UploadImageParams) SetContext ¶
func (o *UploadImageParams) SetContext(ctx context.Context)
SetContext adds the context to the upload image params
func (*UploadImageParams) SetDefaults ¶
func (o *UploadImageParams) SetDefaults()
SetDefaults hydrates default values in the upload image params (not the query body).
All values with no default are reset to their zero value.
func (*UploadImageParams) SetFile ¶
func (o *UploadImageParams) SetFile(file io.ReadCloser)
SetFile adds the file to the upload image params
func (*UploadImageParams) SetHTTPClient ¶
func (o *UploadImageParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the upload image params
func (*UploadImageParams) SetRef ¶
func (o *UploadImageParams) SetRef(ref string)
SetRef adds the ref to the upload image params
func (*UploadImageParams) SetTimeout ¶
func (o *UploadImageParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the upload image params
func (*UploadImageParams) WithContext ¶
func (o *UploadImageParams) WithContext(ctx context.Context) *UploadImageParams
WithContext adds the context to the upload image params
func (*UploadImageParams) WithDefaults ¶
func (o *UploadImageParams) WithDefaults() *UploadImageParams
WithDefaults hydrates default values in the upload image params (not the query body).
All values with no default are reset to their zero value.
func (*UploadImageParams) WithFile ¶
func (o *UploadImageParams) WithFile(file io.ReadCloser) *UploadImageParams
WithFile adds the file to the upload image params
func (*UploadImageParams) WithHTTPClient ¶
func (o *UploadImageParams) WithHTTPClient(client *http.Client) *UploadImageParams
WithHTTPClient adds the HTTPClient to the upload image params
func (*UploadImageParams) WithRef ¶
func (o *UploadImageParams) WithRef(ref string) *UploadImageParams
WithRef adds the ref to the upload image params
func (*UploadImageParams) WithTimeout ¶
func (o *UploadImageParams) WithTimeout(timeout time.Duration) *UploadImageParams
WithTimeout adds the timeout to the upload image params
func (*UploadImageParams) WriteToRequest ¶
func (o *UploadImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UploadImageReader ¶
type UploadImageReader struct {
// contains filtered or unexported fields
}
UploadImageReader is a Reader for the UploadImage structure.
func (*UploadImageReader) ReadResponse ¶
func (o *UploadImageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UploadImageUnauthorized ¶
type UploadImageUnauthorized struct {
}
UploadImageUnauthorized describes a response with status code 401, with default header values.
Not authorized to upload this image
func NewUploadImageUnauthorized ¶
func NewUploadImageUnauthorized() *UploadImageUnauthorized
NewUploadImageUnauthorized creates a UploadImageUnauthorized with default headers values
func (*UploadImageUnauthorized) Error ¶
func (o *UploadImageUnauthorized) Error() string
func (*UploadImageUnauthorized) GetPayload ¶
func (o *UploadImageUnauthorized) GetPayload() *models.Json401error