Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type SearchClustersBadRequest
- type SearchClustersOK
- type SearchClustersParams
- func NewSearchClustersParams() *SearchClustersParams
- func NewSearchClustersParamsWithContext(ctx context.Context) *SearchClustersParams
- func NewSearchClustersParamsWithHTTPClient(client *http.Client) *SearchClustersParams
- func NewSearchClustersParamsWithTimeout(timeout time.Duration) *SearchClustersParams
- func (o *SearchClustersParams) SetBody(body *models.SearchRequest)
- func (o *SearchClustersParams) SetContext(ctx context.Context)
- func (o *SearchClustersParams) SetDefaults()
- func (o *SearchClustersParams) SetHTTPClient(client *http.Client)
- func (o *SearchClustersParams) SetTimeout(timeout time.Duration)
- func (o *SearchClustersParams) WithBody(body *models.SearchRequest) *SearchClustersParams
- func (o *SearchClustersParams) WithContext(ctx context.Context) *SearchClustersParams
- func (o *SearchClustersParams) WithDefaults() *SearchClustersParams
- func (o *SearchClustersParams) WithHTTPClient(client *http.Client) *SearchClustersParams
- func (o *SearchClustersParams) WithTimeout(timeout time.Duration) *SearchClustersParams
- func (o *SearchClustersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchClustersReader
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 clusters API
func (*Client) SearchClusters ¶
func (a *Client) SearchClusters(params *SearchClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchClustersOK, error)
SearchClusters searches clusters
DEPRECATED (Scheduled to be removed in the next major version): Retrieves the information for all of the instances that match the specified query.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶ added in v1.3.0
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { SearchClusters(params *SearchClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchClustersOK, 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 clusters API client.
type SearchClustersBadRequest ¶
type SearchClustersBadRequest struct { /* The error codes associated with the response */ XCloudErrorCodes string Payload *models.BasicFailedReply }
SearchClustersBadRequest describes a response with status code 400, with default header values.
The search request failed. (code: `search.invalid_request`)
func NewSearchClustersBadRequest ¶
func NewSearchClustersBadRequest() *SearchClustersBadRequest
NewSearchClustersBadRequest creates a SearchClustersBadRequest with default headers values
func (*SearchClustersBadRequest) Error ¶
func (o *SearchClustersBadRequest) Error() string
func (*SearchClustersBadRequest) GetPayload ¶
func (o *SearchClustersBadRequest) GetPayload() *models.BasicFailedReply
type SearchClustersOK ¶
type SearchClustersOK struct {
Payload *models.ClustersInfo
}
SearchClustersOK describes a response with status code 200, with default header values.
A list of clusters that matched the given search query.
func NewSearchClustersOK ¶
func NewSearchClustersOK() *SearchClustersOK
NewSearchClustersOK creates a SearchClustersOK with default headers values
func (*SearchClustersOK) Error ¶
func (o *SearchClustersOK) Error() string
func (*SearchClustersOK) GetPayload ¶
func (o *SearchClustersOK) GetPayload() *models.ClustersInfo
type SearchClustersParams ¶
type SearchClustersParams struct { /* Body. (Optional) The search query to run. When not specified, all of the clusters are matched. */ Body *models.SearchRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SearchClustersParams contains all the parameters to send to the API endpoint
for the search clusters operation. Typically these are written to a http.Request.
func NewSearchClustersParams ¶
func NewSearchClustersParams() *SearchClustersParams
NewSearchClustersParams creates a new SearchClustersParams 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 NewSearchClustersParamsWithContext ¶
func NewSearchClustersParamsWithContext(ctx context.Context) *SearchClustersParams
NewSearchClustersParamsWithContext creates a new SearchClustersParams object with the ability to set a context for a request.
func NewSearchClustersParamsWithHTTPClient ¶
func NewSearchClustersParamsWithHTTPClient(client *http.Client) *SearchClustersParams
NewSearchClustersParamsWithHTTPClient creates a new SearchClustersParams object with the ability to set a custom HTTPClient for a request.
func NewSearchClustersParamsWithTimeout ¶
func NewSearchClustersParamsWithTimeout(timeout time.Duration) *SearchClustersParams
NewSearchClustersParamsWithTimeout creates a new SearchClustersParams object with the ability to set a timeout on a request.
func (*SearchClustersParams) SetBody ¶
func (o *SearchClustersParams) SetBody(body *models.SearchRequest)
SetBody adds the body to the search clusters params
func (*SearchClustersParams) SetContext ¶
func (o *SearchClustersParams) SetContext(ctx context.Context)
SetContext adds the context to the search clusters params
func (*SearchClustersParams) SetDefaults ¶ added in v1.3.0
func (o *SearchClustersParams) SetDefaults()
SetDefaults hydrates default values in the search clusters params (not the query body).
All values with no default are reset to their zero value.
func (*SearchClustersParams) SetHTTPClient ¶
func (o *SearchClustersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the search clusters params
func (*SearchClustersParams) SetTimeout ¶
func (o *SearchClustersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the search clusters params
func (*SearchClustersParams) WithBody ¶
func (o *SearchClustersParams) WithBody(body *models.SearchRequest) *SearchClustersParams
WithBody adds the body to the search clusters params
func (*SearchClustersParams) WithContext ¶
func (o *SearchClustersParams) WithContext(ctx context.Context) *SearchClustersParams
WithContext adds the context to the search clusters params
func (*SearchClustersParams) WithDefaults ¶ added in v1.3.0
func (o *SearchClustersParams) WithDefaults() *SearchClustersParams
WithDefaults hydrates default values in the search clusters params (not the query body).
All values with no default are reset to their zero value.
func (*SearchClustersParams) WithHTTPClient ¶
func (o *SearchClustersParams) WithHTTPClient(client *http.Client) *SearchClustersParams
WithHTTPClient adds the HTTPClient to the search clusters params
func (*SearchClustersParams) WithTimeout ¶
func (o *SearchClustersParams) WithTimeout(timeout time.Duration) *SearchClustersParams
WithTimeout adds the timeout to the search clusters params
func (*SearchClustersParams) WriteToRequest ¶
func (o *SearchClustersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SearchClustersReader ¶
type SearchClustersReader struct {
// contains filtered or unexported fields
}
SearchClustersReader is a Reader for the SearchClusters structure.
func (*SearchClustersReader) ReadResponse ¶
func (o *SearchClustersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.