Documentation
¶
Index ¶
- type Client
- func (a *Client) GetClusterLabels(params *GetClusterLabelsParams, authInfo runtime.ClientAuthInfoWriter) (*GetClusterLabelsOK, error)
- func (a *Client) SetClusterLabels(params *SetClusterLabelsParams, authInfo runtime.ClientAuthInfoWriter) (*SetClusterLabelsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type GetClusterLabelsNotFound
- type GetClusterLabelsOK
- type GetClusterLabelsParams
- func NewGetClusterLabelsParams() *GetClusterLabelsParams
- func NewGetClusterLabelsParamsWithContext(ctx context.Context) *GetClusterLabelsParams
- func NewGetClusterLabelsParamsWithHTTPClient(client *http.Client) *GetClusterLabelsParams
- func NewGetClusterLabelsParamsWithTimeout(timeout time.Duration) *GetClusterLabelsParams
- func (o *GetClusterLabelsParams) SetClusterID(clusterID string)
- func (o *GetClusterLabelsParams) SetContext(ctx context.Context)
- func (o *GetClusterLabelsParams) SetHTTPClient(client *http.Client)
- func (o *GetClusterLabelsParams) SetTimeout(timeout time.Duration)
- func (o *GetClusterLabelsParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *GetClusterLabelsParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *GetClusterLabelsParams) SetXRequestID(xRequestID *string)
- func (o *GetClusterLabelsParams) WithClusterID(clusterID string) *GetClusterLabelsParams
- func (o *GetClusterLabelsParams) WithContext(ctx context.Context) *GetClusterLabelsParams
- func (o *GetClusterLabelsParams) WithHTTPClient(client *http.Client) *GetClusterLabelsParams
- func (o *GetClusterLabelsParams) WithTimeout(timeout time.Duration) *GetClusterLabelsParams
- func (o *GetClusterLabelsParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetClusterLabelsParams
- func (o *GetClusterLabelsParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetClusterLabelsParams
- func (o *GetClusterLabelsParams) WithXRequestID(xRequestID *string) *GetClusterLabelsParams
- func (o *GetClusterLabelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetClusterLabelsReader
- type GetClusterLabelsUnauthorized
- type SetClusterLabelsNotFound
- type SetClusterLabelsOK
- type SetClusterLabelsParams
- func NewSetClusterLabelsParams() *SetClusterLabelsParams
- func NewSetClusterLabelsParamsWithContext(ctx context.Context) *SetClusterLabelsParams
- func NewSetClusterLabelsParamsWithHTTPClient(client *http.Client) *SetClusterLabelsParams
- func NewSetClusterLabelsParamsWithTimeout(timeout time.Duration) *SetClusterLabelsParams
- func (o *SetClusterLabelsParams) SetBody(body *models.V5SetClusterLabelsRequest)
- func (o *SetClusterLabelsParams) SetClusterID(clusterID string)
- func (o *SetClusterLabelsParams) SetContext(ctx context.Context)
- func (o *SetClusterLabelsParams) SetHTTPClient(client *http.Client)
- func (o *SetClusterLabelsParams) SetTimeout(timeout time.Duration)
- func (o *SetClusterLabelsParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *SetClusterLabelsParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *SetClusterLabelsParams) SetXRequestID(xRequestID *string)
- func (o *SetClusterLabelsParams) WithBody(body *models.V5SetClusterLabelsRequest) *SetClusterLabelsParams
- func (o *SetClusterLabelsParams) WithClusterID(clusterID string) *SetClusterLabelsParams
- func (o *SetClusterLabelsParams) WithContext(ctx context.Context) *SetClusterLabelsParams
- func (o *SetClusterLabelsParams) WithHTTPClient(client *http.Client) *SetClusterLabelsParams
- func (o *SetClusterLabelsParams) WithTimeout(timeout time.Duration) *SetClusterLabelsParams
- func (o *SetClusterLabelsParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *SetClusterLabelsParams
- func (o *SetClusterLabelsParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *SetClusterLabelsParams
- func (o *SetClusterLabelsParams) WithXRequestID(xRequestID *string) *SetClusterLabelsParams
- func (o *SetClusterLabelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetClusterLabelsReader
- type SetClusterLabelsUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for cluster labels API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new cluster labels API client.
func (*Client) GetClusterLabels ¶
func (a *Client) GetClusterLabels(params *GetClusterLabelsParams, authInfo runtime.ClientAuthInfoWriter) (*GetClusterLabelsOK, error)
GetClusterLabels gets cluster labels
Returns the labels that this cluster is labelled with
func (*Client) SetClusterLabels ¶
func (a *Client) SetClusterLabels(params *SetClusterLabelsParams, authInfo runtime.ClientAuthInfoWriter) (*SetClusterLabelsOK, error)
SetClusterLabels sets cluster labels
Set cluster labels. Keys and labels should adhere to [Kubernetes labels syntax and character set](https://v1-16.docs.kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set).
Label changes should be written as a [JSON Merge Patch, RFC 7386](https://tools.ietf.org/html/rfc7386).
Changes to labels containing `giantswarm.io` is forbidden, changes to label `release.giantswarm.io/version` will be validated against available Giant Swarm releases.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetClusterLabelsNotFound ¶
type GetClusterLabelsNotFound struct {
Payload *models.V4GenericResponse
}
GetClusterLabelsNotFound handles this case with default header values.
Not found
func NewGetClusterLabelsNotFound ¶
func NewGetClusterLabelsNotFound() *GetClusterLabelsNotFound
NewGetClusterLabelsNotFound creates a GetClusterLabelsNotFound with default headers values
func (*GetClusterLabelsNotFound) Error ¶
func (o *GetClusterLabelsNotFound) Error() string
type GetClusterLabelsOK ¶
type GetClusterLabelsOK struct {
Payload *models.V5ClusterLabelsResponse
}
GetClusterLabelsOK handles this case with default header values.
Cluster labels
func NewGetClusterLabelsOK ¶
func NewGetClusterLabelsOK() *GetClusterLabelsOK
NewGetClusterLabelsOK creates a GetClusterLabelsOK with default headers values
func (*GetClusterLabelsOK) Error ¶
func (o *GetClusterLabelsOK) Error() string
type GetClusterLabelsParams ¶
type GetClusterLabelsParams 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 }
GetClusterLabelsParams contains all the parameters to send to the API endpoint for the get cluster labels operation typically these are written to a http.Request
func NewGetClusterLabelsParams ¶
func NewGetClusterLabelsParams() *GetClusterLabelsParams
NewGetClusterLabelsParams creates a new GetClusterLabelsParams object with the default values initialized.
func NewGetClusterLabelsParamsWithContext ¶
func NewGetClusterLabelsParamsWithContext(ctx context.Context) *GetClusterLabelsParams
NewGetClusterLabelsParamsWithContext creates a new GetClusterLabelsParams object with the default values initialized, and the ability to set a context for a request
func NewGetClusterLabelsParamsWithHTTPClient ¶
func NewGetClusterLabelsParamsWithHTTPClient(client *http.Client) *GetClusterLabelsParams
NewGetClusterLabelsParamsWithHTTPClient creates a new GetClusterLabelsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetClusterLabelsParamsWithTimeout ¶
func NewGetClusterLabelsParamsWithTimeout(timeout time.Duration) *GetClusterLabelsParams
NewGetClusterLabelsParamsWithTimeout creates a new GetClusterLabelsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetClusterLabelsParams) SetClusterID ¶
func (o *GetClusterLabelsParams) SetClusterID(clusterID string)
SetClusterID adds the clusterId to the get cluster labels params
func (*GetClusterLabelsParams) SetContext ¶
func (o *GetClusterLabelsParams) SetContext(ctx context.Context)
SetContext adds the context to the get cluster labels params
func (*GetClusterLabelsParams) SetHTTPClient ¶
func (o *GetClusterLabelsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get cluster labels params
func (*GetClusterLabelsParams) SetTimeout ¶
func (o *GetClusterLabelsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get cluster labels params
func (*GetClusterLabelsParams) SetXGiantSwarmActivity ¶
func (o *GetClusterLabelsParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get cluster labels params
func (*GetClusterLabelsParams) SetXGiantSwarmCmdLine ¶
func (o *GetClusterLabelsParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get cluster labels params
func (*GetClusterLabelsParams) SetXRequestID ¶
func (o *GetClusterLabelsParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get cluster labels params
func (*GetClusterLabelsParams) WithClusterID ¶
func (o *GetClusterLabelsParams) WithClusterID(clusterID string) *GetClusterLabelsParams
WithClusterID adds the clusterID to the get cluster labels params
func (*GetClusterLabelsParams) WithContext ¶
func (o *GetClusterLabelsParams) WithContext(ctx context.Context) *GetClusterLabelsParams
WithContext adds the context to the get cluster labels params
func (*GetClusterLabelsParams) WithHTTPClient ¶
func (o *GetClusterLabelsParams) WithHTTPClient(client *http.Client) *GetClusterLabelsParams
WithHTTPClient adds the HTTPClient to the get cluster labels params
func (*GetClusterLabelsParams) WithTimeout ¶
func (o *GetClusterLabelsParams) WithTimeout(timeout time.Duration) *GetClusterLabelsParams
WithTimeout adds the timeout to the get cluster labels params
func (*GetClusterLabelsParams) WithXGiantSwarmActivity ¶
func (o *GetClusterLabelsParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetClusterLabelsParams
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get cluster labels params
func (*GetClusterLabelsParams) WithXGiantSwarmCmdLine ¶
func (o *GetClusterLabelsParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetClusterLabelsParams
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get cluster labels params
func (*GetClusterLabelsParams) WithXRequestID ¶
func (o *GetClusterLabelsParams) WithXRequestID(xRequestID *string) *GetClusterLabelsParams
WithXRequestID adds the xRequestID to the get cluster labels params
func (*GetClusterLabelsParams) WriteToRequest ¶
func (o *GetClusterLabelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetClusterLabelsReader ¶
type GetClusterLabelsReader struct {
// contains filtered or unexported fields
}
GetClusterLabelsReader is a Reader for the GetClusterLabels structure.
func (*GetClusterLabelsReader) ReadResponse ¶
func (o *GetClusterLabelsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetClusterLabelsUnauthorized ¶
type GetClusterLabelsUnauthorized struct {
}GetClusterLabelsUnauthorized handles this case with default header values.
Permission denied
func NewGetClusterLabelsUnauthorized ¶
func NewGetClusterLabelsUnauthorized() *GetClusterLabelsUnauthorized
NewGetClusterLabelsUnauthorized creates a GetClusterLabelsUnauthorized with default headers values
func (*GetClusterLabelsUnauthorized) Error ¶
func (o *GetClusterLabelsUnauthorized) Error() string
type SetClusterLabelsNotFound ¶
type SetClusterLabelsNotFound struct {
Payload *models.V4GenericResponse
}
SetClusterLabelsNotFound handles this case with default header values.
Not found
func NewSetClusterLabelsNotFound ¶
func NewSetClusterLabelsNotFound() *SetClusterLabelsNotFound
NewSetClusterLabelsNotFound creates a SetClusterLabelsNotFound with default headers values
func (*SetClusterLabelsNotFound) Error ¶
func (o *SetClusterLabelsNotFound) Error() string
type SetClusterLabelsOK ¶
type SetClusterLabelsOK struct {
Payload *models.V5ClusterLabelsResponse
}
SetClusterLabelsOK handles this case with default header values.
Labels attached to this cluster after update
func NewSetClusterLabelsOK ¶
func NewSetClusterLabelsOK() *SetClusterLabelsOK
NewSetClusterLabelsOK creates a SetClusterLabelsOK with default headers values
func (*SetClusterLabelsOK) Error ¶
func (o *SetClusterLabelsOK) Error() string
type SetClusterLabelsParams ¶
type SetClusterLabelsParams 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 Labels to attach to this cluster. */ Body *models.V5SetClusterLabelsRequest /*ClusterID Cluster ID */ ClusterID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SetClusterLabelsParams contains all the parameters to send to the API endpoint for the set cluster labels operation typically these are written to a http.Request
func NewSetClusterLabelsParams ¶
func NewSetClusterLabelsParams() *SetClusterLabelsParams
NewSetClusterLabelsParams creates a new SetClusterLabelsParams object with the default values initialized.
func NewSetClusterLabelsParamsWithContext ¶
func NewSetClusterLabelsParamsWithContext(ctx context.Context) *SetClusterLabelsParams
NewSetClusterLabelsParamsWithContext creates a new SetClusterLabelsParams object with the default values initialized, and the ability to set a context for a request
func NewSetClusterLabelsParamsWithHTTPClient ¶
func NewSetClusterLabelsParamsWithHTTPClient(client *http.Client) *SetClusterLabelsParams
NewSetClusterLabelsParamsWithHTTPClient creates a new SetClusterLabelsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewSetClusterLabelsParamsWithTimeout ¶
func NewSetClusterLabelsParamsWithTimeout(timeout time.Duration) *SetClusterLabelsParams
NewSetClusterLabelsParamsWithTimeout creates a new SetClusterLabelsParams object with the default values initialized, and the ability to set a timeout on a request
func (*SetClusterLabelsParams) SetBody ¶
func (o *SetClusterLabelsParams) SetBody(body *models.V5SetClusterLabelsRequest)
SetBody adds the body to the set cluster labels params
func (*SetClusterLabelsParams) SetClusterID ¶
func (o *SetClusterLabelsParams) SetClusterID(clusterID string)
SetClusterID adds the clusterId to the set cluster labels params
func (*SetClusterLabelsParams) SetContext ¶
func (o *SetClusterLabelsParams) SetContext(ctx context.Context)
SetContext adds the context to the set cluster labels params
func (*SetClusterLabelsParams) SetHTTPClient ¶
func (o *SetClusterLabelsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the set cluster labels params
func (*SetClusterLabelsParams) SetTimeout ¶
func (o *SetClusterLabelsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the set cluster labels params
func (*SetClusterLabelsParams) SetXGiantSwarmActivity ¶
func (o *SetClusterLabelsParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the set cluster labels params
func (*SetClusterLabelsParams) SetXGiantSwarmCmdLine ¶
func (o *SetClusterLabelsParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the set cluster labels params
func (*SetClusterLabelsParams) SetXRequestID ¶
func (o *SetClusterLabelsParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the set cluster labels params
func (*SetClusterLabelsParams) WithBody ¶
func (o *SetClusterLabelsParams) WithBody(body *models.V5SetClusterLabelsRequest) *SetClusterLabelsParams
WithBody adds the body to the set cluster labels params
func (*SetClusterLabelsParams) WithClusterID ¶
func (o *SetClusterLabelsParams) WithClusterID(clusterID string) *SetClusterLabelsParams
WithClusterID adds the clusterID to the set cluster labels params
func (*SetClusterLabelsParams) WithContext ¶
func (o *SetClusterLabelsParams) WithContext(ctx context.Context) *SetClusterLabelsParams
WithContext adds the context to the set cluster labels params
func (*SetClusterLabelsParams) WithHTTPClient ¶
func (o *SetClusterLabelsParams) WithHTTPClient(client *http.Client) *SetClusterLabelsParams
WithHTTPClient adds the HTTPClient to the set cluster labels params
func (*SetClusterLabelsParams) WithTimeout ¶
func (o *SetClusterLabelsParams) WithTimeout(timeout time.Duration) *SetClusterLabelsParams
WithTimeout adds the timeout to the set cluster labels params
func (*SetClusterLabelsParams) WithXGiantSwarmActivity ¶
func (o *SetClusterLabelsParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *SetClusterLabelsParams
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the set cluster labels params
func (*SetClusterLabelsParams) WithXGiantSwarmCmdLine ¶
func (o *SetClusterLabelsParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *SetClusterLabelsParams
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the set cluster labels params
func (*SetClusterLabelsParams) WithXRequestID ¶
func (o *SetClusterLabelsParams) WithXRequestID(xRequestID *string) *SetClusterLabelsParams
WithXRequestID adds the xRequestID to the set cluster labels params
func (*SetClusterLabelsParams) WriteToRequest ¶
func (o *SetClusterLabelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SetClusterLabelsReader ¶
type SetClusterLabelsReader struct {
// contains filtered or unexported fields
}
SetClusterLabelsReader is a Reader for the SetClusterLabels structure.
func (*SetClusterLabelsReader) ReadResponse ¶
func (o *SetClusterLabelsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SetClusterLabelsUnauthorized ¶
type SetClusterLabelsUnauthorized struct {
}SetClusterLabelsUnauthorized handles this case with default header values.
Permission denied
func NewSetClusterLabelsUnauthorized ¶
func NewSetClusterLabelsUnauthorized() *SetClusterLabelsUnauthorized
NewSetClusterLabelsUnauthorized creates a SetClusterLabelsUnauthorized with default headers values
func (*SetClusterLabelsUnauthorized) Error ¶
func (o *SetClusterLabelsUnauthorized) Error() string