images

package
v0.0.0-...-7b99a6d Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 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) SearchImages

func (a *Client) SearchImages(params *SearchImagesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchImagesOK, error)

SearchImages searches images

Returns list of images that match search query.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	SearchImages(params *SearchImagesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchImagesOK, 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 SearchImagesBadRequest

type SearchImagesBadRequest struct {
	Payload *models.Error
}

SearchImagesBadRequest describes a response with status code 400, with default header values.

Bad request

func NewSearchImagesBadRequest

func NewSearchImagesBadRequest() *SearchImagesBadRequest

NewSearchImagesBadRequest creates a SearchImagesBadRequest with default headers values

func (*SearchImagesBadRequest) Code

func (o *SearchImagesBadRequest) Code() int

Code gets the status code for the search images bad request response

func (*SearchImagesBadRequest) Error

func (o *SearchImagesBadRequest) Error() string

func (*SearchImagesBadRequest) GetPayload

func (o *SearchImagesBadRequest) GetPayload() *models.Error

func (*SearchImagesBadRequest) IsClientError

func (o *SearchImagesBadRequest) IsClientError() bool

IsClientError returns true when this search images bad request response has a 4xx status code

func (*SearchImagesBadRequest) IsCode

func (o *SearchImagesBadRequest) IsCode(code int) bool

IsCode returns true when this search images bad request response a status code equal to that given

func (*SearchImagesBadRequest) IsRedirect

func (o *SearchImagesBadRequest) IsRedirect() bool

IsRedirect returns true when this search images bad request response has a 3xx status code

func (*SearchImagesBadRequest) IsServerError

func (o *SearchImagesBadRequest) IsServerError() bool

IsServerError returns true when this search images bad request response has a 5xx status code

func (*SearchImagesBadRequest) IsSuccess

func (o *SearchImagesBadRequest) IsSuccess() bool

IsSuccess returns true when this search images bad request response has a 2xx status code

func (*SearchImagesBadRequest) String

func (o *SearchImagesBadRequest) String() string

type SearchImagesForbidden

type SearchImagesForbidden struct {
	Payload *models.Error
}

SearchImagesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewSearchImagesForbidden

func NewSearchImagesForbidden() *SearchImagesForbidden

NewSearchImagesForbidden creates a SearchImagesForbidden with default headers values

func (*SearchImagesForbidden) Code

func (o *SearchImagesForbidden) Code() int

Code gets the status code for the search images forbidden response

func (*SearchImagesForbidden) Error

func (o *SearchImagesForbidden) Error() string

func (*SearchImagesForbidden) GetPayload

func (o *SearchImagesForbidden) GetPayload() *models.Error

func (*SearchImagesForbidden) IsClientError

func (o *SearchImagesForbidden) IsClientError() bool

IsClientError returns true when this search images forbidden response has a 4xx status code

func (*SearchImagesForbidden) IsCode

func (o *SearchImagesForbidden) IsCode(code int) bool

IsCode returns true when this search images forbidden response a status code equal to that given

func (*SearchImagesForbidden) IsRedirect

func (o *SearchImagesForbidden) IsRedirect() bool

IsRedirect returns true when this search images forbidden response has a 3xx status code

func (*SearchImagesForbidden) IsServerError

func (o *SearchImagesForbidden) IsServerError() bool

IsServerError returns true when this search images forbidden response has a 5xx status code

func (*SearchImagesForbidden) IsSuccess

func (o *SearchImagesForbidden) IsSuccess() bool

IsSuccess returns true when this search images forbidden response has a 2xx status code

func (*SearchImagesForbidden) String

func (o *SearchImagesForbidden) String() string

type SearchImagesNotFound

type SearchImagesNotFound struct {
	Payload *models.Error
}

SearchImagesNotFound describes a response with status code 404, with default header values.

Not found

func NewSearchImagesNotFound

func NewSearchImagesNotFound() *SearchImagesNotFound

NewSearchImagesNotFound creates a SearchImagesNotFound with default headers values

func (*SearchImagesNotFound) Code

func (o *SearchImagesNotFound) Code() int

Code gets the status code for the search images not found response

func (*SearchImagesNotFound) Error

func (o *SearchImagesNotFound) Error() string

func (*SearchImagesNotFound) GetPayload

func (o *SearchImagesNotFound) GetPayload() *models.Error

func (*SearchImagesNotFound) IsClientError

func (o *SearchImagesNotFound) IsClientError() bool

IsClientError returns true when this search images not found response has a 4xx status code

func (*SearchImagesNotFound) IsCode

func (o *SearchImagesNotFound) IsCode(code int) bool

IsCode returns true when this search images not found response a status code equal to that given

func (*SearchImagesNotFound) IsRedirect

func (o *SearchImagesNotFound) IsRedirect() bool

IsRedirect returns true when this search images not found response has a 3xx status code

func (*SearchImagesNotFound) IsServerError

func (o *SearchImagesNotFound) IsServerError() bool

IsServerError returns true when this search images not found response has a 5xx status code

func (*SearchImagesNotFound) IsSuccess

func (o *SearchImagesNotFound) IsSuccess() bool

IsSuccess returns true when this search images not found response has a 2xx status code

func (*SearchImagesNotFound) String

func (o *SearchImagesNotFound) String() string

type SearchImagesOK

type SearchImagesOK struct {
	Payload *models.Images
}

SearchImagesOK describes a response with status code 200, with default header values.

Images response

func NewSearchImagesOK

func NewSearchImagesOK() *SearchImagesOK

NewSearchImagesOK creates a SearchImagesOK with default headers values

func (*SearchImagesOK) Code

func (o *SearchImagesOK) Code() int

Code gets the status code for the search images o k response

func (*SearchImagesOK) Error

func (o *SearchImagesOK) Error() string

func (*SearchImagesOK) GetPayload

func (o *SearchImagesOK) GetPayload() *models.Images

func (*SearchImagesOK) IsClientError

func (o *SearchImagesOK) IsClientError() bool

IsClientError returns true when this search images o k response has a 4xx status code

func (*SearchImagesOK) IsCode

func (o *SearchImagesOK) IsCode(code int) bool

IsCode returns true when this search images o k response a status code equal to that given

func (*SearchImagesOK) IsRedirect

func (o *SearchImagesOK) IsRedirect() bool

IsRedirect returns true when this search images o k response has a 3xx status code

func (*SearchImagesOK) IsServerError

func (o *SearchImagesOK) IsServerError() bool

IsServerError returns true when this search images o k response has a 5xx status code

func (*SearchImagesOK) IsSuccess

func (o *SearchImagesOK) IsSuccess() bool

IsSuccess returns true when this search images o k response has a 2xx status code

func (*SearchImagesOK) String

func (o *SearchImagesOK) String() string

type SearchImagesParams

type SearchImagesParams struct {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* Q.

	   Query

	   Default: "\"cloudentity\""
	*/
	Q *string

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

SearchImagesParams contains all the parameters to send to the API endpoint

for the search images operation.

Typically these are written to a http.Request.

func NewSearchImagesParams

func NewSearchImagesParams() *SearchImagesParams

NewSearchImagesParams creates a new SearchImagesParams 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 NewSearchImagesParamsWithContext

func NewSearchImagesParamsWithContext(ctx context.Context) *SearchImagesParams

NewSearchImagesParamsWithContext creates a new SearchImagesParams object with the ability to set a context for a request.

func NewSearchImagesParamsWithHTTPClient

func NewSearchImagesParamsWithHTTPClient(client *http.Client) *SearchImagesParams

NewSearchImagesParamsWithHTTPClient creates a new SearchImagesParams object with the ability to set a custom HTTPClient for a request.

func NewSearchImagesParamsWithTimeout

func NewSearchImagesParamsWithTimeout(timeout time.Duration) *SearchImagesParams

NewSearchImagesParamsWithTimeout creates a new SearchImagesParams object with the ability to set a timeout on a request.

func (*SearchImagesParams) SetContext

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

SetContext adds the context to the search images params

func (*SearchImagesParams) SetDefaults

func (o *SearchImagesParams) SetDefaults()

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

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

func (*SearchImagesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search images params

func (*SearchImagesParams) SetIfMatch

func (o *SearchImagesParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the search images params

func (*SearchImagesParams) SetQ

func (o *SearchImagesParams) SetQ(q *string)

SetQ adds the q to the search images params

func (*SearchImagesParams) SetTimeout

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

SetTimeout adds the timeout to the search images params

func (*SearchImagesParams) WithContext

WithContext adds the context to the search images params

func (*SearchImagesParams) WithDefaults

func (o *SearchImagesParams) WithDefaults() *SearchImagesParams

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

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

func (*SearchImagesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search images params

func (*SearchImagesParams) WithIfMatch

func (o *SearchImagesParams) WithIfMatch(ifMatch *string) *SearchImagesParams

WithIfMatch adds the ifMatch to the search images params

func (*SearchImagesParams) WithQ

WithQ adds the q to the search images params

func (*SearchImagesParams) WithTimeout

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

WithTimeout adds the timeout to the search images params

func (*SearchImagesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SearchImagesReader

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

SearchImagesReader is a Reader for the SearchImages structure.

func (*SearchImagesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchImagesTooManyRequests

type SearchImagesTooManyRequests struct {
	Payload *models.Error
}

SearchImagesTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewSearchImagesTooManyRequests

func NewSearchImagesTooManyRequests() *SearchImagesTooManyRequests

NewSearchImagesTooManyRequests creates a SearchImagesTooManyRequests with default headers values

func (*SearchImagesTooManyRequests) Code

func (o *SearchImagesTooManyRequests) Code() int

Code gets the status code for the search images too many requests response

func (*SearchImagesTooManyRequests) Error

func (*SearchImagesTooManyRequests) GetPayload

func (o *SearchImagesTooManyRequests) GetPayload() *models.Error

func (*SearchImagesTooManyRequests) IsClientError

func (o *SearchImagesTooManyRequests) IsClientError() bool

IsClientError returns true when this search images too many requests response has a 4xx status code

func (*SearchImagesTooManyRequests) IsCode

func (o *SearchImagesTooManyRequests) IsCode(code int) bool

IsCode returns true when this search images too many requests response a status code equal to that given

func (*SearchImagesTooManyRequests) IsRedirect

func (o *SearchImagesTooManyRequests) IsRedirect() bool

IsRedirect returns true when this search images too many requests response has a 3xx status code

func (*SearchImagesTooManyRequests) IsServerError

func (o *SearchImagesTooManyRequests) IsServerError() bool

IsServerError returns true when this search images too many requests response has a 5xx status code

func (*SearchImagesTooManyRequests) IsSuccess

func (o *SearchImagesTooManyRequests) IsSuccess() bool

IsSuccess returns true when this search images too many requests response has a 2xx status code

func (*SearchImagesTooManyRequests) String

func (o *SearchImagesTooManyRequests) String() string

type SearchImagesUnauthorized

type SearchImagesUnauthorized struct {
	Payload *models.Error
}

SearchImagesUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewSearchImagesUnauthorized

func NewSearchImagesUnauthorized() *SearchImagesUnauthorized

NewSearchImagesUnauthorized creates a SearchImagesUnauthorized with default headers values

func (*SearchImagesUnauthorized) Code

func (o *SearchImagesUnauthorized) Code() int

Code gets the status code for the search images unauthorized response

func (*SearchImagesUnauthorized) Error

func (o *SearchImagesUnauthorized) Error() string

func (*SearchImagesUnauthorized) GetPayload

func (o *SearchImagesUnauthorized) GetPayload() *models.Error

func (*SearchImagesUnauthorized) IsClientError

func (o *SearchImagesUnauthorized) IsClientError() bool

IsClientError returns true when this search images unauthorized response has a 4xx status code

func (*SearchImagesUnauthorized) IsCode

func (o *SearchImagesUnauthorized) IsCode(code int) bool

IsCode returns true when this search images unauthorized response a status code equal to that given

func (*SearchImagesUnauthorized) IsRedirect

func (o *SearchImagesUnauthorized) IsRedirect() bool

IsRedirect returns true when this search images unauthorized response has a 3xx status code

func (*SearchImagesUnauthorized) IsServerError

func (o *SearchImagesUnauthorized) IsServerError() bool

IsServerError returns true when this search images unauthorized response has a 5xx status code

func (*SearchImagesUnauthorized) IsSuccess

func (o *SearchImagesUnauthorized) IsSuccess() bool

IsSuccess returns true when this search images unauthorized response has a 2xx status code

func (*SearchImagesUnauthorized) String

func (o *SearchImagesUnauthorized) String() string

Jump to

Keyboard shortcuts

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