Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type SearchImagesBadRequest
- func (o *SearchImagesBadRequest) Code() int
- func (o *SearchImagesBadRequest) Error() string
- func (o *SearchImagesBadRequest) GetPayload() *models.Error
- func (o *SearchImagesBadRequest) IsClientError() bool
- func (o *SearchImagesBadRequest) IsCode(code int) bool
- func (o *SearchImagesBadRequest) IsRedirect() bool
- func (o *SearchImagesBadRequest) IsServerError() bool
- func (o *SearchImagesBadRequest) IsSuccess() bool
- func (o *SearchImagesBadRequest) String() string
- type SearchImagesForbidden
- func (o *SearchImagesForbidden) Code() int
- func (o *SearchImagesForbidden) Error() string
- func (o *SearchImagesForbidden) GetPayload() *models.Error
- func (o *SearchImagesForbidden) IsClientError() bool
- func (o *SearchImagesForbidden) IsCode(code int) bool
- func (o *SearchImagesForbidden) IsRedirect() bool
- func (o *SearchImagesForbidden) IsServerError() bool
- func (o *SearchImagesForbidden) IsSuccess() bool
- func (o *SearchImagesForbidden) String() string
- type SearchImagesNotFound
- func (o *SearchImagesNotFound) Code() int
- func (o *SearchImagesNotFound) Error() string
- func (o *SearchImagesNotFound) GetPayload() *models.Error
- func (o *SearchImagesNotFound) IsClientError() bool
- func (o *SearchImagesNotFound) IsCode(code int) bool
- func (o *SearchImagesNotFound) IsRedirect() bool
- func (o *SearchImagesNotFound) IsServerError() bool
- func (o *SearchImagesNotFound) IsSuccess() bool
- func (o *SearchImagesNotFound) String() string
- type SearchImagesOK
- func (o *SearchImagesOK) Code() int
- func (o *SearchImagesOK) Error() string
- func (o *SearchImagesOK) GetPayload() *models.Images
- func (o *SearchImagesOK) IsClientError() bool
- func (o *SearchImagesOK) IsCode(code int) bool
- func (o *SearchImagesOK) IsRedirect() bool
- func (o *SearchImagesOK) IsServerError() bool
- func (o *SearchImagesOK) IsSuccess() bool
- func (o *SearchImagesOK) String() string
- type SearchImagesParams
- func (o *SearchImagesParams) SetContext(ctx context.Context)
- func (o *SearchImagesParams) SetDefaults()
- func (o *SearchImagesParams) SetHTTPClient(client *http.Client)
- func (o *SearchImagesParams) SetIfMatch(ifMatch *string)
- func (o *SearchImagesParams) SetQ(q *string)
- func (o *SearchImagesParams) SetTimeout(timeout time.Duration)
- func (o *SearchImagesParams) WithContext(ctx context.Context) *SearchImagesParams
- func (o *SearchImagesParams) WithDefaults() *SearchImagesParams
- func (o *SearchImagesParams) WithHTTPClient(client *http.Client) *SearchImagesParams
- func (o *SearchImagesParams) WithIfMatch(ifMatch *string) *SearchImagesParams
- func (o *SearchImagesParams) WithQ(q *string) *SearchImagesParams
- func (o *SearchImagesParams) WithTimeout(timeout time.Duration) *SearchImagesParams
- func (o *SearchImagesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchImagesReader
- type SearchImagesTooManyRequests
- func (o *SearchImagesTooManyRequests) Code() int
- func (o *SearchImagesTooManyRequests) Error() string
- func (o *SearchImagesTooManyRequests) GetPayload() *models.Error
- func (o *SearchImagesTooManyRequests) IsClientError() bool
- func (o *SearchImagesTooManyRequests) IsCode(code int) bool
- func (o *SearchImagesTooManyRequests) IsRedirect() bool
- func (o *SearchImagesTooManyRequests) IsServerError() bool
- func (o *SearchImagesTooManyRequests) IsSuccess() bool
- func (o *SearchImagesTooManyRequests) String() string
- type SearchImagesUnauthorized
- func (o *SearchImagesUnauthorized) Code() int
- func (o *SearchImagesUnauthorized) Error() string
- func (o *SearchImagesUnauthorized) GetPayload() *models.Error
- func (o *SearchImagesUnauthorized) IsClientError() bool
- func (o *SearchImagesUnauthorized) IsCode(code int) bool
- func (o *SearchImagesUnauthorized) IsRedirect() bool
- func (o *SearchImagesUnauthorized) IsServerError() bool
- func (o *SearchImagesUnauthorized) IsSuccess() bool
- func (o *SearchImagesUnauthorized) String() string
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 may be used to customize the behavior of 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.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new images API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new images API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type SearchImagesBadRequest ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (o *SearchImagesParams) WithContext(ctx context.Context) *SearchImagesParams
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 ¶
func (o *SearchImagesParams) WithQ(q *string) *SearchImagesParams
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 ¶
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 (o *SearchImagesTooManyRequests) Error() string
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 {
}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