image

package
v0.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 11 Imported by: 4

Documentation

Index

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) (*CreateImageCreated, error)

CreateImage creates an image if the given ID already exists a conflict is returned

func (*Client) DeleteImage

func (a *Client) DeleteImage(params *DeleteImageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteImageOK, error)

DeleteImage deletes an image and returns the deleted entity

func (*Client) FindImage

func (a *Client) FindImage(params *FindImageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindImageOK, error)

FindImage gets image by id

func (*Client) FindLatestImage added in v0.7.5

func (a *Client) FindLatestImage(params *FindLatestImageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindLatestImageOK, error)

FindLatestImage finds latest image by id

func (*Client) ListImages

func (a *Client) ListImages(params *ListImagesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListImagesOK, error)

ListImages gets all images

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateImage

func (a *Client) UpdateImage(params *UpdateImageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateImageOK, error)

UpdateImage updates an image if the image was changed since this one was read a conflict is returned

type ClientOption added in v0.13.1

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.11.0

type ClientService interface {
	CreateImage(params *CreateImageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateImageCreated, error)

	DeleteImage(params *DeleteImageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteImageOK, error)

	FindImage(params *FindImageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindImageOK, error)

	FindLatestImage(params *FindLatestImageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindLatestImageOK, error)

	ListImages(params *ListImagesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListImagesOK, error)

	UpdateImage(params *UpdateImageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateImageOK, 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 CreateImageConflict

type CreateImageConflict struct {
	Payload *httperrors.HTTPErrorResponse
}
CreateImageConflict describes a response with status code 409, with default header values.

Conflict

func NewCreateImageConflict

func NewCreateImageConflict() *CreateImageConflict

NewCreateImageConflict creates a CreateImageConflict with default headers values

func (*CreateImageConflict) Error

func (o *CreateImageConflict) Error() string

func (*CreateImageConflict) GetPayload added in v0.11.0

type CreateImageCreated

type CreateImageCreated struct {
	Payload *models.V1ImageResponse
}
CreateImageCreated describes a response with status code 201, with default header values.

Created

func NewCreateImageCreated

func NewCreateImageCreated() *CreateImageCreated

NewCreateImageCreated creates a CreateImageCreated with default headers values

func (*CreateImageCreated) Error

func (o *CreateImageCreated) Error() string

func (*CreateImageCreated) GetPayload added in v0.11.0

func (o *CreateImageCreated) GetPayload() *models.V1ImageResponse

type CreateImageDefault

type CreateImageDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}
CreateImageDefault describes a response with status code -1, with default header values.

Error

func NewCreateImageDefault

func NewCreateImageDefault(code int) *CreateImageDefault

NewCreateImageDefault creates a CreateImageDefault with default headers values

func (*CreateImageDefault) Code

func (o *CreateImageDefault) Code() int

Code gets the status code for the create image default response

func (*CreateImageDefault) Error

func (o *CreateImageDefault) Error() string

func (*CreateImageDefault) GetPayload added in v0.11.0

type CreateImageParams

type CreateImageParams struct {

	// Body.
	Body *models.V1ImageCreateRequest

	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) SetBody

func (o *CreateImageParams) SetBody(body *models.V1ImageCreateRequest)

SetBody adds the body to the create image params

func (*CreateImageParams) SetContext

func (o *CreateImageParams) SetContext(ctx context.Context)

SetContext adds the context to the create image params

func (*CreateImageParams) SetDefaults added in v0.12.1

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) SetTimeout

func (o *CreateImageParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create image params

func (*CreateImageParams) WithBody

WithBody adds the body 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 added in v0.12.1

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) 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 DeleteImageDefault

type DeleteImageDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}
DeleteImageDefault describes a response with status code -1, with default header values.

Error

func NewDeleteImageDefault

func NewDeleteImageDefault(code int) *DeleteImageDefault

NewDeleteImageDefault creates a DeleteImageDefault with default headers values

func (*DeleteImageDefault) Code

func (o *DeleteImageDefault) Code() int

Code gets the status code for the delete image default response

func (*DeleteImageDefault) Error

func (o *DeleteImageDefault) Error() string

func (*DeleteImageDefault) GetPayload added in v0.11.0

type DeleteImageOK

type DeleteImageOK struct {
	Payload *models.V1ImageResponse
}
DeleteImageOK describes a response with status code 200, with default header values.

