images

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 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 images API

func (*Client) GetImages

func (a *Client) GetImages(params *GetImagesParams, opts ...ClientOption) (*GetImagesOK, error)

GetImages gets images

Get all images defined in ImageProfile.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v0.2.20

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.2.18

type ClientService interface {
	GetImages(params *GetImagesParams, opts ...ClientOption) (*GetImagesOK, 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 images API client.

type GetImagesForbidden

type GetImagesForbidden struct {
	Payload *models.ServiceErrorResponse
}
GetImagesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetImagesForbidden

func NewGetImagesForbidden() *GetImagesForbidden

NewGetImagesForbidden creates a GetImagesForbidden with default headers values

func (*GetImagesForbidden) Error

func (o *GetImagesForbidden) Error() string

func (*GetImagesForbidden) GetPayload added in v0.2.20

type GetImagesOK

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

successful operation

func NewGetImagesOK

func NewGetImagesOK() *GetImagesOK

NewGetImagesOK creates a GetImagesOK with default headers values

func (*GetImagesOK) Error

func (o *GetImagesOK) Error() string

func (*GetImagesOK) GetPayload

func (o *GetImagesOK) GetPayload() *models.ImageResult

type GetImagesParams

type GetImagesParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

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

GetImagesParams contains all the parameters to send to the API endpoint

for the get images operation.

Typically these are written to a http.Request.

func NewGetImagesParams

func NewGetImagesParams() *GetImagesParams

NewGetImagesParams creates a new GetImagesParams 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 NewGetImagesParamsWithContext

func NewGetImagesParamsWithContext(ctx context.Context) *GetImagesParams

NewGetImagesParamsWithContext creates a new GetImagesParams object with the ability to set a context for a request.

func NewGetImagesParamsWithHTTPClient

func NewGetImagesParamsWithHTTPClient(client *http.Client) *GetImagesParams

NewGetImagesParamsWithHTTPClient creates a new GetImagesParams object with the ability to set a custom HTTPClient for a request.

func NewGetImagesParamsWithTimeout

func NewGetImagesParamsWithTimeout(timeout time.Duration) *GetImagesParams

NewGetImagesParamsWithTimeout creates a new GetImagesParams object with the ability to set a timeout on a request.

func (*GetImagesParams) SetAPIVersion

func (o *GetImagesParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get images params

func (*GetImagesParams) SetContext

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

SetContext adds the context to the get images params

func (*GetImagesParams) SetDefaults added in v0.2.20

func (o *GetImagesParams) SetDefaults()

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

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

func (*GetImagesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get images params

func (*GetImagesParams) SetTimeout

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

SetTimeout adds the timeout to the get images params

func (*GetImagesParams) WithAPIVersion

func (o *GetImagesParams) WithAPIVersion(aPIVersion *string) *GetImagesParams

WithAPIVersion adds the aPIVersion to the get images params

func (*GetImagesParams) WithContext

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

WithContext adds the context to the get images params

func (*GetImagesParams) WithDefaults added in v0.2.20

func (o *GetImagesParams) WithDefaults() *GetImagesParams

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

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

func (*GetImagesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get images params

func (*GetImagesParams) WithTimeout

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

WithTimeout adds the timeout to the get images params

func (*GetImagesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetImagesReader

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

GetImagesReader is a Reader for the GetImages structure.

func (*GetImagesReader) ReadResponse

func (o *GetImagesReader) 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