Documentation ¶
Index ¶
- type Client
- type GetAllClustersOK
- type GetAllClustersParams
- func NewGetAllClustersParams() *GetAllClustersParams
- func NewGetAllClustersParamsWithContext(ctx context.Context) *GetAllClustersParams
- func NewGetAllClustersParamsWithHTTPClient(client *http.Client) *GetAllClustersParams
- func NewGetAllClustersParamsWithTimeout(timeout time.Duration) *GetAllClustersParams
- func (o *GetAllClustersParams) SetContext(ctx context.Context)
- func (o *GetAllClustersParams) SetHTTPClient(client *http.Client)
- func (o *GetAllClustersParams) SetTimeout(timeout time.Duration)
- func (o *GetAllClustersParams) WithContext(ctx context.Context) *GetAllClustersParams
- func (o *GetAllClustersParams) WithHTTPClient(client *http.Client) *GetAllClustersParams
- func (o *GetAllClustersParams) WithTimeout(timeout time.Duration) *GetAllClustersParams
- func (o *GetAllClustersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAllClustersReader
- type RegisterClusterOK
- type RegisterClusterParams
- func NewRegisterClusterParams() *RegisterClusterParams
- func NewRegisterClusterParamsWithContext(ctx context.Context) *RegisterClusterParams
- func NewRegisterClusterParamsWithHTTPClient(client *http.Client) *RegisterClusterParams
- func NewRegisterClusterParamsWithTimeout(timeout time.Duration) *RegisterClusterParams
- func (o *RegisterClusterParams) SetBody(body *models.Cluster)
- func (o *RegisterClusterParams) SetContext(ctx context.Context)
- func (o *RegisterClusterParams) SetHTTPClient(client *http.Client)
- func (o *RegisterClusterParams) SetTimeout(timeout time.Duration)
- func (o *RegisterClusterParams) WithBody(body *models.Cluster) *RegisterClusterParams
- func (o *RegisterClusterParams) WithContext(ctx context.Context) *RegisterClusterParams
- func (o *RegisterClusterParams) WithHTTPClient(client *http.Client) *RegisterClusterParams
- func (o *RegisterClusterParams) WithTimeout(timeout time.Duration) *RegisterClusterParams
- func (o *RegisterClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RegisterClusterReader
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 cluster API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new cluster API client.
func (*Client) GetAllClusters ¶
func (a *Client) GetAllClusters(params *GetAllClustersParams) (*GetAllClustersOK, error)
GetAllClusters get all clusters API
func (*Client) RegisterCluster ¶
func (a *Client) RegisterCluster(params *RegisterClusterParams) (*RegisterClusterOK, error)
RegisterCluster register cluster API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetAllClustersOK ¶
GetAllClustersOK handles this case with default header values.
returns all clusters
func NewGetAllClustersOK ¶
func NewGetAllClustersOK() *GetAllClustersOK
NewGetAllClustersOK creates a GetAllClustersOK with default headers values
func (*GetAllClustersOK) Error ¶
func (o *GetAllClustersOK) Error() string
type GetAllClustersParams ¶
type GetAllClustersParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAllClustersParams contains all the parameters to send to the API endpoint for the get all clusters operation typically these are written to a http.Request
func NewGetAllClustersParams ¶
func NewGetAllClustersParams() *GetAllClustersParams
NewGetAllClustersParams creates a new GetAllClustersParams object with the default values initialized.
func NewGetAllClustersParamsWithContext ¶
func NewGetAllClustersParamsWithContext(ctx context.Context) *GetAllClustersParams
NewGetAllClustersParamsWithContext creates a new GetAllClustersParams object with the default values initialized, and the ability to set a context for a request
func NewGetAllClustersParamsWithHTTPClient ¶
func NewGetAllClustersParamsWithHTTPClient(client *http.Client) *GetAllClustersParams
NewGetAllClustersParamsWithHTTPClient creates a new GetAllClustersParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetAllClustersParamsWithTimeout ¶
func NewGetAllClustersParamsWithTimeout(timeout time.Duration) *GetAllClustersParams
NewGetAllClustersParamsWithTimeout creates a new GetAllClustersParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetAllClustersParams) SetContext ¶
func (o *GetAllClustersParams) SetContext(ctx context.Context)
SetContext adds the context to the get all clusters params
func (*GetAllClustersParams) SetHTTPClient ¶
func (o *GetAllClustersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get all clusters params
func (*GetAllClustersParams) SetTimeout ¶
func (o *GetAllClustersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get all clusters params
func (*GetAllClustersParams) WithContext ¶
func (o *GetAllClustersParams) WithContext(ctx context.Context) *GetAllClustersParams
WithContext adds the context to the get all clusters params
func (*GetAllClustersParams) WithHTTPClient ¶
func (o *GetAllClustersParams) WithHTTPClient(client *http.Client) *GetAllClustersParams
WithHTTPClient adds the HTTPClient to the get all clusters params
func (*GetAllClustersParams) WithTimeout ¶
func (o *GetAllClustersParams) WithTimeout(timeout time.Duration) *GetAllClustersParams
WithTimeout adds the timeout to the get all clusters params
func (*GetAllClustersParams) WriteToRequest ¶
func (o *GetAllClustersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAllClustersReader ¶
type GetAllClustersReader struct {
// contains filtered or unexported fields
}
GetAllClustersReader is a Reader for the GetAllClusters structure.
func (*GetAllClustersReader) ReadResponse ¶
func (o *GetAllClustersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RegisterClusterOK ¶
RegisterClusterOK handles this case with default header values.
registers a new cluster
func NewRegisterClusterOK ¶
func NewRegisterClusterOK() *RegisterClusterOK
NewRegisterClusterOK creates a RegisterClusterOK with default headers values
func (*RegisterClusterOK) Error ¶
func (o *RegisterClusterOK) Error() string
type RegisterClusterParams ¶
type RegisterClusterParams struct { /*Body*/ Body *models.Cluster Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RegisterClusterParams contains all the parameters to send to the API endpoint for the register cluster operation typically these are written to a http.Request
func NewRegisterClusterParams ¶
func NewRegisterClusterParams() *RegisterClusterParams
NewRegisterClusterParams creates a new RegisterClusterParams object with the default values initialized.
func NewRegisterClusterParamsWithContext ¶
func NewRegisterClusterParamsWithContext(ctx context.Context) *RegisterClusterParams
NewRegisterClusterParamsWithContext creates a new RegisterClusterParams object with the default values initialized, and the ability to set a context for a request
func NewRegisterClusterParamsWithHTTPClient ¶
func NewRegisterClusterParamsWithHTTPClient(client *http.Client) *RegisterClusterParams
NewRegisterClusterParamsWithHTTPClient creates a new RegisterClusterParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRegisterClusterParamsWithTimeout ¶
func NewRegisterClusterParamsWithTimeout(timeout time.Duration) *RegisterClusterParams
NewRegisterClusterParamsWithTimeout creates a new RegisterClusterParams object with the default values initialized, and the ability to set a timeout on a request
func (*RegisterClusterParams) SetBody ¶
func (o *RegisterClusterParams) SetBody(body *models.Cluster)
SetBody adds the body to the register cluster params
func (*RegisterClusterParams) SetContext ¶
func (o *RegisterClusterParams) SetContext(ctx context.Context)
SetContext adds the context to the register cluster params
func (*RegisterClusterParams) SetHTTPClient ¶
func (o *RegisterClusterParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the register cluster params
func (*RegisterClusterParams) SetTimeout ¶
func (o *RegisterClusterParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the register cluster params
func (*RegisterClusterParams) WithBody ¶
func (o *RegisterClusterParams) WithBody(body *models.Cluster) *RegisterClusterParams
WithBody adds the body to the register cluster params
func (*RegisterClusterParams) WithContext ¶
func (o *RegisterClusterParams) WithContext(ctx context.Context) *RegisterClusterParams
WithContext adds the context to the register cluster params
func (*RegisterClusterParams) WithHTTPClient ¶
func (o *RegisterClusterParams) WithHTTPClient(client *http.Client) *RegisterClusterParams
WithHTTPClient adds the HTTPClient to the register cluster params
func (*RegisterClusterParams) WithTimeout ¶
func (o *RegisterClusterParams) WithTimeout(timeout time.Duration) *RegisterClusterParams
WithTimeout adds the timeout to the register cluster params
func (*RegisterClusterParams) WriteToRequest ¶
func (o *RegisterClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RegisterClusterReader ¶
type RegisterClusterReader struct {
// contains filtered or unexported fields
}
RegisterClusterReader is a Reader for the RegisterCluster structure.
func (*RegisterClusterReader) ReadResponse ¶
func (o *RegisterClusterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.