OK

func NewDeleteImageOK

func NewDeleteImageOK() *DeleteImageOK

NewDeleteImageOK creates a DeleteImageOK with default headers values

func (*DeleteImageOK) Error

func (o *DeleteImageOK) Error() string

func (*DeleteImageOK) GetPayload added in v0.11.0

func (o *DeleteImageOK) GetPayload() *models.V1ImageResponse

type DeleteImageParams

type DeleteImageParams struct {

	/* ID.

	   identifier of the image
	*/
	ID 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 added in v0.12.1

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) SetID

func (o *DeleteImageParams) SetID(id string)

SetID adds the id 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 added in v0.12.1

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) WithID

WithID adds the id 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 FindImageDefault

type FindImageDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}
FindImageDefault describes a response with status code -1, with default header values.

Error

func NewFindImageDefault

func NewFindImageDefault(code int) *FindImageDefault

NewFindImageDefault creates a FindImageDefault with default headers values

func (*FindImageDefault) Code

func (o *FindImageDefault) Code() int

Code gets the status code for the find image default response

func (*FindImageDefault) Error

func (o *FindImageDefault) Error() string

func (*FindImageDefault) GetPayload added in v0.11.0

type FindImageOK

type FindImageOK struct {
	Payload *models.V1ImageResponse
}
FindImageOK describes a response with status code 200, with default header values.

OK

func NewFindImageOK

func NewFindImageOK() *FindImageOK

NewFindImageOK creates a FindImageOK with default headers values

func (*FindImageOK) Error

func (o *FindImageOK) Error() string

func (*FindImageOK) GetPayload added in v0.11.0

func (o *FindImageOK) GetPayload() *models.V1ImageResponse

type FindImageParams

