Documentation
¶
Index ¶
- type AddClusterCreated
- type AddClusterDefault
- type AddClusterParams
- func (o *AddClusterParams) SetBody(body *models.V4AddClusterRequest)
- func (o *AddClusterParams) SetContext(ctx context.Context)
- func (o *AddClusterParams) SetHTTPClient(client *http.Client)
- func (o *AddClusterParams) SetTimeout(timeout time.Duration)
- func (o *AddClusterParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *AddClusterParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *AddClusterParams) SetXRequestID(xRequestID *string)
- func (o *AddClusterParams) WithBody(body *models.V4AddClusterRequest) *AddClusterParams
- func (o *AddClusterParams) WithContext(ctx context.Context) *AddClusterParams
- func (o *AddClusterParams) WithHTTPClient(client *http.Client) *AddClusterParams
- func (o *AddClusterParams) WithTimeout(timeout time.Duration) *AddClusterParams
- func (o *AddClusterParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *AddClusterParams
- func (o *AddClusterParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *AddClusterParams
- func (o *AddClusterParams) WithXRequestID(xRequestID *string) *AddClusterParams
- func (o *AddClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddClusterReader
- type AddClusterUnauthorized
- type AddClusterV5Created
- type AddClusterV5Default
- type AddClusterV5Params
- func (o *AddClusterV5Params) SetBody(body *models.V5AddClusterRequest)
- func (o *AddClusterV5Params) SetContext(ctx context.Context)
- func (o *AddClusterV5Params) SetHTTPClient(client *http.Client)
- func (o *AddClusterV5Params) SetTimeout(timeout time.Duration)
- func (o *AddClusterV5Params) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *AddClusterV5Params) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *AddClusterV5Params) SetXRequestID(xRequestID *string)
- func (o *AddClusterV5Params) WithBody(body *models.V5AddClusterRequest) *AddClusterV5Params
- func (o *AddClusterV5Params) WithContext(ctx context.Context) *AddClusterV5Params
- func (o *AddClusterV5Params) WithHTTPClient(client *http.Client) *AddClusterV5Params
- func (o *AddClusterV5Params) WithTimeout(timeout time.Duration) *AddClusterV5Params
- func (o *AddClusterV5Params) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *AddClusterV5Params
- func (o *AddClusterV5Params) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *AddClusterV5Params
- func (o *AddClusterV5Params) WithXRequestID(xRequestID *string) *AddClusterV5Params
- func (o *AddClusterV5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddClusterV5Reader
- type AddClusterV5Unauthorized
- type Client
- func (a *Client) AddCluster(params *AddClusterParams, authInfo runtime.ClientAuthInfoWriter) (*AddClusterCreated, error)
- func (a *Client) AddClusterV5(params *AddClusterV5Params, authInfo runtime.ClientAuthInfoWriter) (*AddClusterV5Created, error)
- func (a *Client) DeleteCluster(params *DeleteClusterParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteClusterAccepted, error)
- func (a *Client) GetCluster(params *GetClusterParams, authInfo runtime.ClientAuthInfoWriter) (*GetClusterOK, error)
- func (a *Client) GetClusterStatus(params *GetClusterStatusParams, authInfo runtime.ClientAuthInfoWriter) (*GetClusterStatusOK, error)
- func (a *Client) GetClusterV5(params *GetClusterV5Params, authInfo runtime.ClientAuthInfoWriter) (*GetClusterV5OK, error)
- func (a *Client) GetClusters(params *GetClustersParams, authInfo runtime.ClientAuthInfoWriter) (*GetClustersOK, error)
- func (a *Client) ModifyCluster(params *ModifyClusterParams, authInfo runtime.ClientAuthInfoWriter) (*ModifyClusterOK, error)
- func (a *Client) ModifyClusterV5(params *ModifyClusterV5Params, authInfo runtime.ClientAuthInfoWriter) (*ModifyClusterV5OK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type DeleteClusterAccepted
- type DeleteClusterDefault
- type DeleteClusterNotFound
- type DeleteClusterParams
- func (o *DeleteClusterParams) SetClusterID(clusterID string)
- func (o *DeleteClusterParams) SetContext(ctx context.Context)
- func (o *DeleteClusterParams) SetHTTPClient(client *http.Client)
- func (o *DeleteClusterParams) SetTimeout(timeout time.Duration)
- func (o *DeleteClusterParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *DeleteClusterParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *DeleteClusterParams) SetXRequestID(xRequestID *string)
- func (o *DeleteClusterParams) WithClusterID(clusterID string) *DeleteClusterParams
- func (o *DeleteClusterParams) WithContext(ctx context.Context) *DeleteClusterParams
- func (o *DeleteClusterParams) WithHTTPClient(client *http.Client) *DeleteClusterParams
- func (o *DeleteClusterParams) WithTimeout(timeout time.Duration) *DeleteClusterParams
- func (o *DeleteClusterParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *DeleteClusterParams
- func (o *DeleteClusterParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *DeleteClusterParams
- func (o *DeleteClusterParams) WithXRequestID(xRequestID *string) *DeleteClusterParams
- func (o *DeleteClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteClusterReader
- type DeleteClusterUnauthorized
- type GetClusterDefault
- type GetClusterMovedPermanently
- type GetClusterNotFound
- type GetClusterOK
- type GetClusterParams
- func (o *GetClusterParams) SetClusterID(clusterID string)
- func (o *GetClusterParams) SetContext(ctx context.Context)
- func (o *GetClusterParams) SetHTTPClient(client *http.Client)
- func (o *GetClusterParams) SetTimeout(timeout time.Duration)
- func (o *GetClusterParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *GetClusterParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *GetClusterParams) SetXRequestID(xRequestID *string)
- func (o *GetClusterParams) WithClusterID(clusterID string) *GetClusterParams
- func (o *GetClusterParams) WithContext(ctx context.Context) *GetClusterParams
- func (o *GetClusterParams) WithHTTPClient(client *http.Client) *GetClusterParams
- func (o *GetClusterParams) WithTimeout(timeout time.Duration) *GetClusterParams
- func (o *GetClusterParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetClusterParams
- func (o *GetClusterParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetClusterParams
- func (o *GetClusterParams) WithXRequestID(xRequestID *string) *GetClusterParams
- func (o *GetClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetClusterReader
- type GetClusterStatusDefault
- type GetClusterStatusOK
- type GetClusterStatusParams
- func NewGetClusterStatusParams() *GetClusterStatusParams
- func NewGetClusterStatusParamsWithContext(ctx context.Context) *GetClusterStatusParams
- func NewGetClusterStatusParamsWithHTTPClient(client *http.Client) *GetClusterStatusParams
- func NewGetClusterStatusParamsWithTimeout(timeout time.Duration) *GetClusterStatusParams
- func (o *GetClusterStatusParams) SetClusterID(clusterID string)
- func (o *GetClusterStatusParams) SetContext(ctx context.Context)
- func (o *GetClusterStatusParams) SetHTTPClient(client *http.Client)
- func (o *GetClusterStatusParams) SetTimeout(timeout time.Duration)
- func (o *GetClusterStatusParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *GetClusterStatusParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *GetClusterStatusParams) SetXRequestID(xRequestID *string)
- func (o *GetClusterStatusParams) WithClusterID(clusterID string) *GetClusterStatusParams
- func (o *GetClusterStatusParams) WithContext(ctx context.Context) *GetClusterStatusParams
- func (o *GetClusterStatusParams) WithHTTPClient(client *http.Client) *GetClusterStatusParams
- func (o *GetClusterStatusParams) WithTimeout(timeout time.Duration) *GetClusterStatusParams
- func (o *GetClusterStatusParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetClusterStatusParams
- func (o *GetClusterStatusParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetClusterStatusParams
- func (o *GetClusterStatusParams) WithXRequestID(xRequestID *string) *GetClusterStatusParams
- func (o *GetClusterStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetClusterStatusReader
- type GetClusterStatusUnauthorized
- type GetClusterUnauthorized
- type GetClusterV5Default
- type GetClusterV5MovedPermanently
- type GetClusterV5NotFound
- type GetClusterV5OK
- type GetClusterV5Params
- func (o *GetClusterV5Params) SetClusterID(clusterID string)
- func (o *GetClusterV5Params) SetContext(ctx context.Context)
- func (o *GetClusterV5Params) SetHTTPClient(client *http.Client)
- func (o *GetClusterV5Params) SetTimeout(timeout time.Duration)
- func (o *GetClusterV5Params) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *GetClusterV5Params) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *GetClusterV5Params) SetXRequestID(xRequestID *string)
- func (o *GetClusterV5Params) WithClusterID(clusterID string) *GetClusterV5Params
- func (o *GetClusterV5Params) WithContext(ctx context.Context) *GetClusterV5Params
- func (o *GetClusterV5Params) WithHTTPClient(client *http.Client) *GetClusterV5Params
- func (o *GetClusterV5Params) WithTimeout(timeout time.Duration) *GetClusterV5Params
- func (o *GetClusterV5Params) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetClusterV5Params
- func (o *GetClusterV5Params) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetClusterV5Params
- func (o *GetClusterV5Params) WithXRequestID(xRequestID *string) *GetClusterV5Params
- func (o *GetClusterV5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetClusterV5Reader
- type GetClusterV5Unauthorized
- 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) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *GetClustersParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *GetClustersParams) SetXRequestID(xRequestID *string)
- 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) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetClustersParams
- func (o *GetClustersParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetClustersParams
- func (o *GetClustersParams) WithXRequestID(xRequestID *string) *GetClustersParams
- func (o *GetClustersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetClustersReader
- type GetClustersUnauthorized
- type ModifyClusterDefault
- type ModifyClusterNotFound
- type ModifyClusterOK
- type ModifyClusterParams
- func (o *ModifyClusterParams) SetBody(body *models.V4ModifyClusterRequest)
- func (o *ModifyClusterParams) SetClusterID(clusterID string)
- func (o *ModifyClusterParams) SetContext(ctx context.Context)
- func (o *ModifyClusterParams) SetHTTPClient(client *http.Client)
- func (o *ModifyClusterParams) SetTimeout(timeout time.Duration)
- func (o *ModifyClusterParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *ModifyClusterParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *ModifyClusterParams) SetXRequestID(xRequestID *string)
- func (o *ModifyClusterParams) WithBody(body *models.V4ModifyClusterRequest) *ModifyClusterParams
- func (o *ModifyClusterParams) WithClusterID(clusterID string) *ModifyClusterParams
- func (o *ModifyClusterParams) WithContext(ctx context.Context) *ModifyClusterParams
- func (o *ModifyClusterParams) WithHTTPClient(client *http.Client) *ModifyClusterParams
- func (o *ModifyClusterParams) WithTimeout(timeout time.Duration) *ModifyClusterParams
- func (o *ModifyClusterParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *ModifyClusterParams
- func (o *ModifyClusterParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *ModifyClusterParams
- func (o *ModifyClusterParams) WithXRequestID(xRequestID *string) *ModifyClusterParams
- func (o *ModifyClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ModifyClusterReader
- type ModifyClusterUnauthorized
- type ModifyClusterV5Default
- type ModifyClusterV5NotFound
- type ModifyClusterV5OK
- type ModifyClusterV5Params
- func NewModifyClusterV5Params() *ModifyClusterV5Params
- func NewModifyClusterV5ParamsWithContext(ctx context.Context) *ModifyClusterV5Params
- func NewModifyClusterV5ParamsWithHTTPClient(client *http.Client) *ModifyClusterV5Params
- func NewModifyClusterV5ParamsWithTimeout(timeout time.Duration) *ModifyClusterV5Params
- func (o *ModifyClusterV5Params) SetBody(body *models.V5ModifyClusterRequest)
- func (o *ModifyClusterV5Params) SetClusterID(clusterID string)
- func (o *ModifyClusterV5Params) SetContext(ctx context.Context)
- func (o *ModifyClusterV5Params) SetHTTPClient(client *http.Client)
- func (o *ModifyClusterV5Params) SetTimeout(timeout time.Duration)
- func (o *ModifyClusterV5Params) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *ModifyClusterV5Params) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *ModifyClusterV5Params) SetXRequestID(xRequestID *string)
- func (o *ModifyClusterV5Params) WithBody(body *models.V5ModifyClusterRequest) *ModifyClusterV5Params
- func (o *ModifyClusterV5Params) WithClusterID(clusterID string) *ModifyClusterV5Params
- func (o *ModifyClusterV5Params) WithContext(ctx context.Context) *ModifyClusterV5Params
- func (o *ModifyClusterV5Params) WithHTTPClient(client *http.Client) *ModifyClusterV5Params
- func (o *ModifyClusterV5Params) WithTimeout(timeout time.Duration) *ModifyClusterV5Params
- func (o *ModifyClusterV5Params) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *ModifyClusterV5Params
- func (o *ModifyClusterV5Params) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *ModifyClusterV5Params
- func (o *ModifyClusterV5Params) WithXRequestID(xRequestID *string) *ModifyClusterV5Params
- func (o *ModifyClusterV5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ModifyClusterV5Reader
- type ModifyClusterV5Unauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddClusterCreated ¶
type AddClusterCreated struct { /*URI to obtain details on the new cluster using the [getCluster](#operation/getCluster) operation */ Location string Payload *models.V4GenericResponse }
AddClusterCreated handles this case with default header values.
Cluster created
func NewAddClusterCreated ¶
func NewAddClusterCreated() *AddClusterCreated
NewAddClusterCreated creates a AddClusterCreated with default headers values
func (*AddClusterCreated) Error ¶
func (o *AddClusterCreated) Error() string
type AddClusterDefault ¶
type AddClusterDefault struct { Payload *models.V4GenericResponse // contains filtered or unexported fields }
AddClusterDefault handles this case with default header values.
error
func NewAddClusterDefault ¶
func NewAddClusterDefault(code int) *AddClusterDefault
NewAddClusterDefault creates a AddClusterDefault with default headers values
func (*AddClusterDefault) Code ¶
func (o *AddClusterDefault) Code() int
Code gets the status code for the add cluster default response
func (*AddClusterDefault) Error ¶
func (o *AddClusterDefault) Error() string
type AddClusterParams ¶
type AddClusterParams struct { /*XGiantSwarmActivity Name of an activity to track, like "list-clusters". This allows to analyze several API requests sent in context and gives an idea on the purpose. */ XGiantSwarmActivity *string /*XGiantSwarmCmdLine If activity has been issued by a CLI, this header can contain the command line */ XGiantSwarmCmdLine *string /*XRequestID A randomly generated key that can be used to track a request throughout services of Giant Swarm. */ XRequestID *string /*Body New cluster definition */ Body *models.V4AddClusterRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddClusterParams contains all the parameters to send to the API endpoint for the add cluster operation typically these are written to a http.Request
func NewAddClusterParams ¶
func NewAddClusterParams() *AddClusterParams
NewAddClusterParams creates a new AddClusterParams object with the default values initialized.
func NewAddClusterParamsWithContext ¶
func NewAddClusterParamsWithContext(ctx context.Context) *AddClusterParams
NewAddClusterParamsWithContext creates a new AddClusterParams object with the default values initialized, and the ability to set a context for a request
func NewAddClusterParamsWithHTTPClient ¶
func NewAddClusterParamsWithHTTPClient(client *http.Client) *AddClusterParams
NewAddClusterParamsWithHTTPClient creates a new AddClusterParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAddClusterParamsWithTimeout ¶
func NewAddClusterParamsWithTimeout(timeout time.Duration) *AddClusterParams
NewAddClusterParamsWithTimeout creates a new AddClusterParams object with the default values initialized, and the ability to set a timeout on a request
func (*AddClusterParams) SetBody ¶
func (o *AddClusterParams) SetBody(body *models.V4AddClusterRequest)
SetBody adds the body to the add cluster params
func (*AddClusterParams) SetContext ¶
func (o *AddClusterParams) SetContext(ctx context.Context)
SetContext adds the context to the add cluster params
func (*AddClusterParams) SetHTTPClient ¶
func (o *AddClusterParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add cluster params
func (*AddClusterParams) SetTimeout ¶
func (o *AddClusterParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add cluster params
func (*AddClusterParams) SetXGiantSwarmActivity ¶
func (o *AddClusterParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the add cluster params
func (*AddClusterParams) SetXGiantSwarmCmdLine ¶
func (o *AddClusterParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the add cluster params
func (*AddClusterParams) SetXRequestID ¶
func (o *AddClusterParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the add cluster params
func (*AddClusterParams) WithBody ¶
func (o *AddClusterParams) WithBody(body *models.V4AddClusterRequest) *AddClusterParams
WithBody adds the body to the add cluster params
func (*AddClusterParams) WithContext ¶
func (o *AddClusterParams) WithContext(ctx context.Context) *AddClusterParams
WithContext adds the context to the add cluster params
func (*AddClusterParams) WithHTTPClient ¶
func (o *AddClusterParams) WithHTTPClient(client *http.Client) *AddClusterParams
WithHTTPClient adds the HTTPClient to the add cluster params
func (*AddClusterParams) WithTimeout ¶
func (o *AddClusterParams) WithTimeout(timeout time.Duration) *AddClusterParams
WithTimeout adds the timeout to the add cluster params
func (*AddClusterParams) WithXGiantSwarmActivity ¶
func (o *AddClusterParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *AddClusterParams
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the add cluster params
func (*AddClusterParams) WithXGiantSwarmCmdLine ¶
func (o *AddClusterParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *AddClusterParams
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the add cluster params
func (*AddClusterParams) WithXRequestID ¶
func (o *AddClusterParams) WithXRequestID(xRequestID *string) *AddClusterParams
WithXRequestID adds the xRequestID to the add cluster params
func (*AddClusterParams) WriteToRequest ¶
func (o *AddClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddClusterReader ¶
type AddClusterReader struct {
// contains filtered or unexported fields
}
AddClusterReader is a Reader for the AddCluster structure.
func (*AddClusterReader) ReadResponse ¶
func (o *AddClusterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AddClusterUnauthorized ¶
type AddClusterUnauthorized struct {
}AddClusterUnauthorized handles this case with default header values.
Permission denied
func NewAddClusterUnauthorized ¶
func NewAddClusterUnauthorized() *AddClusterUnauthorized
NewAddClusterUnauthorized creates a AddClusterUnauthorized with default headers values
func (*AddClusterUnauthorized) Error ¶
func (o *AddClusterUnauthorized) Error() string
type AddClusterV5Created ¶
type AddClusterV5Created struct {
Payload *models.V5ClusterDetailsResponse
}
AddClusterV5Created handles this case with default header values.
Cluster created
func NewAddClusterV5Created ¶
func NewAddClusterV5Created() *AddClusterV5Created
NewAddClusterV5Created creates a AddClusterV5Created with default headers values
func (*AddClusterV5Created) Error ¶
func (o *AddClusterV5Created) Error() string
type AddClusterV5Default ¶
type AddClusterV5Default struct { Payload *models.V4GenericResponse // contains filtered or unexported fields }
AddClusterV5Default handles this case with default header values.
error
func NewAddClusterV5Default ¶
func NewAddClusterV5Default(code int) *AddClusterV5Default
NewAddClusterV5Default creates a AddClusterV5Default with default headers values
func (*AddClusterV5Default) Code ¶
func (o *AddClusterV5Default) Code() int
Code gets the status code for the add cluster v5 default response
func (*AddClusterV5Default) Error ¶
func (o *AddClusterV5Default) Error() string
type AddClusterV5Params ¶
type AddClusterV5Params struct { /*XGiantSwarmActivity Name of an activity to track, like "list-clusters". This allows to analyze several API requests sent in context and gives an idea on the purpose. */ XGiantSwarmActivity *string /*XGiantSwarmCmdLine If activity has been issued by a CLI, this header can contain the command line */ XGiantSwarmCmdLine *string /*XRequestID A randomly generated key that can be used to track a request throughout services of Giant Swarm. */ XRequestID *string /*Body New cluster definition */ Body *models.V5AddClusterRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddClusterV5Params contains all the parameters to send to the API endpoint for the add cluster v5 operation typically these are written to a http.Request
func NewAddClusterV5Params ¶
func NewAddClusterV5Params() *AddClusterV5Params
NewAddClusterV5Params creates a new AddClusterV5Params object with the default values initialized.
func NewAddClusterV5ParamsWithContext ¶
func NewAddClusterV5ParamsWithContext(ctx context.Context) *AddClusterV5Params
NewAddClusterV5ParamsWithContext creates a new AddClusterV5Params object with the default values initialized, and the ability to set a context for a request
func NewAddClusterV5ParamsWithHTTPClient ¶
func NewAddClusterV5ParamsWithHTTPClient(client *http.Client) *AddClusterV5Params
NewAddClusterV5ParamsWithHTTPClient creates a new AddClusterV5Params object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAddClusterV5ParamsWithTimeout ¶
func NewAddClusterV5ParamsWithTimeout(timeout time.Duration) *AddClusterV5Params
NewAddClusterV5ParamsWithTimeout creates a new AddClusterV5Params object with the default values initialized, and the ability to set a timeout on a request
func (*AddClusterV5Params) SetBody ¶
func (o *AddClusterV5Params) SetBody(body *models.V5AddClusterRequest)
SetBody adds the body to the add cluster v5 params
func (*AddClusterV5Params) SetContext ¶
func (o *AddClusterV5Params) SetContext(ctx context.Context)
SetContext adds the context to the add cluster v5 params
func (*AddClusterV5Params) SetHTTPClient ¶
func (o *AddClusterV5Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add cluster v5 params
func (*AddClusterV5Params) SetTimeout ¶
func (o *AddClusterV5Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add cluster v5 params
func (*AddClusterV5Params) SetXGiantSwarmActivity ¶
func (o *AddClusterV5Params) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the add cluster v5 params
func (*AddClusterV5Params) SetXGiantSwarmCmdLine ¶
func (o *AddClusterV5Params) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the add cluster v5 params
func (*AddClusterV5Params) SetXRequestID ¶
func (o *AddClusterV5Params) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the add cluster v5 params
func (*AddClusterV5Params) WithBody ¶
func (o *AddClusterV5Params) WithBody(body *models.V5AddClusterRequest) *AddClusterV5Params
WithBody adds the body to the add cluster v5 params
func (*AddClusterV5Params) WithContext ¶
func (o *AddClusterV5Params) WithContext(ctx context.Context) *AddClusterV5Params
WithContext adds the context to the add cluster v5 params
func (*AddClusterV5Params) WithHTTPClient ¶
func (o *AddClusterV5Params) WithHTTPClient(client *http.Client) *AddClusterV5Params
WithHTTPClient adds the HTTPClient to the add cluster v5 params
func (*AddClusterV5Params) WithTimeout ¶
func (o *AddClusterV5Params) WithTimeout(timeout time.Duration) *AddClusterV5Params
WithTimeout adds the timeout to the add cluster v5 params
func (*AddClusterV5Params) WithXGiantSwarmActivity ¶
func (o *AddClusterV5Params) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *AddClusterV5Params
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the add cluster v5 params
func (*AddClusterV5Params) WithXGiantSwarmCmdLine ¶
func (o *AddClusterV5Params) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *AddClusterV5Params
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the add cluster v5 params
func (*AddClusterV5Params) WithXRequestID ¶
func (o *AddClusterV5Params) WithXRequestID(xRequestID *string) *AddClusterV5Params
WithXRequestID adds the xRequestID to the add cluster v5 params
func (*AddClusterV5Params) WriteToRequest ¶
func (o *AddClusterV5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddClusterV5Reader ¶
type AddClusterV5Reader struct {
// contains filtered or unexported fields
}
AddClusterV5Reader is a Reader for the AddClusterV5 structure.
func (*AddClusterV5Reader) ReadResponse ¶
func (o *AddClusterV5Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AddClusterV5Unauthorized ¶
type AddClusterV5Unauthorized struct {
}AddClusterV5Unauthorized handles this case with default header values.
Permission denied
func NewAddClusterV5Unauthorized ¶
func NewAddClusterV5Unauthorized() *AddClusterV5Unauthorized
NewAddClusterV5Unauthorized creates a AddClusterV5Unauthorized with default headers values
func (*AddClusterV5Unauthorized) Error ¶
func (o *AddClusterV5Unauthorized) Error() string
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) AddCluster ¶
func (a *Client) AddCluster(params *AddClusterParams, authInfo runtime.ClientAuthInfoWriter) (*AddClusterCreated, error)
AddCluster creates cluster v4
This operation is used to create a new Kubernetes cluster or "tenant cluster".
### Cluster definition
The cluster definition format allows to set a number of optional configuration details, like worker node configuration, with node specification depending on the provider (e. g. on <span class="badge azure">Azure</span> the VM size, or on <span class="badge kvm">KVM</span> the memory size and number of CPU cores).
One attribute is __mandatory__ upon creation: The `owner` attribute must carry the name of the organization the cluster will belong to. Note that the acting user must be a member of that organization in order to create a cluster.
For all other attributes, defaults will be applied if the attribute is not set. Check out the [getInfo](#operation/getInfo) operation for more info about defaults. If no `release_version` is set, the latest release version available for the provider will be used.
func (*Client) AddClusterV5 ¶
func (a *Client) AddClusterV5(params *AddClusterV5Params, authInfo runtime.ClientAuthInfoWriter) (*AddClusterV5Created, error)
AddClusterV5 creates cluster v5
Allows to create most recent clusters on AWS installations.
### Node pools
In the Giant Swarm API v5, worker nodes are grouped into pools of worker nodes where all nodes share the same configuration.
When creating a cluster without submitting the `nodepools` attribute, or with its value being an empty array, one node pool with default configuration will be created.
Node pools can be created, deleted and modified during the entire lifetime of a cluster.
See [node pools](#tag/nodepools) and [Create node pool](#operation/addNodePool) for details.
func (*Client) DeleteCluster ¶
func (a *Client) DeleteCluster(params *DeleteClusterParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteClusterAccepted, error)
DeleteCluster deletes cluster
This operation triggers deleting a cluster with all resources attached to it.
Deleting a cluster causes the termination of all workloads running on the cluster. Data stored on the worker nodes will be lost. There is no way to undo this operation.
The response is sent as soon as the request is validated. At that point, workloads might still be running on the cluster and may be accessible for a little wile, until the cluster is actually deleted.
func (*Client) GetCluster ¶
func (a *Client) GetCluster(params *GetClusterParams, authInfo runtime.ClientAuthInfoWriter) (*GetClusterOK, error)
GetCluster gets cluster details v4
This operation allows to obtain basic details on a particular cluster.
func (*Client) GetClusterStatus ¶
func (a *Client) GetClusterStatus(params *GetClusterStatusParams, authInfo runtime.ClientAuthInfoWriter) (*GetClusterStatusOK, error)
GetClusterStatus gets cluster status
Returns an object about a cluster's current state and past status transitions.
This endpoint exposes the status content of the Kubernetes resources representing a cluster in the corresponding custom resource. That is, depending on the provider:
- [`awsconfig.provider.giantswarm.io`](https://godoc.org/github.com/giantswarm/apiextensions/pkg/apis/provider/v1alpha1#AWSConfig) - [`azureconfig.provider.giantswarm.io`](https://godoc.org/github.com/giantswarm/apiextensions/pkg/apis/provider/v1alpha1#AzureConfig) - [`kvmconfig.provider.giantswarm.io`](https://godoc.org/github.com/giantswarm/apiextensions/pkg/apis/provider/v1alpha1#KVMConfig)
Note that structure and style differ from the rest of the v4 API. Also note that the structure depends on the release version and changes can be expected frequently.
func (*Client) GetClusterV5 ¶
func (a *Client) GetClusterV5(params *GetClusterV5Params, authInfo runtime.ClientAuthInfoWriter) (*GetClusterV5OK, error)
GetClusterV5 gets cluster details v5
Allows to retrieve cluster details on AWS installations.
func (*Client) GetClusters ¶
func (a *Client) GetClusters(params *GetClustersParams, authInfo runtime.ClientAuthInfoWriter) (*GetClustersOK, error)
GetClusters gets clusters
This operation fetches a list of clusters.
The result depends on the permissions of the user. A normal user will get all the clusters the user has access to, via organization membership. A user with admin permission will receive a list of all existing clusters.
The result array items are sparse representations of the cluster objects. To fetch more details on a cluster, use the [getClusterStatus](#operation/getClusterStatus) operation.
func (*Client) ModifyCluster ¶
func (a *Client) ModifyCluster(params *ModifyClusterParams, authInfo runtime.ClientAuthInfoWriter) (*ModifyClusterOK, error)
ModifyCluster modifies cluster v4
This operation allows to modify an existing cluster.
A cluster modification is performed by submitting a `PATCH` request to the cluster resource (as described in the [addCluster](#operation/addCluster) and [getCluster](#operation/getCluster)) in form of a [JSON Patch Merge (RFC 7386)](https://tools.ietf.org/html/rfc7386). This means, only the attributes to be modified have to be contained in the request body.
The following attributes can be modified:
- `name`: Rename the cluster to something more fitting.
- `owner`: Changing the owner organization name means to change cluster ownership from one organization to another. The user performing the request has to be a member of both organizations.
- `release_version`: By changing this attribute you can upgrade a cluster to a newer [release](https://docs.giantswarm.io/api/#tag/releases).
- `scaling`: Adjust the cluster node limits to make use of auto scaling or to have full control over the node count. The latter can be achieved by setting `min` and `max` to the same values. Note that setting `min` and `max` to different values (effectively enabling autoscaling) is only available on AWS with releases from 6.2.0.
- `workers` (deprecated): For backward compatibility reasons, it is
possible to provide this attribute as an array, where the number of items contained in the array determines the intended number of worker nodes in the cluster. The item count will be applied as both `min` and `max` value of the scaling limits, effectively disabling autoscaling. This requires the `scaling` attribute must not be present in the same request.
### Limitations
- As of now, existing worker nodes cannot be modified. - The number of availability zones cannot be modified. - When removing nodes (scaling down), it is not possible to determine which nodes will be removed.
func (*Client) ModifyClusterV5 ¶
func (a *Client) ModifyClusterV5(params *ModifyClusterV5Params, authInfo runtime.ClientAuthInfoWriter) (*ModifyClusterV5OK, error)
ModifyClusterV5 modifies cluster v5
Allows to change cluster properties on AWS installations.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type DeleteClusterAccepted ¶
type DeleteClusterAccepted struct {
Payload *models.V4GenericResponse
}
DeleteClusterAccepted handles this case with default header values.
Deleting cluster
func NewDeleteClusterAccepted ¶
func NewDeleteClusterAccepted() *DeleteClusterAccepted
NewDeleteClusterAccepted creates a DeleteClusterAccepted with default headers values
func (*DeleteClusterAccepted) Error ¶
func (o *DeleteClusterAccepted) Error() string
type DeleteClusterDefault ¶
type DeleteClusterDefault struct { Payload *models.V4GenericResponse // contains filtered or unexported fields }
DeleteClusterDefault handles this case with default header values.
error
func NewDeleteClusterDefault ¶
func NewDeleteClusterDefault(code int) *DeleteClusterDefault
NewDeleteClusterDefault creates a DeleteClusterDefault with default headers values
func (*DeleteClusterDefault) Code ¶
func (o *DeleteClusterDefault) Code() int
Code gets the status code for the delete cluster default response
func (*DeleteClusterDefault) Error ¶
func (o *DeleteClusterDefault) Error() string
type DeleteClusterNotFound ¶
type DeleteClusterNotFound struct {
Payload *models.V4GenericResponse
}
DeleteClusterNotFound handles this case with default header values.
Cluster not found
func NewDeleteClusterNotFound ¶
func NewDeleteClusterNotFound() *DeleteClusterNotFound
NewDeleteClusterNotFound creates a DeleteClusterNotFound with default headers values
func (*DeleteClusterNotFound) Error ¶
func (o *DeleteClusterNotFound) Error() string
type DeleteClusterParams ¶
type DeleteClusterParams struct { /*XGiantSwarmActivity Name of an activity to track, like "list-clusters". This allows to analyze several API requests sent in context and gives an idea on the purpose. */ XGiantSwarmActivity *string /*XGiantSwarmCmdLine If activity has been issued by a CLI, this header can contain the command line */ XGiantSwarmCmdLine *string /*XRequestID A randomly generated key that can be used to track a request throughout services of Giant Swarm. */ XRequestID *string /*ClusterID Cluster ID */ ClusterID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteClusterParams contains all the parameters to send to the API endpoint for the delete cluster operation typically these are written to a http.Request
func NewDeleteClusterParams ¶
func NewDeleteClusterParams() *DeleteClusterParams
NewDeleteClusterParams creates a new DeleteClusterParams object with the default values initialized.
func NewDeleteClusterParamsWithContext ¶
func NewDeleteClusterParamsWithContext(ctx context.Context) *DeleteClusterParams
NewDeleteClusterParamsWithContext creates a new DeleteClusterParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteClusterParamsWithHTTPClient ¶
func NewDeleteClusterParamsWithHTTPClient(client *http.Client) *DeleteClusterParams
NewDeleteClusterParamsWithHTTPClient creates a new DeleteClusterParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteClusterParamsWithTimeout ¶
func NewDeleteClusterParamsWithTimeout(timeout time.Duration) *DeleteClusterParams
NewDeleteClusterParamsWithTimeout creates a new DeleteClusterParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteClusterParams) SetClusterID ¶
func (o *DeleteClusterParams) SetClusterID(clusterID string)
SetClusterID adds the clusterId to the delete cluster params
func (*DeleteClusterParams) SetContext ¶
func (o *DeleteClusterParams) SetContext(ctx context.Context)
SetContext adds the context to the delete cluster params
func (*DeleteClusterParams) SetHTTPClient ¶
func (o *DeleteClusterParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete cluster params
func (*DeleteClusterParams) SetTimeout ¶
func (o *DeleteClusterParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete cluster params
func (*DeleteClusterParams) SetXGiantSwarmActivity ¶
func (o *DeleteClusterParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the delete cluster params
func (*DeleteClusterParams) SetXGiantSwarmCmdLine ¶
func (o *DeleteClusterParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the delete cluster params
func (*DeleteClusterParams) SetXRequestID ¶
func (o *DeleteClusterParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the delete cluster params
func (*DeleteClusterParams) WithClusterID ¶
func (o *DeleteClusterParams) WithClusterID(clusterID string) *DeleteClusterParams
WithClusterID adds the clusterID to the delete cluster params
func (*DeleteClusterParams) WithContext ¶
func (o *DeleteClusterParams) WithContext(ctx context.Context) *DeleteClusterParams
WithContext adds the context to the delete cluster params
func (*DeleteClusterParams) WithHTTPClient ¶
func (o *DeleteClusterParams) WithHTTPClient(client *http.Client) *DeleteClusterParams
WithHTTPClient adds the HTTPClient to the delete cluster params
func (*DeleteClusterParams) WithTimeout ¶
func (o *DeleteClusterParams) WithTimeout(timeout time.Duration) *DeleteClusterParams
WithTimeout adds the timeout to the delete cluster params
func (*DeleteClusterParams) WithXGiantSwarmActivity ¶
func (o *DeleteClusterParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *DeleteClusterParams
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the delete cluster params
func (*DeleteClusterParams) WithXGiantSwarmCmdLine ¶
func (o *DeleteClusterParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *DeleteClusterParams
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the delete cluster params
func (*DeleteClusterParams) WithXRequestID ¶
func (o *DeleteClusterParams) WithXRequestID(xRequestID *string) *DeleteClusterParams
WithXRequestID adds the xRequestID to the delete cluster params
func (*DeleteClusterParams) WriteToRequest ¶
func (o *DeleteClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteClusterReader ¶
type DeleteClusterReader struct {
// contains filtered or unexported fields
}
DeleteClusterReader is a Reader for the DeleteCluster structure.
func (*DeleteClusterReader) ReadResponse ¶
func (o *DeleteClusterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteClusterUnauthorized ¶
type DeleteClusterUnauthorized struct {
}DeleteClusterUnauthorized handles this case with default header values.
Permission denied
func NewDeleteClusterUnauthorized ¶
func NewDeleteClusterUnauthorized() *DeleteClusterUnauthorized
NewDeleteClusterUnauthorized creates a DeleteClusterUnauthorized with default headers values
func (*DeleteClusterUnauthorized) Error ¶
func (o *DeleteClusterUnauthorized) Error() string
type GetClusterDefault ¶
type GetClusterDefault struct { Payload *models.V4GenericResponse // contains filtered or unexported fields }
GetClusterDefault handles this case with default header values.
error
func NewGetClusterDefault ¶
func NewGetClusterDefault(code int) *GetClusterDefault
NewGetClusterDefault creates a GetClusterDefault with default headers values
func (*GetClusterDefault) Code ¶
func (o *GetClusterDefault) Code() int
Code gets the status code for the get cluster default response
func (*GetClusterDefault) Error ¶
func (o *GetClusterDefault) Error() string
type GetClusterMovedPermanently ¶
type GetClusterMovedPermanently struct { /*URI of the new path to use for retrying the request, as the one used is not usable for this cluster. */ Location string }
GetClusterMovedPermanently handles this case with default header values.
Version mismatch
func NewGetClusterMovedPermanently ¶
func NewGetClusterMovedPermanently() *GetClusterMovedPermanently
NewGetClusterMovedPermanently creates a GetClusterMovedPermanently with default headers values
func (*GetClusterMovedPermanently) Error ¶
func (o *GetClusterMovedPermanently) Error() string
type GetClusterNotFound ¶
type GetClusterNotFound struct {
Payload *models.V4GenericResponse
}
GetClusterNotFound handles this case with default header values.
Cluster not found
func NewGetClusterNotFound ¶
func NewGetClusterNotFound() *GetClusterNotFound
NewGetClusterNotFound creates a GetClusterNotFound with default headers values
func (*GetClusterNotFound) Error ¶
func (o *GetClusterNotFound) Error() string
type GetClusterOK ¶
type GetClusterOK struct {
Payload *models.V4ClusterDetailsResponse
}
GetClusterOK handles this case with default header values.
Cluster details
func NewGetClusterOK ¶
func NewGetClusterOK() *GetClusterOK
NewGetClusterOK creates a GetClusterOK with default headers values
func (*GetClusterOK) Error ¶
func (o *GetClusterOK) Error() string
type GetClusterParams ¶
type GetClusterParams struct { /*XGiantSwarmActivity Name of an activity to track, like "list-clusters". This allows to analyze several API requests sent in context and gives an idea on the purpose. */ XGiantSwarmActivity *string /*XGiantSwarmCmdLine If activity has been issued by a CLI, this header can contain the command line */ XGiantSwarmCmdLine *string /*XRequestID A randomly generated key that can be used to track a request throughout services of Giant Swarm. */ XRequestID *string /*ClusterID Cluster ID */ ClusterID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetClusterParams contains all the parameters to send to the API endpoint for the get cluster operation typically these are written to a http.Request
func NewGetClusterParams ¶
func NewGetClusterParams() *GetClusterParams
NewGetClusterParams creates a new GetClusterParams object with the default values initialized.
func NewGetClusterParamsWithContext ¶
func NewGetClusterParamsWithContext(ctx context.Context) *GetClusterParams
NewGetClusterParamsWithContext creates a new GetClusterParams object with the default values initialized, and the ability to set a context for a request
func NewGetClusterParamsWithHTTPClient ¶
func NewGetClusterParamsWithHTTPClient(client *http.Client) *GetClusterParams
NewGetClusterParamsWithHTTPClient creates a new GetClusterParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetClusterParamsWithTimeout ¶
func NewGetClusterParamsWithTimeout(timeout time.Duration) *GetClusterParams
NewGetClusterParamsWithTimeout creates a new GetClusterParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetClusterParams) SetClusterID ¶
func (o *GetClusterParams) SetClusterID(clusterID string)
SetClusterID adds the clusterId to the get cluster params
func (*GetClusterParams) SetContext ¶
func (o *GetClusterParams) SetContext(ctx context.Context)
SetContext adds the context to the get cluster params
func (*GetClusterParams) SetHTTPClient ¶
func (o *GetClusterParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get cluster params
func (*GetClusterParams) SetTimeout ¶
func (o *GetClusterParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get cluster params
func (*GetClusterParams) SetXGiantSwarmActivity ¶
func (o *GetClusterParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get cluster params
func (*GetClusterParams) SetXGiantSwarmCmdLine ¶
func (o *GetClusterParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get cluster params
func (*GetClusterParams) SetXRequestID ¶
func (o *GetClusterParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get cluster params
func (*GetClusterParams) WithClusterID ¶
func (o *GetClusterParams) WithClusterID(clusterID string) *GetClusterParams
WithClusterID adds the clusterID to the get cluster params
func (*GetClusterParams) WithContext ¶
func (o *GetClusterParams) WithContext(ctx context.Context) *GetClusterParams
WithContext adds the context to the get cluster params
func (*GetClusterParams) WithHTTPClient ¶
func (o *GetClusterParams) WithHTTPClient(client *http.Client) *GetClusterParams
WithHTTPClient adds the HTTPClient to the get cluster params
func (*GetClusterParams) WithTimeout ¶
func (o *GetClusterParams) WithTimeout(timeout time.Duration) *GetClusterParams
WithTimeout adds the timeout to the get cluster params
func (*GetClusterParams) WithXGiantSwarmActivity ¶
func (o *GetClusterParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetClusterParams
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get cluster params
func (*GetClusterParams) WithXGiantSwarmCmdLine ¶
func (o *GetClusterParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetClusterParams
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get cluster params
func (*GetClusterParams) WithXRequestID ¶
func (o *GetClusterParams) WithXRequestID(xRequestID *string) *GetClusterParams
WithXRequestID adds the xRequestID to the get cluster params
func (*GetClusterParams) WriteToRequest ¶
func (o *GetClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetClusterReader ¶
type GetClusterReader struct {
// contains filtered or unexported fields
}
GetClusterReader is a Reader for the GetCluster structure.
func (*GetClusterReader) ReadResponse ¶
func (o *GetClusterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetClusterStatusDefault ¶
type GetClusterStatusDefault struct { Payload *models.V4GenericResponse // contains filtered or unexported fields }
GetClusterStatusDefault handles this case with default header values.
error
func NewGetClusterStatusDefault ¶
func NewGetClusterStatusDefault(code int) *GetClusterStatusDefault
NewGetClusterStatusDefault creates a GetClusterStatusDefault with default headers values
func (*GetClusterStatusDefault) Code ¶
func (o *GetClusterStatusDefault) Code() int
Code gets the status code for the get cluster status default response
func (*GetClusterStatusDefault) Error ¶
func (o *GetClusterStatusDefault) Error() string
type GetClusterStatusOK ¶
type GetClusterStatusOK struct {
Payload models.V4GetClusterStatusResponse
}
GetClusterStatusOK handles this case with default header values.
Cluster status
func NewGetClusterStatusOK ¶
func NewGetClusterStatusOK() *GetClusterStatusOK
NewGetClusterStatusOK creates a GetClusterStatusOK with default headers values
func (*GetClusterStatusOK) Error ¶
func (o *GetClusterStatusOK) Error() string
type GetClusterStatusParams ¶
type GetClusterStatusParams struct { /*XGiantSwarmActivity Name of an activity to track, like "list-clusters". This allows to analyze several API requests sent in context and gives an idea on the purpose. */ XGiantSwarmActivity *string /*XGiantSwarmCmdLine If activity has been issued by a CLI, this header can contain the command line */ XGiantSwarmCmdLine *string /*XRequestID A randomly generated key that can be used to track a request throughout services of Giant Swarm. */ XRequestID *string /*ClusterID Cluster ID */ ClusterID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetClusterStatusParams contains all the parameters to send to the API endpoint for the get cluster status operation typically these are written to a http.Request
func NewGetClusterStatusParams ¶
func NewGetClusterStatusParams() *GetClusterStatusParams
NewGetClusterStatusParams creates a new GetClusterStatusParams object with the default values initialized.
func NewGetClusterStatusParamsWithContext ¶
func NewGetClusterStatusParamsWithContext(ctx context.Context) *GetClusterStatusParams
NewGetClusterStatusParamsWithContext creates a new GetClusterStatusParams object with the default values initialized, and the ability to set a context for a request
func NewGetClusterStatusParamsWithHTTPClient ¶
func NewGetClusterStatusParamsWithHTTPClient(client *http.Client) *GetClusterStatusParams
NewGetClusterStatusParamsWithHTTPClient creates a new GetClusterStatusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetClusterStatusParamsWithTimeout ¶
func NewGetClusterStatusParamsWithTimeout(timeout time.Duration) *GetClusterStatusParams
NewGetClusterStatusParamsWithTimeout creates a new GetClusterStatusParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetClusterStatusParams) SetClusterID ¶
func (o *GetClusterStatusParams) SetClusterID(clusterID string)
SetClusterID adds the clusterId to the get cluster status params
func (*GetClusterStatusParams) SetContext ¶
func (o *GetClusterStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the get cluster status params
func (*GetClusterStatusParams) SetHTTPClient ¶
func (o *GetClusterStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get cluster status params
func (*GetClusterStatusParams) SetTimeout ¶
func (o *GetClusterStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get cluster status params
func (*GetClusterStatusParams) SetXGiantSwarmActivity ¶
func (o *GetClusterStatusParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get cluster status params
func (*GetClusterStatusParams) SetXGiantSwarmCmdLine ¶
func (o *GetClusterStatusParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get cluster status params
func (*GetClusterStatusParams) SetXRequestID ¶
func (o *GetClusterStatusParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get cluster status params
func (*GetClusterStatusParams) WithClusterID ¶
func (o *GetClusterStatusParams) WithClusterID(clusterID string) *GetClusterStatusParams
WithClusterID adds the clusterID to the get cluster status params
func (*GetClusterStatusParams) WithContext ¶
func (o *GetClusterStatusParams) WithContext(ctx context.Context) *GetClusterStatusParams
WithContext adds the context to the get cluster status params
func (*GetClusterStatusParams) WithHTTPClient ¶
func (o *GetClusterStatusParams) WithHTTPClient(client *http.Client) *GetClusterStatusParams
WithHTTPClient adds the HTTPClient to the get cluster status params
func (*GetClusterStatusParams) WithTimeout ¶
func (o *GetClusterStatusParams) WithTimeout(timeout time.Duration) *GetClusterStatusParams
WithTimeout adds the timeout to the get cluster status params
func (*GetClusterStatusParams) WithXGiantSwarmActivity ¶
func (o *GetClusterStatusParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetClusterStatusParams
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get cluster status params
func (*GetClusterStatusParams) WithXGiantSwarmCmdLine ¶
func (o *GetClusterStatusParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetClusterStatusParams
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get cluster status params
func (*GetClusterStatusParams) WithXRequestID ¶
func (o *GetClusterStatusParams) WithXRequestID(xRequestID *string) *GetClusterStatusParams
WithXRequestID adds the xRequestID to the get cluster status params
func (*GetClusterStatusParams) WriteToRequest ¶
func (o *GetClusterStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetClusterStatusReader ¶
type GetClusterStatusReader struct {
// contains filtered or unexported fields
}
GetClusterStatusReader is a Reader for the GetClusterStatus structure.
func (*GetClusterStatusReader) ReadResponse ¶
func (o *GetClusterStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetClusterStatusUnauthorized ¶
type GetClusterStatusUnauthorized struct {
}GetClusterStatusUnauthorized handles this case with default header values.
Permission denied
func NewGetClusterStatusUnauthorized ¶
func NewGetClusterStatusUnauthorized() *GetClusterStatusUnauthorized
NewGetClusterStatusUnauthorized creates a GetClusterStatusUnauthorized with default headers values
func (*GetClusterStatusUnauthorized) Error ¶
func (o *GetClusterStatusUnauthorized) Error() string
type GetClusterUnauthorized ¶
type GetClusterUnauthorized struct {
}GetClusterUnauthorized handles this case with default header values.
Permission denied
func NewGetClusterUnauthorized ¶
func NewGetClusterUnauthorized() *GetClusterUnauthorized
NewGetClusterUnauthorized creates a GetClusterUnauthorized with default headers values
func (*GetClusterUnauthorized) Error ¶
func (o *GetClusterUnauthorized) Error() string
type GetClusterV5Default ¶
type GetClusterV5Default struct { Payload *models.V4GenericResponse // contains filtered or unexported fields }
GetClusterV5Default handles this case with default header values.
error
func NewGetClusterV5Default ¶
func NewGetClusterV5Default(code int) *GetClusterV5Default
NewGetClusterV5Default creates a GetClusterV5Default with default headers values
func (*GetClusterV5Default) Code ¶
func (o *GetClusterV5Default) Code() int
Code gets the status code for the get cluster v5 default response
func (*GetClusterV5Default) Error ¶
func (o *GetClusterV5Default) Error() string
type GetClusterV5MovedPermanently ¶
type GetClusterV5MovedPermanently struct { /*URI of the new path to use for retrying the request, as the one used is not usable for this cluster. */ Location string }
GetClusterV5MovedPermanently handles this case with default header values.
Version mismatch
func NewGetClusterV5MovedPermanently ¶
func NewGetClusterV5MovedPermanently() *GetClusterV5MovedPermanently
NewGetClusterV5MovedPermanently creates a GetClusterV5MovedPermanently with default headers values
func (*GetClusterV5MovedPermanently) Error ¶
func (o *GetClusterV5MovedPermanently) Error() string
type GetClusterV5NotFound ¶
type GetClusterV5NotFound struct {
Payload *models.V4GenericResponse
}
GetClusterV5NotFound handles this case with default header values.
Cluster not found
func NewGetClusterV5NotFound ¶
func NewGetClusterV5NotFound() *GetClusterV5NotFound
NewGetClusterV5NotFound creates a GetClusterV5NotFound with default headers values
func (*GetClusterV5NotFound) Error ¶
func (o *GetClusterV5NotFound) Error() string
type GetClusterV5OK ¶
type GetClusterV5OK struct {
Payload *models.V5ClusterDetailsResponse
}
GetClusterV5OK handles this case with default header values.
Cluster details
func NewGetClusterV5OK ¶
func NewGetClusterV5OK() *GetClusterV5OK
NewGetClusterV5OK creates a GetClusterV5OK with default headers values
func (*GetClusterV5OK) Error ¶
func (o *GetClusterV5OK) Error() string
type GetClusterV5Params ¶
type GetClusterV5Params struct { /*XGiantSwarmActivity Name of an activity to track, like "list-clusters". This allows to analyze several API requests sent in context and gives an idea on the purpose. */ XGiantSwarmActivity *string /*XGiantSwarmCmdLine If activity has been issued by a CLI, this header can contain the command line */ XGiantSwarmCmdLine *string /*XRequestID A randomly generated key that can be used to track a request throughout services of Giant Swarm. */ XRequestID *string /*ClusterID Cluster ID */ ClusterID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetClusterV5Params contains all the parameters to send to the API endpoint for the get cluster v5 operation typically these are written to a http.Request
func NewGetClusterV5Params ¶
func NewGetClusterV5Params() *GetClusterV5Params
NewGetClusterV5Params creates a new GetClusterV5Params object with the default values initialized.
func NewGetClusterV5ParamsWithContext ¶
func NewGetClusterV5ParamsWithContext(ctx context.Context) *GetClusterV5Params
NewGetClusterV5ParamsWithContext creates a new GetClusterV5Params object with the default values initialized, and the ability to set a context for a request
func NewGetClusterV5ParamsWithHTTPClient ¶
func NewGetClusterV5ParamsWithHTTPClient(client *http.Client) *GetClusterV5Params
NewGetClusterV5ParamsWithHTTPClient creates a new GetClusterV5Params object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetClusterV5ParamsWithTimeout ¶
func NewGetClusterV5ParamsWithTimeout(timeout time.Duration) *GetClusterV5Params
NewGetClusterV5ParamsWithTimeout creates a new GetClusterV5Params object with the default values initialized, and the ability to set a timeout on a request
func (*GetClusterV5Params) SetClusterID ¶
func (o *GetClusterV5Params) SetClusterID(clusterID string)
SetClusterID adds the clusterId to the get cluster v5 params
func (*GetClusterV5Params) SetContext ¶
func (o *GetClusterV5Params) SetContext(ctx context.Context)
SetContext adds the context to the get cluster v5 params
func (*GetClusterV5Params) SetHTTPClient ¶
func (o *GetClusterV5Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get cluster v5 params
func (*GetClusterV5Params) SetTimeout ¶
func (o *GetClusterV5Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get cluster v5 params
func (*GetClusterV5Params) SetXGiantSwarmActivity ¶
func (o *GetClusterV5Params) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get cluster v5 params
func (*GetClusterV5Params) SetXGiantSwarmCmdLine ¶
func (o *GetClusterV5Params) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get cluster v5 params
func (*GetClusterV5Params) SetXRequestID ¶
func (o *GetClusterV5Params) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get cluster v5 params
func (*GetClusterV5Params) WithClusterID ¶
func (o *GetClusterV5Params) WithClusterID(clusterID string) *GetClusterV5Params
WithClusterID adds the clusterID to the get cluster v5 params
func (*GetClusterV5Params) WithContext ¶
func (o *GetClusterV5Params) WithContext(ctx context.Context) *GetClusterV5Params
WithContext adds the context to the get cluster v5 params
func (*GetClusterV5Params) WithHTTPClient ¶
func (o *GetClusterV5Params) WithHTTPClient(client *http.Client) *GetClusterV5Params
WithHTTPClient adds the HTTPClient to the get cluster v5 params
func (*GetClusterV5Params) WithTimeout ¶
func (o *GetClusterV5Params) WithTimeout(timeout time.Duration) *GetClusterV5Params
WithTimeout adds the timeout to the get cluster v5 params
func (*GetClusterV5Params) WithXGiantSwarmActivity ¶
func (o *GetClusterV5Params) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetClusterV5Params
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get cluster v5 params
func (*GetClusterV5Params) WithXGiantSwarmCmdLine ¶
func (o *GetClusterV5Params) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetClusterV5Params
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get cluster v5 params
func (*GetClusterV5Params) WithXRequestID ¶
func (o *GetClusterV5Params) WithXRequestID(xRequestID *string) *GetClusterV5Params
WithXRequestID adds the xRequestID to the get cluster v5 params
func (*GetClusterV5Params) WriteToRequest ¶
func (o *GetClusterV5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetClusterV5Reader ¶
type GetClusterV5Reader struct {
// contains filtered or unexported fields
}
GetClusterV5Reader is a Reader for the GetClusterV5 structure.
func (*GetClusterV5Reader) ReadResponse ¶
func (o *GetClusterV5Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetClusterV5Unauthorized ¶
type GetClusterV5Unauthorized struct {
}GetClusterV5Unauthorized handles this case with default header values.
Permission denied
func NewGetClusterV5Unauthorized ¶
func NewGetClusterV5Unauthorized() *GetClusterV5Unauthorized
NewGetClusterV5Unauthorized creates a GetClusterV5Unauthorized with default headers values
func (*GetClusterV5Unauthorized) Error ¶
func (o *GetClusterV5Unauthorized) Error() string
type GetClustersDefault ¶
type GetClustersDefault struct { Payload *models.V4GenericResponse // contains filtered or unexported fields }
GetClustersDefault handles this case with default header values.
Error
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
type GetClustersOK ¶
type GetClustersOK struct {
Payload []*models.V4ClusterListItem
}
GetClustersOK handles this case with default header values.
Success
func NewGetClustersOK ¶
func NewGetClustersOK() *GetClustersOK
NewGetClustersOK creates a GetClustersOK with default headers values
func (*GetClustersOK) Error ¶
func (o *GetClustersOK) Error() string
type GetClustersParams ¶
type GetClustersParams struct { /*XGiantSwarmActivity Name of an activity to track, like "list-clusters". This allows to analyze several API requests sent in context and gives an idea on the purpose. */ XGiantSwarmActivity *string /*XGiantSwarmCmdLine If activity has been issued by a CLI, this header can contain the command line */ XGiantSwarmCmdLine *string /*XRequestID A randomly generated key that can be used to track a request throughout services of Giant Swarm. */ XRequestID *string 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) SetXGiantSwarmActivity ¶
func (o *GetClustersParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get clusters params
func (*GetClustersParams) SetXGiantSwarmCmdLine ¶
func (o *GetClustersParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get clusters params
func (*GetClustersParams) SetXRequestID ¶
func (o *GetClustersParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId 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) WithXGiantSwarmActivity ¶
func (o *GetClustersParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetClustersParams
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get clusters params
func (*GetClustersParams) WithXGiantSwarmCmdLine ¶
func (o *GetClustersParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetClustersParams
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get clusters params
func (*GetClustersParams) WithXRequestID ¶
func (o *GetClustersParams) WithXRequestID(xRequestID *string) *GetClustersParams
WithXRequestID adds the xRequestID 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 GetClustersUnauthorized ¶
type GetClustersUnauthorized struct {
}GetClustersUnauthorized handles this case with default header values.
Permission denied
func NewGetClustersUnauthorized ¶
func NewGetClustersUnauthorized() *GetClustersUnauthorized
NewGetClustersUnauthorized creates a GetClustersUnauthorized with default headers values
func (*GetClustersUnauthorized) Error ¶
func (o *GetClustersUnauthorized) Error() string
type ModifyClusterDefault ¶
type ModifyClusterDefault struct { Payload *models.V4GenericResponse // contains filtered or unexported fields }
ModifyClusterDefault handles this case with default header values.
error
func NewModifyClusterDefault ¶
func NewModifyClusterDefault(code int) *ModifyClusterDefault
NewModifyClusterDefault creates a ModifyClusterDefault with default headers values
func (*ModifyClusterDefault) Code ¶
func (o *ModifyClusterDefault) Code() int
Code gets the status code for the modify cluster default response
func (*ModifyClusterDefault) Error ¶
func (o *ModifyClusterDefault) Error() string
type ModifyClusterNotFound ¶
type ModifyClusterNotFound struct {
Payload *models.V4GenericResponse
}
ModifyClusterNotFound handles this case with default header values.
Cluster not found
func NewModifyClusterNotFound ¶
func NewModifyClusterNotFound() *ModifyClusterNotFound
NewModifyClusterNotFound creates a ModifyClusterNotFound with default headers values
func (*ModifyClusterNotFound) Error ¶
func (o *ModifyClusterNotFound) Error() string
type ModifyClusterOK ¶
type ModifyClusterOK struct {
Payload *models.V4ClusterDetailsResponse
}
ModifyClusterOK handles this case with default header values.
Cluster modified
func NewModifyClusterOK ¶
func NewModifyClusterOK() *ModifyClusterOK
NewModifyClusterOK creates a ModifyClusterOK with default headers values
func (*ModifyClusterOK) Error ¶
func (o *ModifyClusterOK) Error() string
type ModifyClusterParams ¶
type ModifyClusterParams struct { /*XGiantSwarmActivity Name of an activity to track, like "list-clusters". This allows to analyze several API requests sent in context and gives an idea on the purpose. */ XGiantSwarmActivity *string /*XGiantSwarmCmdLine If activity has been issued by a CLI, this header can contain the command line */ XGiantSwarmCmdLine *string /*XRequestID A randomly generated key that can be used to track a request throughout services of Giant Swarm. */ XRequestID *string /*Body Merge-patch body */ Body *models.V4ModifyClusterRequest /*ClusterID Cluster ID */ ClusterID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ModifyClusterParams contains all the parameters to send to the API endpoint for the modify cluster operation typically these are written to a http.Request
func NewModifyClusterParams ¶
func NewModifyClusterParams() *ModifyClusterParams
NewModifyClusterParams creates a new ModifyClusterParams object with the default values initialized.
func NewModifyClusterParamsWithContext ¶
func NewModifyClusterParamsWithContext(ctx context.Context) *ModifyClusterParams
NewModifyClusterParamsWithContext creates a new ModifyClusterParams object with the default values initialized, and the ability to set a context for a request
func NewModifyClusterParamsWithHTTPClient ¶
func NewModifyClusterParamsWithHTTPClient(client *http.Client) *ModifyClusterParams
NewModifyClusterParamsWithHTTPClient creates a new ModifyClusterParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewModifyClusterParamsWithTimeout ¶
func NewModifyClusterParamsWithTimeout(timeout time.Duration) *ModifyClusterParams
NewModifyClusterParamsWithTimeout creates a new ModifyClusterParams object with the default values initialized, and the ability to set a timeout on a request
func (*ModifyClusterParams) SetBody ¶
func (o *ModifyClusterParams) SetBody(body *models.V4ModifyClusterRequest)
SetBody adds the body to the modify cluster params
func (*ModifyClusterParams) SetClusterID ¶
func (o *ModifyClusterParams) SetClusterID(clusterID string)
SetClusterID adds the clusterId to the modify cluster params
func (*ModifyClusterParams) SetContext ¶
func (o *ModifyClusterParams) SetContext(ctx context.Context)
SetContext adds the context to the modify cluster params
func (*ModifyClusterParams) SetHTTPClient ¶
func (o *ModifyClusterParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the modify cluster params
func (*ModifyClusterParams) SetTimeout ¶
func (o *ModifyClusterParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the modify cluster params
func (*ModifyClusterParams) SetXGiantSwarmActivity ¶
func (o *ModifyClusterParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the modify cluster params
func (*ModifyClusterParams) SetXGiantSwarmCmdLine ¶
func (o *ModifyClusterParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the modify cluster params
func (*ModifyClusterParams) SetXRequestID ¶
func (o *ModifyClusterParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the modify cluster params
func (*ModifyClusterParams) WithBody ¶
func (o *ModifyClusterParams) WithBody(body *models.V4ModifyClusterRequest) *ModifyClusterParams
WithBody adds the body to the modify cluster params
func (*ModifyClusterParams) WithClusterID ¶
func (o *ModifyClusterParams) WithClusterID(clusterID string) *ModifyClusterParams
WithClusterID adds the clusterID to the modify cluster params
func (*ModifyClusterParams) WithContext ¶
func (o *ModifyClusterParams) WithContext(ctx context.Context) *ModifyClusterParams
WithContext adds the context to the modify cluster params
func (*ModifyClusterParams) WithHTTPClient ¶
func (o *ModifyClusterParams) WithHTTPClient(client *http.Client) *ModifyClusterParams
WithHTTPClient adds the HTTPClient to the modify cluster params
func (*ModifyClusterParams) WithTimeout ¶
func (o *ModifyClusterParams) WithTimeout(timeout time.Duration) *ModifyClusterParams
WithTimeout adds the timeout to the modify cluster params
func (*ModifyClusterParams) WithXGiantSwarmActivity ¶
func (o *ModifyClusterParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *ModifyClusterParams
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the modify cluster params
func (*ModifyClusterParams) WithXGiantSwarmCmdLine ¶
func (o *ModifyClusterParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *ModifyClusterParams
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the modify cluster params
func (*ModifyClusterParams) WithXRequestID ¶
func (o *ModifyClusterParams) WithXRequestID(xRequestID *string) *ModifyClusterParams
WithXRequestID adds the xRequestID to the modify cluster params
func (*ModifyClusterParams) WriteToRequest ¶
func (o *ModifyClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ModifyClusterReader ¶
type ModifyClusterReader struct {
// contains filtered or unexported fields
}
ModifyClusterReader is a Reader for the ModifyCluster structure.
func (*ModifyClusterReader) ReadResponse ¶
func (o *ModifyClusterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ModifyClusterUnauthorized ¶
type ModifyClusterUnauthorized struct {
}ModifyClusterUnauthorized handles this case with default header values.
Permission denied
func NewModifyClusterUnauthorized ¶
func NewModifyClusterUnauthorized() *ModifyClusterUnauthorized
NewModifyClusterUnauthorized creates a ModifyClusterUnauthorized with default headers values
func (*ModifyClusterUnauthorized) Error ¶
func (o *ModifyClusterUnauthorized) Error() string
type ModifyClusterV5Default ¶
type ModifyClusterV5Default struct { Payload *models.V4GenericResponse // contains filtered or unexported fields }
ModifyClusterV5Default handles this case with default header values.
error
func NewModifyClusterV5Default ¶
func NewModifyClusterV5Default(code int) *ModifyClusterV5Default
NewModifyClusterV5Default creates a ModifyClusterV5Default with default headers values
func (*ModifyClusterV5Default) Code ¶
func (o *ModifyClusterV5Default) Code() int
Code gets the status code for the modify cluster v5 default response
func (*ModifyClusterV5Default) Error ¶
func (o *ModifyClusterV5Default) Error() string
type ModifyClusterV5NotFound ¶
type ModifyClusterV5NotFound struct {
Payload *models.V4GenericResponse
}
ModifyClusterV5NotFound handles this case with default header values.
Cluster not found
func NewModifyClusterV5NotFound ¶
func NewModifyClusterV5NotFound() *ModifyClusterV5NotFound
NewModifyClusterV5NotFound creates a ModifyClusterV5NotFound with default headers values
func (*ModifyClusterV5NotFound) Error ¶
func (o *ModifyClusterV5NotFound) Error() string
type ModifyClusterV5OK ¶
type ModifyClusterV5OK struct {
Payload *models.V5ClusterDetailsResponse
}
ModifyClusterV5OK handles this case with default header values.
Cluster modified
func NewModifyClusterV5OK ¶
func NewModifyClusterV5OK() *ModifyClusterV5OK
NewModifyClusterV5OK creates a ModifyClusterV5OK with default headers values
func (*ModifyClusterV5OK) Error ¶
func (o *ModifyClusterV5OK) Error() string
type ModifyClusterV5Params ¶
type ModifyClusterV5Params struct { /*XGiantSwarmActivity Name of an activity to track, like "list-clusters". This allows to analyze several API requests sent in context and gives an idea on the purpose. */ XGiantSwarmActivity *string /*XGiantSwarmCmdLine If activity has been issued by a CLI, this header can contain the command line */ XGiantSwarmCmdLine *string /*XRequestID A randomly generated key that can be used to track a request throughout services of Giant Swarm. */ XRequestID *string /*Body Merge-patch body */ Body *models.V5ModifyClusterRequest /*ClusterID Cluster ID */ ClusterID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ModifyClusterV5Params contains all the parameters to send to the API endpoint for the modify cluster v5 operation typically these are written to a http.Request
func NewModifyClusterV5Params ¶
func NewModifyClusterV5Params() *ModifyClusterV5Params
NewModifyClusterV5Params creates a new ModifyClusterV5Params object with the default values initialized.
func NewModifyClusterV5ParamsWithContext ¶
func NewModifyClusterV5ParamsWithContext(ctx context.Context) *ModifyClusterV5Params
NewModifyClusterV5ParamsWithContext creates a new ModifyClusterV5Params object with the default values initialized, and the ability to set a context for a request
func NewModifyClusterV5ParamsWithHTTPClient ¶
func NewModifyClusterV5ParamsWithHTTPClient(client *http.Client) *ModifyClusterV5Params
NewModifyClusterV5ParamsWithHTTPClient creates a new ModifyClusterV5Params object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewModifyClusterV5ParamsWithTimeout ¶
func NewModifyClusterV5ParamsWithTimeout(timeout time.Duration) *ModifyClusterV5Params
NewModifyClusterV5ParamsWithTimeout creates a new ModifyClusterV5Params object with the default values initialized, and the ability to set a timeout on a request
func (*ModifyClusterV5Params) SetBody ¶
func (o *ModifyClusterV5Params) SetBody(body *models.V5ModifyClusterRequest)
SetBody adds the body to the modify cluster v5 params
func (*ModifyClusterV5Params) SetClusterID ¶
func (o *ModifyClusterV5Params) SetClusterID(clusterID string)
SetClusterID adds the clusterId to the modify cluster v5 params
func (*ModifyClusterV5Params) SetContext ¶
func (o *ModifyClusterV5Params) SetContext(ctx context.Context)
SetContext adds the context to the modify cluster v5 params
func (*ModifyClusterV5Params) SetHTTPClient ¶
func (o *ModifyClusterV5Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the modify cluster v5 params
func (*ModifyClusterV5Params) SetTimeout ¶
func (o *ModifyClusterV5Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the modify cluster v5 params
func (*ModifyClusterV5Params) SetXGiantSwarmActivity ¶
func (o *ModifyClusterV5Params) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the modify cluster v5 params
func (*ModifyClusterV5Params) SetXGiantSwarmCmdLine ¶
func (o *ModifyClusterV5Params) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the modify cluster v5 params
func (*ModifyClusterV5Params) SetXRequestID ¶
func (o *ModifyClusterV5Params) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the modify cluster v5 params
func (*ModifyClusterV5Params) WithBody ¶
func (o *ModifyClusterV5Params) WithBody(body *models.V5ModifyClusterRequest) *ModifyClusterV5Params
WithBody adds the body to the modify cluster v5 params
func (*ModifyClusterV5Params) WithClusterID ¶
func (o *ModifyClusterV5Params) WithClusterID(clusterID string) *ModifyClusterV5Params
WithClusterID adds the clusterID to the modify cluster v5 params
func (*ModifyClusterV5Params) WithContext ¶
func (o *ModifyClusterV5Params) WithContext(ctx context.Context) *ModifyClusterV5Params
WithContext adds the context to the modify cluster v5 params
func (*ModifyClusterV5Params) WithHTTPClient ¶
func (o *ModifyClusterV5Params) WithHTTPClient(client *http.Client) *ModifyClusterV5Params
WithHTTPClient adds the HTTPClient to the modify cluster v5 params
func (*ModifyClusterV5Params) WithTimeout ¶
func (o *ModifyClusterV5Params) WithTimeout(timeout time.Duration) *ModifyClusterV5Params
WithTimeout adds the timeout to the modify cluster v5 params
func (*ModifyClusterV5Params) WithXGiantSwarmActivity ¶
func (o *ModifyClusterV5Params) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *ModifyClusterV5Params
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the modify cluster v5 params
func (*ModifyClusterV5Params) WithXGiantSwarmCmdLine ¶
func (o *ModifyClusterV5Params) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *ModifyClusterV5Params
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the modify cluster v5 params
func (*ModifyClusterV5Params) WithXRequestID ¶
func (o *ModifyClusterV5Params) WithXRequestID(xRequestID *string) *ModifyClusterV5Params
WithXRequestID adds the xRequestID to the modify cluster v5 params
func (*ModifyClusterV5Params) WriteToRequest ¶
func (o *ModifyClusterV5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ModifyClusterV5Reader ¶
type ModifyClusterV5Reader struct {
// contains filtered or unexported fields
}
ModifyClusterV5Reader is a Reader for the ModifyClusterV5 structure.
func (*ModifyClusterV5Reader) ReadResponse ¶
func (o *ModifyClusterV5Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ModifyClusterV5Unauthorized ¶
type ModifyClusterV5Unauthorized struct {
}ModifyClusterV5Unauthorized handles this case with default header values.
Permission denied
func NewModifyClusterV5Unauthorized ¶
func NewModifyClusterV5Unauthorized() *ModifyClusterV5Unauthorized
NewModifyClusterV5Unauthorized creates a ModifyClusterV5Unauthorized with default headers values
func (*ModifyClusterV5Unauthorized) Error ¶
func (o *ModifyClusterV5Unauthorized) Error() string
Source Files
¶
- add_cluster_parameters.go
- add_cluster_responses.go
- add_cluster_v5_parameters.go
- add_cluster_v5_responses.go
- clusters_client.go
- delete_cluster_parameters.go
- delete_cluster_responses.go
- get_cluster_parameters.go
- get_cluster_responses.go
- get_cluster_status_parameters.go
- get_cluster_status_responses.go
- get_cluster_v5_parameters.go
- get_cluster_v5_responses.go
- get_clusters_parameters.go
- get_clusters_responses.go
- modify_cluster_parameters.go
- modify_cluster_responses.go
- modify_cluster_v5_parameters.go
- modify_cluster_v5_responses.go