clusters

package
v1.0.0-bc7 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 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 clusters API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new clusters API client.

func (*Client) SearchClusters

func (a *Client) SearchClusters(params *SearchClustersParams, authInfo runtime.ClientAuthInfoWriter) (*SearchClustersOK, error)

SearchClusters searches clusters

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 SearchClustersBadRequest

type SearchClustersBadRequest struct {
	Payload *models.BasicFailedReply
}

SearchClustersBadRequest handles this case with default header values.

The search request failed.

func NewSearchClustersBadRequest

func NewSearchClustersBadRequest() *SearchClustersBadRequest

NewSearchClustersBadRequest creates a SearchClustersBadRequest with default headers values

func (*SearchClustersBadRequest) Error

func (o *SearchClustersBadRequest) Error() string

type SearchClustersOK

type SearchClustersOK struct {
	Payload *models.ClustersInfo
}

SearchClustersOK handles this case 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

type SearchClustersParams

type SearchClustersParams struct {

	/*Body
	  (Optional) The search request to execute. NOTE: 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 values initialized.

func NewSearchClustersParamsWithContext

func NewSearchClustersParamsWithContext(ctx context.Context) *SearchClustersParams

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

WithBody adds the body to the search clusters params

func (*SearchClustersParams) WithContext

WithContext adds the context to the search clusters params

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.

Jump to

Keyboard shortcuts

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