type FindImageParams struct {

	/* ID.

	   identifier of the image
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

FindImageParams contains all the parameters to send to the API endpoint

for the find image operation.

Typically these are written to a http.Request.

func NewFindImageParams

func NewFindImageParams() *FindImageParams

NewFindImageParams creates a new FindImageParams 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 NewFindImageParamsWithContext

func NewFindImageParamsWithContext(ctx context.Context) *FindImageParams

NewFindImageParamsWithContext creates a new FindImageParams object with the ability to set a context for a request.

func NewFindImageParamsWithHTTPClient

func NewFindImageParamsWithHTTPClient(client *http.Client) *FindImageParams

NewFindImageParamsWithHTTPClient creates a new FindImageParams object with the ability to set a custom HTTPClient for a request.

func NewFindImageParamsWithTimeout

func NewFindImageParamsWithTimeout(timeout time.Duration) *FindImageParams

NewFindImageParamsWithTimeout creates a new FindImageParams object with the ability to set a timeout on a request.

func (*FindImageParams) SetContext

func (o *FindImageParams) SetContext(ctx context.Context)

SetContext adds the context to the find image params

func (*FindImageParams) SetDefaults added in v0.12.1

func (o *FindImageParams) SetDefaults()

SetDefaults hydrates default values in the find image params (not the query body).

All values with no default are reset to their zero value.

func (*FindImageParams) SetHTTPClient

func (o *FindImageParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the find image params

func (*FindImageParams) SetID

func (o *FindImageParams) SetID(id string)

SetID adds the id to the find image params

func (*FindImageParams) SetTimeout

func (o *FindImageParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the find image params

func (*FindImageParams) WithContext

func (o *FindImageParams) WithContext(ctx context.Context) *FindImageParams

WithContext adds the context to the find image params

func (*FindImageParams) WithDefaults added in v0.12.1

func (o *FindImageParams) WithDefaults() *FindImageParams

WithDefaults hydrates default values in the find image params (not the query body).

All values with no default are reset to their zero value.

func (*FindImageParams) WithHTTPClient

func (o *FindImageParams) WithHTTPClient(client *http.Client) *FindImageParams

WithHTTPClient adds the HTTPClient to the find image params

func (*FindImageParams) WithID

func (o *FindImageParams) WithID(id string) *FindImageParams

WithID adds the id to the find image params

func (*FindImageParams) WithTimeout

func (o *FindImageParams) WithTimeout(timeout time.Duration) *FindImageParams

WithTimeout adds the timeout to the find image params

func (*FindImageParams) WriteToRequest

func (o *FindImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type FindImageReader

type FindImageReader struct {
	// contains filtered or unexported fields
}

FindImageReader is a Reader for the FindImage structure.

func (*FindImageReader) ReadResponse

func (o *FindImageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type FindLatestImageDefault added in v0.7.5

type FindLatestImageDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}
FindLatestImageDefault describes a response with status code -1, with default header values.

Error

func NewFindLatestImageDefault added in v0.7.5

func NewFindLatestImageDefault(code int) *FindLatestImageDefault

NewFindLatestImageDefault creates a FindLatestImageDefault with default headers values

func (*FindLatestImageDefault) Code added in v0.7.5

func (o *FindLatestImageDefault) Code() int

Code gets the status code for the find latest image default response

func (*FindLatestImageDefault) Error added in v0.7.5

func (o *FindLatestImageDefault) Error() string

func (*FindLatestImageDefault) GetPayload added in v0.11.0

type FindLatestImageOK added in v0.7.5

type FindLatestImageOK struct {
	Payload *models.V1ImageResponse
}
FindLatestImageOK describes a response with status code 200, with default header values.

OK

func NewFindLatestImageOK added in v0.7.5

func NewFindLatestImageOK() *FindLatestImageOK

NewFindLatestImageOK creates a FindLatestImageOK with default headers values

func (*FindLatestImageOK) Error added in v0.7.5

func (o *FindLatestImageOK) Error() string

func (*FindLatestImageOK) GetPayload added in v0.11.0

func (o *FindLatestImageOK) GetPayload() *models.V1ImageResponse

type FindLatestImageParams added in v0.7.5

type FindLatestImageParams struct {

	/* ID.

	   identifier of the image
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

FindLatestImageParams contains all the parameters to send to the API endpoint

for the find latest image operation.

Typically these are written to a http.Request.

func NewFindLatestImageParams added in v0.7.5

func NewFindLatestImageParams() *FindLatestImageParams

NewFindLatestImageParams creates a new FindLatestImageParams 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 NewFindLatestImageParamsWithContext added in v0.7.5

func NewFindLatestImageParamsWithContext(ctx context.Context) *FindLatestImageParams

NewFindLatestImageParamsWithContext creates a new FindLatestImageParams object with the ability to set a context for a request.

func NewFindLatestImageParamsWithHTTPClient added in v0.7.5

func NewFindLatestImageParamsWithHTTPClient(client *http.Client) *FindLatestImageParams

NewFindLatestImageParamsWithHTTPClient creates a new FindLatestImageParams object with the ability to set a custom HTTPClient for a request.

func NewFindLatestImageParamsWithTimeout added in v0.7.5

func NewFindLatestImageParamsWithTimeout(timeout time.Duration) *FindLatestImageParams

NewFindLatestImageParamsWithTimeout creates a new FindLatestImageParams object with the ability to set a timeout on a request.

func (*FindLatestImageParams) SetContext added in v0.7.5

func (o *FindLatestImageParams) SetContext(ctx context.Context)

SetContext adds the context to the find latest image params

func (*FindLatestImageParams) SetDefaults added in v0.12.1

func (o *FindLatestImageParams) SetDefaults()

SetDefaults hydrates default values in the find latest image params (not the query body).

All values with no default are reset to their zero value.

func (*FindLatestImageParams) SetHTTPClient added in v0.7.5

func (o *FindLatestImageParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the find latest image params

func (*FindLatestImageParams) SetID added in v0.7.5

func (o *FindLatestImageParams) SetID(id string)

SetID adds the id to the find latest image params

func (*FindLatestImageParams) SetTimeout added in v0.7.5

func (o *FindLatestImageParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the find latest image params

func (*FindLatestImageParams) WithContext added in v0.7.5

WithContext adds the context to the find latest image params

func (*FindLatestImageParams) WithDefaults added in v0.12.1

func (o *FindLatestImageParams) WithDefaults() *FindLatestImageParams

WithDefaults hydrates default values in the find latest image params (not the query body).

All values with no default are reset to their zero value.

func (*FindLatestImageParams) WithHTTPClient added in v0.7.5

func (o *FindLatestImageParams) WithHTTPClient(client *http.Client) *FindLatestImageParams

WithHTTPClient adds the HTTPClient to the find latest image params

func (*FindLatestImageParams) WithID added in v0.7.5

WithID adds the id to the find latest image params

func (*FindLatestImageParams) WithTimeout added in v0.7.5

func (o *FindLatestImageParams) WithTimeout(timeout time.Duration) *FindLatestImageParams

WithTimeout adds the timeout to the find latest image params

func (*FindLatestImageParams) WriteToRequest added in v0.7.5

func (o *FindLatestImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type FindLatestImageReader added in v0.7.5

type FindLatestImageReader struct {
	// contains filtered or unexported fields
}

FindLatestImageReader is a Reader for the FindLatestImage structure.

func (*FindLatestImageReader) ReadResponse added in v0.7.5

func (o *FindLatestImageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListImagesDefault

type ListImagesDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}
ListImagesDefault describes a response with status code -1, with default header values.

Error

func NewListImagesDefault

func NewListImagesDefault(code int) *ListImagesDefault

NewListImagesDefault creates a ListImagesDefault with default headers values

func (*ListImagesDefault) Code

func (o *ListImagesDefault) Code() int

Code gets the status code for the list images default response

func (*ListImagesDefault) Error

func (o *ListImagesDefault) Error() string

func (*ListImagesDefault) GetPayload added in v0.11.0

type ListImagesOK

type ListImagesOK struct {
	Payload []*models.V1ImageResponse
}
ListImagesOK describes a response with status code 200, with default header values.

OK

func NewListImagesOK

func NewListImagesOK() *ListImagesOK

NewListImagesOK creates a ListImagesOK with default headers values

func (*ListImagesOK) Error

func (o *ListImagesOK) Error() string

func (*ListImagesOK) GetPayload added in v0.11.0

func (o *ListImagesOK) GetPayload() []*models.V1ImageResponse

type ListImagesParams

type ListImagesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListImagesParams contains all the parameters to send to the API endpoint

for the list images operation.

Typically these are written to a http.Request.

func NewListImagesParams

func NewListImagesParams() *ListImagesParams

NewListImagesParams creates a new ListImagesParams 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 NewListImagesParamsWithContext

func NewListImagesParamsWithContext(ctx context.Context) *ListImagesParams

NewListImagesParamsWithContext creates a new ListImagesParams object with the ability to set a context for a request.

func NewListImagesParamsWithHTTPClient

func NewListImagesParamsWithHTTPClient(client *http.Client) *ListImagesParams

NewListImagesParamsWithHTTPClient creates a new ListImagesParams object with the ability to set a custom HTTPClient for a request.

func NewListImagesParamsWithTimeout

func NewListImagesParamsWithTimeout(timeout time.Duration) *ListImagesParams

NewListImagesParamsWithTimeout creates a new ListImagesParams object with the ability to set a timeout on a request.

func (*ListImagesParams) SetContext

func (o *ListImagesParams) SetContext(ctx context.Context)

SetContext adds the context to the list images params

func (*ListImagesParams) SetDefaults added in v0.12.1

func (o *ListImagesParams) SetDefaults()

SetDefaults hydrates default values in the list images params (not the query body).

All values with no default are reset to their zero value.

func (*ListImagesParams) SetHTTPClient

func (o *ListImagesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list images params

func (*ListImagesParams) SetTimeout

func (o *ListImagesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list images params

func (*ListImagesParams) WithContext

func (o *ListImagesParams) WithContext(ctx context.Context) *ListImagesParams

WithContext adds the context to the list images params

func (*ListImagesParams) WithDefaults added in v0.12.1

func (o *ListImagesParams) WithDefaults() *ListImagesParams

WithDefaults hydrates default values in the list images params (not the query body).

All values with no default are reset to their zero value.

func (*ListImagesParams) WithHTTPClient

func (o *ListImagesParams) WithHTTPClient(client *http.Client) *ListImagesParams

WithHTTPClient adds the HTTPClient to the list images params

func (*ListImagesParams) WithTimeout

func (o *ListImagesParams) WithTimeout(timeout time.Duration) *ListImagesParams

WithTimeout adds the timeout to the list images params

func (*ListImagesParams) WriteToRequest

func (o *ListImagesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListImagesReader

type ListImagesReader struct {
	// contains filtered or unexported fields
}

ListImagesReader is a Reader for the ListImages structure.

func (*ListImagesReader) ReadResponse

func (o *ListImagesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateImageConflict

type UpdateImageConflict struct {
	Payload *httperrors.HTTPErrorResponse
}
UpdateImageConflict describes a response with status code 409, with default header values.

Conflict

func NewUpdateImageConflict

func NewUpdateImageConflict() *UpdateImageConflict

NewUpdateImageConflict creates a UpdateImageConflict with default headers values

func (*UpdateImageConflict) Error

func (o *UpdateImageConflict) Error() string

func (*UpdateImageConflict) GetPayload added in v0.11.0

type UpdateImageDefault

type UpdateImageDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}
UpdateImageDefault describes a response with status code -1, with default header values.

Error

func NewUpdateImageDefault

func NewUpdateImageDefault(code int) *UpdateImageDefault

NewUpdateImageDefault creates a UpdateImageDefault with default headers values

func (*UpdateImageDefault) Code

func (o *UpdateImageDefault) Code() int

Code gets the status code for the update image default response

func (*UpdateImageDefault) Error

func (o *UpdateImageDefault) Error() string

func (*UpdateImageDefault) GetPayload added in v0.11.0

type UpdateImageOK

type UpdateImageOK struct {
	Payload *models.V1ImageResponse
}
UpdateImageOK describes a response with status code 200, with default header values.

OK

func NewUpdateImageOK

func NewUpdateImageOK() *UpdateImageOK

NewUpdateImageOK creates a UpdateImageOK with default headers values

func (*UpdateImageOK) Error

func (o *UpdateImageOK) Error() string

func (*UpdateImageOK) GetPayload added in v0.11.0

func (o *UpdateImageOK) GetPayload() *models.V1ImageResponse

type UpdateImageParams

type UpdateImageParams struct {

	// Body.
	Body *models.V1ImageUpdateRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateImageParams contains all the parameters to send to the API endpoint

for the update image operation.

Typically these are written to a http.Request.

func NewUpdateImageParams

func NewUpdateImageParams() *UpdateImageParams

NewUpdateImageParams creates a new UpdateImageParams 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 NewUpdateImageParamsWithContext

func NewUpdateImageParamsWithContext(ctx context.Context) *UpdateImageParams

NewUpdateImageParamsWithContext creates a new UpdateImageParams object with the ability to set a context for a request.

func NewUpdateImageParamsWithHTTPClient

func NewUpdateImageParamsWithHTTPClient(client *http.Client) *UpdateImageParams

NewUpdateImageParamsWithHTTPClient creates a new UpdateImageParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateImageParamsWithTimeout

func NewUpdateImageParamsWithTimeout(timeout time.Duration) *UpdateImageParams

NewUpdateImageParamsWithTimeout creates a new UpdateImageParams object with the ability to set a timeout on a request.

func (*UpdateImageParams) SetBody

func (o *UpdateImageParams) SetBody(body *models.V1ImageUpdateRequest)

SetBody adds the body to the update image params

func (*UpdateImageParams) SetContext

func (o *UpdateImageParams) SetContext(ctx context.Context)

SetContext adds the context to the update image params

func (*UpdateImageParams) SetDefaults added in v0.12.1

func (o *UpdateImageParams) SetDefaults()

SetDefaults hydrates default values in the update image params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateImageParams) SetHTTPClient

func (o *UpdateImageParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update image params

func (*UpdateImageParams) SetTimeout

func (o *UpdateImageParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update image params

func (*UpdateImageParams) WithBody

WithBody adds the body to the update image params

func (*UpdateImageParams) WithContext

func (o *UpdateImageParams) WithContext(ctx context.Context) *UpdateImageParams

WithContext adds the context to the update image params

func (*UpdateImageParams) WithDefaults added in v0.12.1

func (o *UpdateImageParams) WithDefaults() *UpdateImageParams

WithDefaults hydrates default values in the update image params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateImageParams) WithHTTPClient

func (o *UpdateImageParams) WithHTTPClient(client *http.Client) *UpdateImageParams

WithHTTPClient adds the HTTPClient to the update image params

func (*UpdateImageParams) WithTimeout

func (o *UpdateImageParams) WithTimeout(timeout time.Duration) *UpdateImageParams

WithTimeout adds the timeout to the update image params

func (*UpdateImageParams) WriteToRequest

func (o *UpdateImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateImageReader

type UpdateImageReader struct {
	// contains filtered or unexported fields
}

UpdateImageReader is a Reader for the UpdateImage structure.

func (*UpdateImageReader) ReadResponse

func (o *UpdateImageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL