cluster

package
v1.6.13 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for cluster API

func (*Client) ClusterListMembers

func (a *Client) ClusterListMembers(params *ClusterListMembersParams, opts ...ClientOption) (*ClusterListMembersOK, error)

ClusterListMembers returns all members of a cluster and their current status

Returns all members of a cluster and their current status

func (*Client) ClusterMemberAdd

func (a *Client) ClusterMemberAdd(params *ClusterMemberAddParams, opts ...ClientOption) (*ClusterMemberAddOK, error)

ClusterMemberAdd adds a member to the controller cluster

Add a member to the controller cluster. Requires admin access.

func (*Client) ClusterMemberRemove

func (a *Client) ClusterMemberRemove(params *ClusterMemberRemoveParams, opts ...ClientOption) (*ClusterMemberRemoveOK, error)

ClusterMemberRemove removes a member from the controller cluster

Remove a member from the controller cluster. Requires admin access.

func (*Client) ClusterTransferLeadership

func (a *Client) ClusterTransferLeadership(params *ClusterTransferLeadershipParams, opts ...ClientOption) (*ClusterTransferLeadershipOK, error)

ClusterTransferLeadership attempts to transfer leadership to a different member of the cluster

Attempts to transfer leadership to a different member of the cluster. Requires admin access.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ClusterListMembers(params *ClusterListMembersParams, opts ...ClientOption) (*ClusterListMembersOK, error)

	ClusterMemberAdd(params *ClusterMemberAddParams, opts ...ClientOption) (*ClusterMemberAddOK, error)

	ClusterMemberRemove(params *ClusterMemberRemoveParams, opts ...ClientOption) (*ClusterMemberRemoveOK, error)

	ClusterTransferLeadership(params *ClusterTransferLeadershipParams, opts ...ClientOption) (*ClusterTransferLeadershipOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new cluster API client.

type ClusterListMembersBadRequest

type ClusterListMembersBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
ClusterListMembersBadRequest describes a response with status code 400, with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewClusterListMembersBadRequest

func NewClusterListMembersBadRequest() *ClusterListMembersBadRequest

NewClusterListMembersBadRequest creates a ClusterListMembersBadRequest with default headers values

func (*ClusterListMembersBadRequest) Error

func (*ClusterListMembersBadRequest) GetPayload

type ClusterListMembersOK

type ClusterListMembersOK struct {
	Payload *rest_model.ClusterMemberListResponse
}
ClusterListMembersOK describes a response with status code 200, with default header values.

A response to a cluster list-members request

func NewClusterListMembersOK

func NewClusterListMembersOK() *ClusterListMembersOK

NewClusterListMembersOK creates a ClusterListMembersOK with default headers values

func (*ClusterListMembersOK) Error

func (o *ClusterListMembersOK) Error() string

func (*ClusterListMembersOK) GetPayload

type ClusterListMembersParams

type ClusterListMembersParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ClusterListMembersParams contains all the parameters to send to the API endpoint

for the cluster list members operation.

Typically these are written to a http.Request.

func NewClusterListMembersParams

func NewClusterListMembersParams() *ClusterListMembersParams

NewClusterListMembersParams creates a new ClusterListMembersParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewClusterListMembersParamsWithContext

func NewClusterListMembersParamsWithContext(ctx context.Context) *ClusterListMembersParams

NewClusterListMembersParamsWithContext creates a new ClusterListMembersParams object with the ability to set a context for a request.

func NewClusterListMembersParamsWithHTTPClient

func NewClusterListMembersParamsWithHTTPClient(client *http.Client) *ClusterListMembersParams

NewClusterListMembersParamsWithHTTPClient creates a new ClusterListMembersParams object with the ability to set a custom HTTPClient for a request.

func NewClusterListMembersParamsWithTimeout

func NewClusterListMembersParamsWithTimeout(timeout time.Duration) *ClusterListMembersParams

NewClusterListMembersParamsWithTimeout creates a new ClusterListMembersParams object with the ability to set a timeout on a request.

func (*ClusterListMembersParams) SetContext

func (o *ClusterListMembersParams) SetContext(ctx context.Context)

SetContext adds the context to the cluster list members params

func (*ClusterListMembersParams) SetDefaults

func (o *ClusterListMembersParams) SetDefaults()

SetDefaults hydrates default values in the cluster list members params (not the query body).

All values with no default are reset to their zero value.

func (*ClusterListMembersParams) SetHTTPClient

func (o *ClusterListMembersParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the cluster list members params

func (*ClusterListMembersParams) SetTimeout

func (o *ClusterListMembersParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the cluster list members params

func (*ClusterListMembersParams) WithContext

WithContext adds the context to the cluster list members params

func (*ClusterListMembersParams) WithDefaults

WithDefaults hydrates default values in the cluster list members params (not the query body).

All values with no default are reset to their zero value.

func (*ClusterListMembersParams) WithHTTPClient

func (o *ClusterListMembersParams) WithHTTPClient(client *http.Client) *ClusterListMembersParams

WithHTTPClient adds the HTTPClient to the cluster list members params

func (*ClusterListMembersParams) WithTimeout

WithTimeout adds the timeout to the cluster list members params

func (*ClusterListMembersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ClusterListMembersReader

type ClusterListMembersReader struct {
	// contains filtered or unexported fields
}

ClusterListMembersReader is a Reader for the ClusterListMembers structure.

func (*ClusterListMembersReader) ReadResponse

func (o *ClusterListMembersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ClusterListMembersTooManyRequests

type ClusterListMembersTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
ClusterListMembersTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewClusterListMembersTooManyRequests

func NewClusterListMembersTooManyRequests() *ClusterListMembersTooManyRequests

NewClusterListMembersTooManyRequests creates a ClusterListMembersTooManyRequests with default headers values

func (*ClusterListMembersTooManyRequests) Error

func (*ClusterListMembersTooManyRequests) GetPayload

type ClusterListMembersUnauthorized

type ClusterListMembersUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
ClusterListMembersUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewClusterListMembersUnauthorized

func NewClusterListMembersUnauthorized() *ClusterListMembersUnauthorized

NewClusterListMembersUnauthorized creates a ClusterListMembersUnauthorized with default headers values

func (*ClusterListMembersUnauthorized) Error

func (*ClusterListMembersUnauthorized) GetPayload

type ClusterMemberAddBadRequest

type ClusterMemberAddBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
ClusterMemberAddBadRequest describes a response with status code 400, with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewClusterMemberAddBadRequest

func NewClusterMemberAddBadRequest() *ClusterMemberAddBadRequest

NewClusterMemberAddBadRequest creates a ClusterMemberAddBadRequest with default headers values

func (*ClusterMemberAddBadRequest) Error

func (*ClusterMemberAddBadRequest) GetPayload

type ClusterMemberAddOK

type ClusterMemberAddOK struct {
	Payload *rest_model.Empty
}
ClusterMemberAddOK describes a response with status code 200, with default header values.

Base empty response

func NewClusterMemberAddOK

func NewClusterMemberAddOK() *ClusterMemberAddOK

NewClusterMemberAddOK creates a ClusterMemberAddOK with default headers values

func (*ClusterMemberAddOK) Error

func (o *ClusterMemberAddOK) Error() string

func (*ClusterMemberAddOK) GetPayload

func (o *ClusterMemberAddOK) GetPayload() *rest_model.Empty

type ClusterMemberAddParams

type ClusterMemberAddParams struct {

	/* Member.

	   member parameters
	*/
	Member *rest_model.ClusterMemberAdd

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ClusterMemberAddParams contains all the parameters to send to the API endpoint

for the cluster member add operation.

Typically these are written to a http.Request.

func NewClusterMemberAddParams

func NewClusterMemberAddParams() *ClusterMemberAddParams

NewClusterMemberAddParams creates a new ClusterMemberAddParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewClusterMemberAddParamsWithContext

func NewClusterMemberAddParamsWithContext(ctx context.Context) *ClusterMemberAddParams

NewClusterMemberAddParamsWithContext creates a new ClusterMemberAddParams object with the ability to set a context for a request.

func NewClusterMemberAddParamsWithHTTPClient

func NewClusterMemberAddParamsWithHTTPClient(client *http.Client) *ClusterMemberAddParams

NewClusterMemberAddParamsWithHTTPClient creates a new ClusterMemberAddParams object with the ability to set a custom HTTPClient for a request.

func NewClusterMemberAddParamsWithTimeout

func NewClusterMemberAddParamsWithTimeout(timeout time.Duration) *ClusterMemberAddParams

NewClusterMemberAddParamsWithTimeout creates a new ClusterMemberAddParams object with the ability to set a timeout on a request.

func (*ClusterMemberAddParams) SetContext

func (o *ClusterMemberAddParams) SetContext(ctx context.Context)

SetContext adds the context to the cluster member add params

func (*ClusterMemberAddParams) SetDefaults

func (o *ClusterMemberAddParams) SetDefaults()

SetDefaults hydrates default values in the cluster member add params (not the query body).

All values with no default are reset to their zero value.

func (*ClusterMemberAddParams) SetHTTPClient

func (o *ClusterMemberAddParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the cluster member add params

func (*ClusterMemberAddParams) SetMember

func (o *ClusterMemberAddParams) SetMember(member *rest_model.ClusterMemberAdd)

SetMember adds the member to the cluster member add params

func (*ClusterMemberAddParams) SetTimeout

func (o *ClusterMemberAddParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the cluster member add params

func (*ClusterMemberAddParams) WithContext

WithContext adds the context to the cluster member add params

func (*ClusterMemberAddParams) WithDefaults

WithDefaults hydrates default values in the cluster member add params (not the query body).

All values with no default are reset to their zero value.

func (*ClusterMemberAddParams) WithHTTPClient

func (o *ClusterMemberAddParams) WithHTTPClient(client *http.Client) *ClusterMemberAddParams

WithHTTPClient adds the HTTPClient to the cluster member add params

func (*ClusterMemberAddParams) WithMember

WithMember adds the member to the cluster member add params

func (*ClusterMemberAddParams) WithTimeout

WithTimeout adds the timeout to the cluster member add params

func (*ClusterMemberAddParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ClusterMemberAddReader

type ClusterMemberAddReader struct {
	// contains filtered or unexported fields
}

ClusterMemberAddReader is a Reader for the ClusterMemberAdd structure.

func (*ClusterMemberAddReader) ReadResponse

func (o *ClusterMemberAddReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ClusterMemberAddServiceUnavailable

type ClusterMemberAddServiceUnavailable struct {
	Payload *rest_model.APIErrorEnvelope
}
ClusterMemberAddServiceUnavailable describes a response with status code 503, with default header values.

The request could not be completed due to the server being busy or in a temporarily bad state

func NewClusterMemberAddServiceUnavailable

func NewClusterMemberAddServiceUnavailable() *ClusterMemberAddServiceUnavailable

NewClusterMemberAddServiceUnavailable creates a ClusterMemberAddServiceUnavailable with default headers values

func (*ClusterMemberAddServiceUnavailable) Error

func (*ClusterMemberAddServiceUnavailable) GetPayload

type ClusterMemberAddTooManyRequests

type ClusterMemberAddTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
ClusterMemberAddTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewClusterMemberAddTooManyRequests

func NewClusterMemberAddTooManyRequests() *ClusterMemberAddTooManyRequests

NewClusterMemberAddTooManyRequests creates a ClusterMemberAddTooManyRequests with default headers values

func (*ClusterMemberAddTooManyRequests) Error

func (*ClusterMemberAddTooManyRequests) GetPayload

type ClusterMemberAddUnauthorized

type ClusterMemberAddUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
ClusterMemberAddUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewClusterMemberAddUnauthorized

func NewClusterMemberAddUnauthorized() *ClusterMemberAddUnauthorized

NewClusterMemberAddUnauthorized creates a ClusterMemberAddUnauthorized with default headers values

func (*ClusterMemberAddUnauthorized) Error

func (*ClusterMemberAddUnauthorized) GetPayload

type ClusterMemberRemoveBadRequest

type ClusterMemberRemoveBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
ClusterMemberRemoveBadRequest describes a response with status code 400, with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewClusterMemberRemoveBadRequest

func NewClusterMemberRemoveBadRequest() *ClusterMemberRemoveBadRequest

NewClusterMemberRemoveBadRequest creates a ClusterMemberRemoveBadRequest with default headers values

func (*ClusterMemberRemoveBadRequest) Error

func (*ClusterMemberRemoveBadRequest) GetPayload

type ClusterMemberRemoveNotFound

type ClusterMemberRemoveNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}
ClusterMemberRemoveNotFound describes a response with status code 404, with default header values.

The requested resource does not exist

func NewClusterMemberRemoveNotFound

func NewClusterMemberRemoveNotFound() *ClusterMemberRemoveNotFound

NewClusterMemberRemoveNotFound creates a ClusterMemberRemoveNotFound with default headers values

func (*ClusterMemberRemoveNotFound) Error

func (*ClusterMemberRemoveNotFound) GetPayload

type ClusterMemberRemoveOK

type ClusterMemberRemoveOK struct {
	Payload *rest_model.Empty
}
ClusterMemberRemoveOK describes a response with status code 200, with default header values.

Base empty response

func NewClusterMemberRemoveOK

func NewClusterMemberRemoveOK() *ClusterMemberRemoveOK

NewClusterMemberRemoveOK creates a ClusterMemberRemoveOK with default headers values

func (*ClusterMemberRemoveOK) Error

func (o *ClusterMemberRemoveOK) Error() string

func (*ClusterMemberRemoveOK) GetPayload

func (o *ClusterMemberRemoveOK) GetPayload() *rest_model.Empty

type ClusterMemberRemoveParams

type ClusterMemberRemoveParams struct {

	/* Member.

	   member parameters
	*/
	Member *rest_model.ClusterMemberRemove

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ClusterMemberRemoveParams contains all the parameters to send to the API endpoint

for the cluster member remove operation.

Typically these are written to a http.Request.

func NewClusterMemberRemoveParams

func NewClusterMemberRemoveParams() *ClusterMemberRemoveParams

NewClusterMemberRemoveParams creates a new ClusterMemberRemoveParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewClusterMemberRemoveParamsWithContext

func NewClusterMemberRemoveParamsWithContext(ctx context.Context) *ClusterMemberRemoveParams

NewClusterMemberRemoveParamsWithContext creates a new ClusterMemberRemoveParams object with the ability to set a context for a request.

func NewClusterMemberRemoveParamsWithHTTPClient

func NewClusterMemberRemoveParamsWithHTTPClient(client *http.Client) *ClusterMemberRemoveParams

NewClusterMemberRemoveParamsWithHTTPClient creates a new ClusterMemberRemoveParams object with the ability to set a custom HTTPClient for a request.

func NewClusterMemberRemoveParamsWithTimeout

func NewClusterMemberRemoveParamsWithTimeout(timeout time.Duration) *ClusterMemberRemoveParams

NewClusterMemberRemoveParamsWithTimeout creates a new ClusterMemberRemoveParams object with the ability to set a timeout on a request.

func (*ClusterMemberRemoveParams) SetContext

func (o *ClusterMemberRemoveParams) SetContext(ctx context.Context)

SetContext adds the context to the cluster member remove params

func (*ClusterMemberRemoveParams) SetDefaults

func (o *ClusterMemberRemoveParams) SetDefaults()

SetDefaults hydrates default values in the cluster member remove params (not the query body).

All values with no default are reset to their zero value.

func (*ClusterMemberRemoveParams) SetHTTPClient

func (o *ClusterMemberRemoveParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the cluster member remove params

func (*ClusterMemberRemoveParams) SetMember

SetMember adds the member to the cluster member remove params

func (*ClusterMemberRemoveParams) SetTimeout

func (o *ClusterMemberRemoveParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the cluster member remove params

func (*ClusterMemberRemoveParams) WithContext

WithContext adds the context to the cluster member remove params

func (*ClusterMemberRemoveParams) WithDefaults

WithDefaults hydrates default values in the cluster member remove params (not the query body).

All values with no default are reset to their zero value.

func (*ClusterMemberRemoveParams) WithHTTPClient

func (o *ClusterMemberRemoveParams) WithHTTPClient(client *http.Client) *ClusterMemberRemoveParams

WithHTTPClient adds the HTTPClient to the cluster member remove params

func (*ClusterMemberRemoveParams) WithMember

WithMember adds the member to the cluster member remove params

func (*ClusterMemberRemoveParams) WithTimeout

WithTimeout adds the timeout to the cluster member remove params

func (*ClusterMemberRemoveParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ClusterMemberRemoveReader

type ClusterMemberRemoveReader struct {
	// contains filtered or unexported fields
}

ClusterMemberRemoveReader is a Reader for the ClusterMemberRemove structure.

func (*ClusterMemberRemoveReader) ReadResponse

func (o *ClusterMemberRemoveReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ClusterMemberRemoveServiceUnavailable

type ClusterMemberRemoveServiceUnavailable struct {
	Payload *rest_model.APIErrorEnvelope
}
ClusterMemberRemoveServiceUnavailable describes a response with status code 503, with default header values.

The request could not be completed due to the server being busy or in a temporarily bad state

func NewClusterMemberRemoveServiceUnavailable

func NewClusterMemberRemoveServiceUnavailable() *ClusterMemberRemoveServiceUnavailable

NewClusterMemberRemoveServiceUnavailable creates a ClusterMemberRemoveServiceUnavailable with default headers values

func (*ClusterMemberRemoveServiceUnavailable) Error

func (*ClusterMemberRemoveServiceUnavailable) GetPayload

type ClusterMemberRemoveTooManyRequests

type ClusterMemberRemoveTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
ClusterMemberRemoveTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewClusterMemberRemoveTooManyRequests

func NewClusterMemberRemoveTooManyRequests() *ClusterMemberRemoveTooManyRequests

NewClusterMemberRemoveTooManyRequests creates a ClusterMemberRemoveTooManyRequests with default headers values

func (*ClusterMemberRemoveTooManyRequests) Error

func (*ClusterMemberRemoveTooManyRequests) GetPayload

type ClusterMemberRemoveUnauthorized

type ClusterMemberRemoveUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
ClusterMemberRemoveUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewClusterMemberRemoveUnauthorized

func NewClusterMemberRemoveUnauthorized() *ClusterMemberRemoveUnauthorized

NewClusterMemberRemoveUnauthorized creates a ClusterMemberRemoveUnauthorized with default headers values

func (*ClusterMemberRemoveUnauthorized) Error

func (*ClusterMemberRemoveUnauthorized) GetPayload

type ClusterTransferLeadershipInternalServerError

type ClusterTransferLeadershipInternalServerError struct {
	Payload *rest_model.APIErrorEnvelope
}
ClusterTransferLeadershipInternalServerError describes a response with status code 500, with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewClusterTransferLeadershipInternalServerError

func NewClusterTransferLeadershipInternalServerError() *ClusterTransferLeadershipInternalServerError

NewClusterTransferLeadershipInternalServerError creates a ClusterTransferLeadershipInternalServerError with default headers values

func (*ClusterTransferLeadershipInternalServerError) Error

func (*ClusterTransferLeadershipInternalServerError) GetPayload

type ClusterTransferLeadershipNotFound

type ClusterTransferLeadershipNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}
ClusterTransferLeadershipNotFound describes a response with status code 404, with default header values.

The requested resource does not exist

func NewClusterTransferLeadershipNotFound

func NewClusterTransferLeadershipNotFound() *ClusterTransferLeadershipNotFound

NewClusterTransferLeadershipNotFound creates a ClusterTransferLeadershipNotFound with default headers values

func (*ClusterTransferLeadershipNotFound) Error

func (*ClusterTransferLeadershipNotFound) GetPayload

type ClusterTransferLeadershipOK

type ClusterTransferLeadershipOK struct {
	Payload *rest_model.Empty
}
ClusterTransferLeadershipOK describes a response with status code 200, with default header values.

Base empty response

func NewClusterTransferLeadershipOK

func NewClusterTransferLeadershipOK() *ClusterTransferLeadershipOK

NewClusterTransferLeadershipOK creates a ClusterTransferLeadershipOK with default headers values

func (*ClusterTransferLeadershipOK) Error

func (*ClusterTransferLeadershipOK) GetPayload

func (o *ClusterTransferLeadershipOK) GetPayload() *rest_model.Empty

type ClusterTransferLeadershipParams

type ClusterTransferLeadershipParams struct {

	/* Member.

	   transfer operation parameters
	*/
	Member *rest_model.ClusterTransferLeadership

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ClusterTransferLeadershipParams contains all the parameters to send to the API endpoint

for the cluster transfer leadership operation.

Typically these are written to a http.Request.

func NewClusterTransferLeadershipParams

func NewClusterTransferLeadershipParams() *ClusterTransferLeadershipParams

NewClusterTransferLeadershipParams creates a new ClusterTransferLeadershipParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewClusterTransferLeadershipParamsWithContext

func NewClusterTransferLeadershipParamsWithContext(ctx context.Context) *ClusterTransferLeadershipParams

NewClusterTransferLeadershipParamsWithContext creates a new ClusterTransferLeadershipParams object with the ability to set a context for a request.

func NewClusterTransferLeadershipParamsWithHTTPClient

func NewClusterTransferLeadershipParamsWithHTTPClient(client *http.Client) *ClusterTransferLeadershipParams

NewClusterTransferLeadershipParamsWithHTTPClient creates a new ClusterTransferLeadershipParams object with the ability to set a custom HTTPClient for a request.

func NewClusterTransferLeadershipParamsWithTimeout

func NewClusterTransferLeadershipParamsWithTimeout(timeout time.Duration) *ClusterTransferLeadershipParams

NewClusterTransferLeadershipParamsWithTimeout creates a new ClusterTransferLeadershipParams object with the ability to set a timeout on a request.

func (*ClusterTransferLeadershipParams) SetContext

func (o *ClusterTransferLeadershipParams) SetContext(ctx context.Context)

SetContext adds the context to the cluster transfer leadership params

func (*ClusterTransferLeadershipParams) SetDefaults

func (o *ClusterTransferLeadershipParams) SetDefaults()

SetDefaults hydrates default values in the cluster transfer leadership params (not the query body).

All values with no default are reset to their zero value.

func (*ClusterTransferLeadershipParams) SetHTTPClient

func (o *ClusterTransferLeadershipParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the cluster transfer leadership params

func (*ClusterTransferLeadershipParams) SetMember

SetMember adds the member to the cluster transfer leadership params

func (*ClusterTransferLeadershipParams) SetTimeout

func (o *ClusterTransferLeadershipParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the cluster transfer leadership params

func (*ClusterTransferLeadershipParams) WithContext

WithContext adds the context to the cluster transfer leadership params

func (*ClusterTransferLeadershipParams) WithDefaults

WithDefaults hydrates default values in the cluster transfer leadership params (not the query body).

All values with no default are reset to their zero value.

func (*ClusterTransferLeadershipParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the cluster transfer leadership params

func (*ClusterTransferLeadershipParams) WithMember

WithMember adds the member to the cluster transfer leadership params

func (*ClusterTransferLeadershipParams) WithTimeout

WithTimeout adds the timeout to the cluster transfer leadership params

func (*ClusterTransferLeadershipParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ClusterTransferLeadershipReader

type ClusterTransferLeadershipReader struct {
	// contains filtered or unexported fields
}

ClusterTransferLeadershipReader is a Reader for the ClusterTransferLeadership structure.

func (*ClusterTransferLeadershipReader) ReadResponse

func (o *ClusterTransferLeadershipReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ClusterTransferLeadershipServiceUnavailable

type ClusterTransferLeadershipServiceUnavailable struct {
	Payload *rest_model.APIErrorEnvelope
}
ClusterTransferLeadershipServiceUnavailable describes a response with status code 503, with default header values.

The request could not be completed due to the server being busy or in a temporarily bad state

func NewClusterTransferLeadershipServiceUnavailable

func NewClusterTransferLeadershipServiceUnavailable() *ClusterTransferLeadershipServiceUnavailable

NewClusterTransferLeadershipServiceUnavailable creates a ClusterTransferLeadershipServiceUnavailable with default headers values

func (*ClusterTransferLeadershipServiceUnavailable) Error

func (*ClusterTransferLeadershipServiceUnavailable) GetPayload

type ClusterTransferLeadershipTooManyRequests

type ClusterTransferLeadershipTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
ClusterTransferLeadershipTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewClusterTransferLeadershipTooManyRequests

func NewClusterTransferLeadershipTooManyRequests() *ClusterTransferLeadershipTooManyRequests

NewClusterTransferLeadershipTooManyRequests creates a ClusterTransferLeadershipTooManyRequests with default headers values

func (*ClusterTransferLeadershipTooManyRequests) Error

func (*ClusterTransferLeadershipTooManyRequests) GetPayload

type ClusterTransferLeadershipUnauthorized

type ClusterTransferLeadershipUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
ClusterTransferLeadershipUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewClusterTransferLeadershipUnauthorized

func NewClusterTransferLeadershipUnauthorized() *ClusterTransferLeadershipUnauthorized

NewClusterTransferLeadershipUnauthorized creates a ClusterTransferLeadershipUnauthorized with default headers values

func (*ClusterTransferLeadershipUnauthorized) Error

func (*ClusterTransferLeadershipUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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