image

package
v0.0.0-...-eff1da9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

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

func (a *Client) GetImage(params *GetImageParams, authInfo runtime.ClientAuthInfoWriter) (*GetImageOK, error)

GetImage Get the information available for the specified image.

func (*Client) ListRepositoryImages

func (a *Client) ListRepositoryImages(params *ListRepositoryImagesParams, authInfo runtime.ClientAuthInfoWriter) (*ListRepositoryImagesOK, error)

ListRepositoryImages List the images for the specified repository.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetImage(params *GetImageParams, authInfo runtime.ClientAuthInfoWriter) (*GetImageOK, error)

	ListRepositoryImages(params *ListRepositoryImagesParams, authInfo runtime.ClientAuthInfoWriter) (*ListRepositoryImagesOK, 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 GetImageBadRequest

type GetImageBadRequest struct {
	Payload *models.APIError
}

GetImageBadRequest handles this case with default header values.

Bad Request

func NewGetImageBadRequest

func NewGetImageBadRequest() *GetImageBadRequest

NewGetImageBadRequest creates a GetImageBadRequest with default headers values

func (*GetImageBadRequest) Error

func (o *GetImageBadRequest) Error() string

func (*GetImageBadRequest) GetPayload

func (o *GetImageBadRequest) GetPayload() *models.APIError

type GetImageForbidden

type GetImageForbidden struct {
	Payload *models.APIError
}

GetImageForbidden handles this case with default header values.

Unauthorized access

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.APIError

type GetImageNotFound

type GetImageNotFound struct {
	Payload *models.APIError
}

GetImageNotFound handles this case with default header values.

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.APIError

type GetImageOK

type GetImageOK struct {
}

GetImageOK handles this case with default header values.

Successful invocation

func NewGetImageOK

func NewGetImageOK() *GetImageOK

NewGetImageOK creates a GetImageOK with default headers values

func (*GetImageOK) Error

func (o *GetImageOK) Error() string

type GetImageParams

type GetImageParams struct {

	/*ImageID
	  The Docker image ID

	*/
	ImageID string
	/*Repository
	  The full path of the repository. e.g. namespace/name

	*/
	Repository 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 values initialized.

func NewGetImageParamsWithContext

func NewGetImageParamsWithContext(ctx context.Context) *GetImageParams

NewGetImageParamsWithContext creates a new GetImageParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get image params

func (*GetImageParams) SetImageID

func (o *GetImageParams) SetImageID(imageID string)

SetImageID adds the imageId to the get image params

func (*GetImageParams) SetRepository

func (o *GetImageParams) SetRepository(repository string)

SetRepository adds the repository 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) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get image params

func (*GetImageParams) WithImageID

func (o *GetImageParams) WithImageID(imageID string) *GetImageParams

WithImageID adds the imageID to the get image params

func (*GetImageParams) WithRepository

func (o *GetImageParams) WithRepository(repository string) *GetImageParams

WithRepository adds the repository 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 {
	Payload *models.APIError
}

GetImageUnauthorized handles this case with default header values.

Session required

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.APIError

type ListRepositoryImagesBadRequest

type ListRepositoryImagesBadRequest struct {
	Payload *models.APIError
}

ListRepositoryImagesBadRequest handles this case with default header values.

Bad Request

func NewListRepositoryImagesBadRequest

func NewListRepositoryImagesBadRequest() *ListRepositoryImagesBadRequest

NewListRepositoryImagesBadRequest creates a ListRepositoryImagesBadRequest with default headers values

func (*ListRepositoryImagesBadRequest) Error

func (*ListRepositoryImagesBadRequest) GetPayload

type ListRepositoryImagesForbidden

type ListRepositoryImagesForbidden struct {
	Payload *models.APIError
}

ListRepositoryImagesForbidden handles this case with default header values.

Unauthorized access

func NewListRepositoryImagesForbidden

func NewListRepositoryImagesForbidden() *ListRepositoryImagesForbidden

NewListRepositoryImagesForbidden creates a ListRepositoryImagesForbidden with default headers values

func (*ListRepositoryImagesForbidden) Error

func (*ListRepositoryImagesForbidden) GetPayload

type ListRepositoryImagesNotFound

type ListRepositoryImagesNotFound struct {
	Payload *models.APIError
}

ListRepositoryImagesNotFound handles this case with default header values.

Not found

func NewListRepositoryImagesNotFound

func NewListRepositoryImagesNotFound() *ListRepositoryImagesNotFound

NewListRepositoryImagesNotFound creates a ListRepositoryImagesNotFound with default headers values

func (*ListRepositoryImagesNotFound) Error

func (*ListRepositoryImagesNotFound) GetPayload

func (o *ListRepositoryImagesNotFound) GetPayload() *models.APIError

type ListRepositoryImagesOK

type ListRepositoryImagesOK struct {
}

ListRepositoryImagesOK handles this case with default header values.

Successful invocation

func NewListRepositoryImagesOK

func NewListRepositoryImagesOK() *ListRepositoryImagesOK

NewListRepositoryImagesOK creates a ListRepositoryImagesOK with default headers values

func (*ListRepositoryImagesOK) Error

func (o *ListRepositoryImagesOK) Error() string

type ListRepositoryImagesParams

type ListRepositoryImagesParams struct {

	/*Repository
	  The full path of the repository. e.g. namespace/name

	*/
	Repository string

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

ListRepositoryImagesParams contains all the parameters to send to the API endpoint for the list repository images operation typically these are written to a http.Request

func NewListRepositoryImagesParams

func NewListRepositoryImagesParams() *ListRepositoryImagesParams

NewListRepositoryImagesParams creates a new ListRepositoryImagesParams object with the default values initialized.

func NewListRepositoryImagesParamsWithContext

func NewListRepositoryImagesParamsWithContext(ctx context.Context) *ListRepositoryImagesParams

NewListRepositoryImagesParamsWithContext creates a new ListRepositoryImagesParams object with the default values initialized, and the ability to set a context for a request

func NewListRepositoryImagesParamsWithHTTPClient

func NewListRepositoryImagesParamsWithHTTPClient(client *http.Client) *ListRepositoryImagesParams

NewListRepositoryImagesParamsWithHTTPClient creates a new ListRepositoryImagesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListRepositoryImagesParamsWithTimeout

func NewListRepositoryImagesParamsWithTimeout(timeout time.Duration) *ListRepositoryImagesParams

NewListRepositoryImagesParamsWithTimeout creates a new ListRepositoryImagesParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListRepositoryImagesParams) SetContext

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

SetContext adds the context to the list repository images params

func (*ListRepositoryImagesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list repository images params

func (*ListRepositoryImagesParams) SetRepository

func (o *ListRepositoryImagesParams) SetRepository(repository string)

SetRepository adds the repository to the list repository images params

func (*ListRepositoryImagesParams) SetTimeout

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

SetTimeout adds the timeout to the list repository images params

func (*ListRepositoryImagesParams) WithContext

WithContext adds the context to the list repository images params

func (*ListRepositoryImagesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list repository images params

func (*ListRepositoryImagesParams) WithRepository

func (o *ListRepositoryImagesParams) WithRepository(repository string) *ListRepositoryImagesParams

WithRepository adds the repository to the list repository images params

func (*ListRepositoryImagesParams) WithTimeout

WithTimeout adds the timeout to the list repository images params

func (*ListRepositoryImagesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListRepositoryImagesReader

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

ListRepositoryImagesReader is a Reader for the ListRepositoryImages structure.

func (*ListRepositoryImagesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListRepositoryImagesUnauthorized

type ListRepositoryImagesUnauthorized struct {
	Payload *models.APIError
}

ListRepositoryImagesUnauthorized handles this case with default header values.

Session required

func NewListRepositoryImagesUnauthorized

func NewListRepositoryImagesUnauthorized() *ListRepositoryImagesUnauthorized

NewListRepositoryImagesUnauthorized creates a ListRepositoryImagesUnauthorized with default headers values

func (*ListRepositoryImagesUnauthorized) Error

func (*ListRepositoryImagesUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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