Documentation
¶
Index ¶
- type Client
- type ClientService
- type DeleteDefault
- type DeleteNoContent
- type DeleteParams
- func (o *DeleteParams) SetContext(ctx context.Context)
- func (o *DeleteParams) SetHTTPClient(client *http.Client)
- func (o *DeleteParams) SetName(name string)
- func (o *DeleteParams) SetTimeout(timeout time.Duration)
- func (o *DeleteParams) WithContext(ctx context.Context) *DeleteParams
- func (o *DeleteParams) WithHTTPClient(client *http.Client) *DeleteParams
- func (o *DeleteParams) WithName(name string) *DeleteParams
- func (o *DeleteParams) WithTimeout(timeout time.Duration) *DeleteParams
- func (o *DeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteReader
- type GetClustersDefault
- type GetClustersOK
- type GetClustersParams
- func (o *GetClustersParams) SetContext(ctx context.Context)
- func (o *GetClustersParams) SetHTTPClient(client *http.Client)
- func (o *GetClustersParams) SetTimeout(timeout time.Duration)
- func (o *GetClustersParams) WithContext(ctx context.Context) *GetClustersParams
- func (o *GetClustersParams) WithHTTPClient(client *http.Client) *GetClustersParams
- func (o *GetClustersParams) WithTimeout(timeout time.Duration) *GetClustersParams
- func (o *GetClustersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetClustersReader
- type UpdateDefault
- type UpdateOK
- type UpdateParams
- func (o *UpdateParams) SetBody(body *models.Cluster)
- func (o *UpdateParams) SetContext(ctx context.Context)
- func (o *UpdateParams) SetHTTPClient(client *http.Client)
- func (o *UpdateParams) SetName(name string)
- func (o *UpdateParams) SetTimeout(timeout time.Duration)
- func (o *UpdateParams) WithBody(body *models.Cluster) *UpdateParams
- func (o *UpdateParams) WithContext(ctx context.Context) *UpdateParams
- func (o *UpdateParams) WithHTTPClient(client *http.Client) *UpdateParams
- func (o *UpdateParams) WithName(name string) *UpdateParams
- func (o *UpdateParams) WithTimeout(timeout time.Duration) *UpdateParams
- func (o *UpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateReader
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) Delete ¶
func (a *Client) Delete(params *DeleteParams) (*DeleteNoContent, error)
Delete delete API
func (*Client) GetClusters ¶
func (a *Client) GetClusters(params *GetClustersParams) (*GetClustersOK, error)
GetClusters get clusters API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface {
GetClusters(params *GetClustersParams) (*GetClustersOK, error)
Delete(params *DeleteParams) (*DeleteNoContent, error)
Update(params *UpdateParams) (*UpdateOK, 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 DeleteDefault ¶
DeleteDefault handles this case with default header values.
error
func NewDeleteDefault ¶
func NewDeleteDefault(code int) *DeleteDefault
NewDeleteDefault creates a DeleteDefault with default headers values
func (*DeleteDefault) Code ¶
func (o *DeleteDefault) Code() int
Code gets the status code for the delete default response
func (*DeleteDefault) Error ¶
func (o *DeleteDefault) Error() string
func (*DeleteDefault) GetPayload ¶
func (o *DeleteDefault) GetPayload() *models.Error
type DeleteNoContent ¶
type DeleteNoContent struct {
}
DeleteNoContent handles this case with default header values.
Deleted
func NewDeleteNoContent ¶
func NewDeleteNoContent() *DeleteNoContent
NewDeleteNoContent creates a DeleteNoContent with default headers values
func (*DeleteNoContent) Error ¶
func (o *DeleteNoContent) Error() string
type DeleteParams ¶
type DeleteParams struct {
/*Name*/
Name string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteParams contains all the parameters to send to the API endpoint for the delete operation typically these are written to a http.Request
func NewDeleteParams ¶
func NewDeleteParams() *DeleteParams
NewDeleteParams creates a new DeleteParams object with the default values initialized.
func NewDeleteParamsWithContext ¶
func NewDeleteParamsWithContext(ctx context.Context) *DeleteParams
NewDeleteParamsWithContext creates a new DeleteParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteParamsWithHTTPClient ¶
func NewDeleteParamsWithHTTPClient(client *http.Client) *DeleteParams
NewDeleteParamsWithHTTPClient creates a new DeleteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteParamsWithTimeout ¶
func NewDeleteParamsWithTimeout(timeout time.Duration) *DeleteParams
NewDeleteParamsWithTimeout creates a new DeleteParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteParams) SetContext ¶
func (o *DeleteParams) SetContext(ctx context.Context)
SetContext adds the context to the delete params
func (*DeleteParams) SetHTTPClient ¶
func (o *DeleteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete params
func (*DeleteParams) SetName ¶
func (o *DeleteParams) SetName(name string)
SetName adds the name to the delete params
func (*DeleteParams) SetTimeout ¶
func (o *DeleteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete params
func (*DeleteParams) WithContext ¶
func (o *DeleteParams) WithContext(ctx context.Context) *DeleteParams
WithContext adds the context to the delete params
func (*DeleteParams) WithHTTPClient ¶
func (o *DeleteParams) WithHTTPClient(client *http.Client) *DeleteParams
WithHTTPClient adds the HTTPClient to the delete params
func (*DeleteParams) WithName ¶
func (o *DeleteParams) WithName(name string) *DeleteParams
WithName adds the name to the delete params
func (*DeleteParams) WithTimeout ¶
func (o *DeleteParams) WithTimeout(timeout time.Duration) *DeleteParams
WithTimeout adds the timeout to the delete params
func (*DeleteParams) WriteToRequest ¶
func (o *DeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteReader ¶
type DeleteReader struct {
// contains filtered or unexported fields
}
DeleteReader is a Reader for the Delete structure.
func (*DeleteReader) ReadResponse ¶
func (o *DeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetClustersDefault ¶
GetClustersDefault handles this case with default header values.
generic error response
func NewGetClustersDefault ¶
func NewGetClustersDefault(code int) *GetClustersDefault
NewGetClustersDefault creates a GetClustersDefault with default headers values
func (*GetClustersDefault) Code ¶
func (o *GetClustersDefault) Code() int
Code gets the status code for the get clusters default response
func (*GetClustersDefault) Error ¶
func (o *GetClustersDefault) Error() string
func (*GetClustersDefault) GetPayload ¶
func (o *GetClustersDefault) GetPayload() *models.Error
type GetClustersOK ¶
GetClustersOK handles this case with default header values.
list the clusters
func NewGetClustersOK ¶
func NewGetClustersOK() *GetClustersOK
NewGetClustersOK creates a GetClustersOK with default headers values
func (*GetClustersOK) Error ¶
func (o *GetClustersOK) Error() string
func (*GetClustersOK) GetPayload ¶
func (o *GetClustersOK) GetPayload() []*models.Cluster
type GetClustersParams ¶
type GetClustersParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetClustersParams contains all the parameters to send to the API endpoint for the get clusters operation typically these are written to a http.Request
func NewGetClustersParams ¶
func NewGetClustersParams() *GetClustersParams
NewGetClustersParams creates a new GetClustersParams object with the default values initialized.
func NewGetClustersParamsWithContext ¶
func NewGetClustersParamsWithContext(ctx context.Context) *GetClustersParams
NewGetClustersParamsWithContext creates a new GetClustersParams object with the default values initialized, and the ability to set a context for a request
func NewGetClustersParamsWithHTTPClient ¶
func NewGetClustersParamsWithHTTPClient(client *http.Client) *GetClustersParams
NewGetClustersParamsWithHTTPClient creates a new GetClustersParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetClustersParamsWithTimeout ¶
func NewGetClustersParamsWithTimeout(timeout time.Duration) *GetClustersParams
NewGetClustersParamsWithTimeout creates a new GetClustersParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetClustersParams) SetContext ¶
func (o *GetClustersParams) SetContext(ctx context.Context)
SetContext adds the context to the get clusters params
func (*GetClustersParams) SetHTTPClient ¶
func (o *GetClustersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get clusters params
func (*GetClustersParams) SetTimeout ¶
func (o *GetClustersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get clusters params
func (*GetClustersParams) WithContext ¶
func (o *GetClustersParams) WithContext(ctx context.Context) *GetClustersParams
WithContext adds the context to the get clusters params
func (*GetClustersParams) WithHTTPClient ¶
func (o *GetClustersParams) WithHTTPClient(client *http.Client) *GetClustersParams
WithHTTPClient adds the HTTPClient to the get clusters params
func (*GetClustersParams) WithTimeout ¶
func (o *GetClustersParams) WithTimeout(timeout time.Duration) *GetClustersParams
WithTimeout adds the timeout to the get clusters params
func (*GetClustersParams) WriteToRequest ¶
func (o *GetClustersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetClustersReader ¶
type GetClustersReader struct {
// contains filtered or unexported fields
}
GetClustersReader is a Reader for the GetClusters structure.
func (*GetClustersReader) ReadResponse ¶
func (o *GetClustersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateDefault ¶
UpdateDefault handles this case with default header values.
error
func NewUpdateDefault ¶
func NewUpdateDefault(code int) *UpdateDefault
NewUpdateDefault creates a UpdateDefault with default headers values
func (*UpdateDefault) Code ¶
func (o *UpdateDefault) Code() int
Code gets the status code for the update default response
func (*UpdateDefault) Error ¶
func (o *UpdateDefault) Error() string
func (*UpdateDefault) GetPayload ¶
func (o *UpdateDefault) GetPayload() *models.Error
type UpdateOK ¶
UpdateOK handles this case with default header values.
OK
func NewUpdateOK ¶
func NewUpdateOK() *UpdateOK
NewUpdateOK creates a UpdateOK with default headers values
func (*UpdateOK) GetPayload ¶
type UpdateParams ¶
type UpdateParams struct {
/*Body*/
Body *models.Cluster
/*Name*/
Name string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
UpdateParams contains all the parameters to send to the API endpoint for the update operation typically these are written to a http.Request
func NewUpdateParams ¶
func NewUpdateParams() *UpdateParams
NewUpdateParams creates a new UpdateParams object with the default values initialized.
func NewUpdateParamsWithContext ¶
func NewUpdateParamsWithContext(ctx context.Context) *UpdateParams
NewUpdateParamsWithContext creates a new UpdateParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateParamsWithHTTPClient ¶
func NewUpdateParamsWithHTTPClient(client *http.Client) *UpdateParams
NewUpdateParamsWithHTTPClient creates a new UpdateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateParamsWithTimeout ¶
func NewUpdateParamsWithTimeout(timeout time.Duration) *UpdateParams
NewUpdateParamsWithTimeout creates a new UpdateParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateParams) SetBody ¶
func (o *UpdateParams) SetBody(body *models.Cluster)
SetBody adds the body to the update params
func (*UpdateParams) SetContext ¶
func (o *UpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the update params
func (*UpdateParams) SetHTTPClient ¶
func (o *UpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update params
func (*UpdateParams) SetName ¶
func (o *UpdateParams) SetName(name string)
SetName adds the name to the update params
func (*UpdateParams) SetTimeout ¶
func (o *UpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update params
func (*UpdateParams) WithBody ¶
func (o *UpdateParams) WithBody(body *models.Cluster) *UpdateParams
WithBody adds the body to the update params
func (*UpdateParams) WithContext ¶
func (o *UpdateParams) WithContext(ctx context.Context) *UpdateParams
WithContext adds the context to the update params
func (*UpdateParams) WithHTTPClient ¶
func (o *UpdateParams) WithHTTPClient(client *http.Client) *UpdateParams
WithHTTPClient adds the HTTPClient to the update params
func (*UpdateParams) WithName ¶
func (o *UpdateParams) WithName(name string) *UpdateParams
WithName adds the name to the update params
func (*UpdateParams) WithTimeout ¶
func (o *UpdateParams) WithTimeout(timeout time.Duration) *UpdateParams
WithTimeout adds the timeout to the update params
func (*UpdateParams) WriteToRequest ¶
func (o *UpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateReader ¶
type UpdateReader struct {
// contains filtered or unexported fields
}
UpdateReader is a Reader for the Update structure.
func (*UpdateReader) ReadResponse ¶
func (o *UpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.