raft

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 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 raft API

func (*Client) RaftListMembers

func (a *Client) RaftListMembers(params *RaftListMembersParams, opts ...ClientOption) (*RaftListMembersOK, error)

RaftListMembers returns all members of a cluster and their current status

Returns all members of a cluster and their current status

func (*Client) RaftMemberAdd added in v0.31.3

func (a *Client) RaftMemberAdd(params *RaftMemberAddParams, opts ...ClientOption) (*RaftMemberAddOK, error)

RaftMemberAdd adds a member to the raft cluster

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

func (*Client) RaftMemberRemove added in v0.31.3

func (a *Client) RaftMemberRemove(params *RaftMemberRemoveParams, opts ...ClientOption) (*RaftMemberRemoveOK, error)

RaftMemberRemove removes a member from the raft cluster

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

func (*Client) RaftTranferLeadership added in v0.31.3

func (a *Client) RaftTranferLeadership(params *RaftTranferLeadershipParams, opts ...ClientOption) (*RaftTranferLeadershipOK, error)

RaftTranferLeadership 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 {
	RaftListMembers(params *RaftListMembersParams, opts ...ClientOption) (*RaftListMembersOK, error)

	RaftMemberAdd(params *RaftMemberAddParams, opts ...ClientOption) (*RaftMemberAddOK, error)

	RaftMemberRemove(params *RaftMemberRemoveParams, opts ...ClientOption) (*RaftMemberRemoveOK, error)

	RaftTranferLeadership(params *RaftTranferLeadershipParams, opts ...ClientOption) (*RaftTranferLeadershipOK, 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 raft API client.

type RaftListMembersBadRequest added in v0.31.3

type RaftListMembersBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
RaftListMembersBadRequest 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 NewRaftListMembersBadRequest added in v0.31.3

func NewRaftListMembersBadRequest() *RaftListMembersBadRequest

NewRaftListMembersBadRequest creates a RaftListMembersBadRequest with default headers values

func (*RaftListMembersBadRequest) Error added in v0.31.3

func (o *RaftListMembersBadRequest) Error() string

func (*RaftListMembersBadRequest) GetPayload added in v0.31.3

type RaftListMembersOK

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

A response to a raft list-members request

func NewRaftListMembersOK

func NewRaftListMembersOK() *RaftListMembersOK

NewRaftListMembersOK creates a RaftListMembersOK with default headers values

func (*RaftListMembersOK) Error

func (o *RaftListMembersOK) Error() string

func (*RaftListMembersOK) GetPayload

type RaftListMembersParams

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

RaftListMembersParams contains all the parameters to send to the API endpoint

for the raft list members operation.

Typically these are written to a http.Request.

func NewRaftListMembersParams

func NewRaftListMembersParams() *RaftListMembersParams

NewRaftListMembersParams creates a new RaftListMembersParams 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 NewRaftListMembersParamsWithContext

func NewRaftListMembersParamsWithContext(ctx context.Context) *RaftListMembersParams

NewRaftListMembersParamsWithContext creates a new RaftListMembersParams object with the ability to set a context for a request.

func NewRaftListMembersParamsWithHTTPClient

func NewRaftListMembersParamsWithHTTPClient(client *http.Client) *RaftListMembersParams

NewRaftListMembersParamsWithHTTPClient creates a new RaftListMembersParams object with the ability to set a custom HTTPClient for a request.

func NewRaftListMembersParamsWithTimeout

func NewRaftListMembersParamsWithTimeout(timeout time.Duration) *RaftListMembersParams

NewRaftListMembersParamsWithTimeout creates a new RaftListMembersParams object with the ability to set a timeout on a request.

func (*RaftListMembersParams) SetContext

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

SetContext adds the context to the raft list members params

func (*RaftListMembersParams) SetDefaults

func (o *RaftListMembersParams) SetDefaults()

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

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

func (*RaftListMembersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the raft list members params

func (*RaftListMembersParams) SetTimeout

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

SetTimeout adds the timeout to the raft list members params

func (*RaftListMembersParams) WithContext

WithContext adds the context to the raft list members params

func (*RaftListMembersParams) WithDefaults

func (o *RaftListMembersParams) WithDefaults() *RaftListMembersParams

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

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

func (*RaftListMembersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the raft list members params

func (*RaftListMembersParams) WithTimeout

func (o *RaftListMembersParams) WithTimeout(timeout time.Duration) *RaftListMembersParams

WithTimeout adds the timeout to the raft list members params

func (*RaftListMembersParams) WriteToRequest

func (o *RaftListMembersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RaftListMembersReader

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

RaftListMembersReader is a Reader for the RaftListMembers structure.

func (*RaftListMembersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RaftListMembersTooManyRequests added in v0.31.0

type RaftListMembersTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
RaftListMembersTooManyRequests 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 NewRaftListMembersTooManyRequests added in v0.31.0

func NewRaftListMembersTooManyRequests() *RaftListMembersTooManyRequests

NewRaftListMembersTooManyRequests creates a RaftListMembersTooManyRequests with default headers values

func (*RaftListMembersTooManyRequests) Error added in v0.31.0

func (*RaftListMembersTooManyRequests) GetPayload added in v0.31.0

type RaftListMembersUnauthorized

type RaftListMembersUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
RaftListMembersUnauthorized 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 NewRaftListMembersUnauthorized

func NewRaftListMembersUnauthorized() *RaftListMembersUnauthorized

NewRaftListMembersUnauthorized creates a RaftListMembersUnauthorized with default headers values

func (*RaftListMembersUnauthorized) Error

func (*RaftListMembersUnauthorized) GetPayload

type RaftMemberAddBadRequest added in v0.31.3

type RaftMemberAddBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
RaftMemberAddBadRequest 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 NewRaftMemberAddBadRequest added in v0.31.3

func NewRaftMemberAddBadRequest() *RaftMemberAddBadRequest

NewRaftMemberAddBadRequest creates a RaftMemberAddBadRequest with default headers values

func (*RaftMemberAddBadRequest) Error added in v0.31.3

func (o *RaftMemberAddBadRequest) Error() string

func (*RaftMemberAddBadRequest) GetPayload added in v0.31.3

type RaftMemberAddOK added in v0.31.3

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

Base empty response

func NewRaftMemberAddOK added in v0.31.3

func NewRaftMemberAddOK() *RaftMemberAddOK

NewRaftMemberAddOK creates a RaftMemberAddOK with default headers values

func (*RaftMemberAddOK) Error added in v0.31.3

func (o *RaftMemberAddOK) Error() string

func (*RaftMemberAddOK) GetPayload added in v0.31.3

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

type RaftMemberAddParams added in v0.31.3

type RaftMemberAddParams struct {

	/* Member.

	   member parameters
	*/
	Member *rest_model.RaftMemberAdd

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

RaftMemberAddParams contains all the parameters to send to the API endpoint

for the raft member add operation.

Typically these are written to a http.Request.

func NewRaftMemberAddParams added in v0.31.3

func NewRaftMemberAddParams() *RaftMemberAddParams

NewRaftMemberAddParams creates a new RaftMemberAddParams 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 NewRaftMemberAddParamsWithContext added in v0.31.3

func NewRaftMemberAddParamsWithContext(ctx context.Context) *RaftMemberAddParams

NewRaftMemberAddParamsWithContext creates a new RaftMemberAddParams object with the ability to set a context for a request.

func NewRaftMemberAddParamsWithHTTPClient added in v0.31.3

func NewRaftMemberAddParamsWithHTTPClient(client *http.Client) *RaftMemberAddParams

NewRaftMemberAddParamsWithHTTPClient creates a new RaftMemberAddParams object with the ability to set a custom HTTPClient for a request.

func NewRaftMemberAddParamsWithTimeout added in v0.31.3

func NewRaftMemberAddParamsWithTimeout(timeout time.Duration) *RaftMemberAddParams

NewRaftMemberAddParamsWithTimeout creates a new RaftMemberAddParams object with the ability to set a timeout on a request.

func (*RaftMemberAddParams) SetContext added in v0.31.3

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

SetContext adds the context to the raft member add params

func (*RaftMemberAddParams) SetDefaults added in v0.31.3

func (o *RaftMemberAddParams) SetDefaults()

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

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

func (*RaftMemberAddParams) SetHTTPClient added in v0.31.3

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

SetHTTPClient adds the HTTPClient to the raft member add params

func (*RaftMemberAddParams) SetMember added in v0.31.3

func (o *RaftMemberAddParams) SetMember(member *rest_model.RaftMemberAdd)

SetMember adds the member to the raft member add params

func (*RaftMemberAddParams) SetTimeout added in v0.31.3

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

SetTimeout adds the timeout to the raft member add params

func (*RaftMemberAddParams) WithContext added in v0.31.3

WithContext adds the context to the raft member add params

func (*RaftMemberAddParams) WithDefaults added in v0.31.3

func (o *RaftMemberAddParams) WithDefaults() *RaftMemberAddParams

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

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

func (*RaftMemberAddParams) WithHTTPClient added in v0.31.3

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

WithHTTPClient adds the HTTPClient to the raft member add params

func (*RaftMemberAddParams) WithMember added in v0.31.3

WithMember adds the member to the raft member add params

func (*RaftMemberAddParams) WithTimeout added in v0.31.3

func (o *RaftMemberAddParams) WithTimeout(timeout time.Duration) *RaftMemberAddParams

WithTimeout adds the timeout to the raft member add params

func (*RaftMemberAddParams) WriteToRequest added in v0.31.3

func (o *RaftMemberAddParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RaftMemberAddReader added in v0.31.3

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

RaftMemberAddReader is a Reader for the RaftMemberAdd structure.

func (*RaftMemberAddReader) ReadResponse added in v0.31.3

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

ReadResponse reads a server response into the received o.

type RaftMemberAddTooManyRequests added in v0.31.3

type RaftMemberAddTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
RaftMemberAddTooManyRequests 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 NewRaftMemberAddTooManyRequests added in v0.31.3

func NewRaftMemberAddTooManyRequests() *RaftMemberAddTooManyRequests

NewRaftMemberAddTooManyRequests creates a RaftMemberAddTooManyRequests with default headers values

func (*RaftMemberAddTooManyRequests) Error added in v0.31.3

func (*RaftMemberAddTooManyRequests) GetPayload added in v0.31.3

type RaftMemberAddUnauthorized added in v0.31.3

type RaftMemberAddUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
RaftMemberAddUnauthorized 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 NewRaftMemberAddUnauthorized added in v0.31.3

func NewRaftMemberAddUnauthorized() *RaftMemberAddUnauthorized

NewRaftMemberAddUnauthorized creates a RaftMemberAddUnauthorized with default headers values

func (*RaftMemberAddUnauthorized) Error added in v0.31.3

func (o *RaftMemberAddUnauthorized) Error() string

func (*RaftMemberAddUnauthorized) GetPayload added in v0.31.3

type RaftMemberRemoveBadRequest added in v0.31.3

type RaftMemberRemoveBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
RaftMemberRemoveBadRequest 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 NewRaftMemberRemoveBadRequest added in v0.31.3

func NewRaftMemberRemoveBadRequest() *RaftMemberRemoveBadRequest

NewRaftMemberRemoveBadRequest creates a RaftMemberRemoveBadRequest with default headers values

func (*RaftMemberRemoveBadRequest) Error added in v0.31.3

func (*RaftMemberRemoveBadRequest) GetPayload added in v0.31.3

type RaftMemberRemoveNotFound added in v0.31.3

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

The requested resource does not exist

func NewRaftMemberRemoveNotFound added in v0.31.3

func NewRaftMemberRemoveNotFound() *RaftMemberRemoveNotFound

NewRaftMemberRemoveNotFound creates a RaftMemberRemoveNotFound with default headers values

func (*RaftMemberRemoveNotFound) Error added in v0.31.3

func (o *RaftMemberRemoveNotFound) Error() string

func (*RaftMemberRemoveNotFound) GetPayload added in v0.31.3

type RaftMemberRemoveOK added in v0.31.3

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

Base empty response

func NewRaftMemberRemoveOK added in v0.31.3

func NewRaftMemberRemoveOK() *RaftMemberRemoveOK

NewRaftMemberRemoveOK creates a RaftMemberRemoveOK with default headers values

func (*RaftMemberRemoveOK) Error added in v0.31.3

func (o *RaftMemberRemoveOK) Error() string

func (*RaftMemberRemoveOK) GetPayload added in v0.31.3

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

type RaftMemberRemoveParams added in v0.31.3

type RaftMemberRemoveParams struct {

	/* Member.

	   member parameters
	*/
	Member *rest_model.RaftMemberRemove

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

RaftMemberRemoveParams contains all the parameters to send to the API endpoint

for the raft member remove operation.

Typically these are written to a http.Request.

func NewRaftMemberRemoveParams added in v0.31.3

func NewRaftMemberRemoveParams() *RaftMemberRemoveParams

NewRaftMemberRemoveParams creates a new RaftMemberRemoveParams 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 NewRaftMemberRemoveParamsWithContext added in v0.31.3

func NewRaftMemberRemoveParamsWithContext(ctx context.Context) *RaftMemberRemoveParams

NewRaftMemberRemoveParamsWithContext creates a new RaftMemberRemoveParams object with the ability to set a context for a request.

func NewRaftMemberRemoveParamsWithHTTPClient added in v0.31.3

func NewRaftMemberRemoveParamsWithHTTPClient(client *http.Client) *RaftMemberRemoveParams

NewRaftMemberRemoveParamsWithHTTPClient creates a new RaftMemberRemoveParams object with the ability to set a custom HTTPClient for a request.

func NewRaftMemberRemoveParamsWithTimeout added in v0.31.3

func NewRaftMemberRemoveParamsWithTimeout(timeout time.Duration) *RaftMemberRemoveParams

NewRaftMemberRemoveParamsWithTimeout creates a new RaftMemberRemoveParams object with the ability to set a timeout on a request.

func (*RaftMemberRemoveParams) SetContext added in v0.31.3

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

SetContext adds the context to the raft member remove params

func (*RaftMemberRemoveParams) SetDefaults added in v0.31.3

func (o *RaftMemberRemoveParams) SetDefaults()

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

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

func (*RaftMemberRemoveParams) SetHTTPClient added in v0.31.3

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

SetHTTPClient adds the HTTPClient to the raft member remove params

func (*RaftMemberRemoveParams) SetMember added in v0.31.3

func (o *RaftMemberRemoveParams) SetMember(member *rest_model.RaftMemberRemove)

SetMember adds the member to the raft member remove params

func (*RaftMemberRemoveParams) SetTimeout added in v0.31.3

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

SetTimeout adds the timeout to the raft member remove params

func (*RaftMemberRemoveParams) WithContext added in v0.31.3

WithContext adds the context to the raft member remove params

func (*RaftMemberRemoveParams) WithDefaults added in v0.31.3

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

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

func (*RaftMemberRemoveParams) WithHTTPClient added in v0.31.3

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

WithHTTPClient adds the HTTPClient to the raft member remove params

func (*RaftMemberRemoveParams) WithMember added in v0.31.3

WithMember adds the member to the raft member remove params

func (*RaftMemberRemoveParams) WithTimeout added in v0.31.3

WithTimeout adds the timeout to the raft member remove params

func (*RaftMemberRemoveParams) WriteToRequest added in v0.31.3

WriteToRequest writes these params to a swagger request

type RaftMemberRemoveReader added in v0.31.3

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

RaftMemberRemoveReader is a Reader for the RaftMemberRemove structure.

func (*RaftMemberRemoveReader) ReadResponse added in v0.31.3

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

ReadResponse reads a server response into the received o.

type RaftMemberRemoveTooManyRequests added in v0.31.3

type RaftMemberRemoveTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
RaftMemberRemoveTooManyRequests 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 NewRaftMemberRemoveTooManyRequests added in v0.31.3

func NewRaftMemberRemoveTooManyRequests() *RaftMemberRemoveTooManyRequests

NewRaftMemberRemoveTooManyRequests creates a RaftMemberRemoveTooManyRequests with default headers values

func (*RaftMemberRemoveTooManyRequests) Error added in v0.31.3

func (*RaftMemberRemoveTooManyRequests) GetPayload added in v0.31.3

type RaftMemberRemoveUnauthorized added in v0.31.3

type RaftMemberRemoveUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
RaftMemberRemoveUnauthorized 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 NewRaftMemberRemoveUnauthorized added in v0.31.3

func NewRaftMemberRemoveUnauthorized() *RaftMemberRemoveUnauthorized

NewRaftMemberRemoveUnauthorized creates a RaftMemberRemoveUnauthorized with default headers values

func (*RaftMemberRemoveUnauthorized) Error added in v0.31.3

func (*RaftMemberRemoveUnauthorized) GetPayload added in v0.31.3

type RaftTranferLeadershipInternalServerError added in v0.31.3

type RaftTranferLeadershipInternalServerError struct {
	Payload *rest_model.APIErrorEnvelope
}
RaftTranferLeadershipInternalServerError 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 NewRaftTranferLeadershipInternalServerError added in v0.31.3

func NewRaftTranferLeadershipInternalServerError() *RaftTranferLeadershipInternalServerError

NewRaftTranferLeadershipInternalServerError creates a RaftTranferLeadershipInternalServerError with default headers values

func (*RaftTranferLeadershipInternalServerError) Error added in v0.31.3

func (*RaftTranferLeadershipInternalServerError) GetPayload added in v0.31.3

type RaftTranferLeadershipNotFound added in v0.31.3

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

The requested resource does not exist

func NewRaftTranferLeadershipNotFound added in v0.31.3

func NewRaftTranferLeadershipNotFound() *RaftTranferLeadershipNotFound

NewRaftTranferLeadershipNotFound creates a RaftTranferLeadershipNotFound with default headers values

func (*RaftTranferLeadershipNotFound) Error added in v0.31.3

func (*RaftTranferLeadershipNotFound) GetPayload added in v0.31.3

type RaftTranferLeadershipOK added in v0.31.3

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

Base empty response

func NewRaftTranferLeadershipOK added in v0.31.3

func NewRaftTranferLeadershipOK() *RaftTranferLeadershipOK

NewRaftTranferLeadershipOK creates a RaftTranferLeadershipOK with default headers values

func (*RaftTranferLeadershipOK) Error added in v0.31.3

func (o *RaftTranferLeadershipOK) Error() string

func (*RaftTranferLeadershipOK) GetPayload added in v0.31.3

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

type RaftTranferLeadershipParams added in v0.31.3

type RaftTranferLeadershipParams struct {

	/* Member.

	   transfer operation parameters
	*/
	Member *rest_model.RaftTransferLeadership

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

RaftTranferLeadershipParams contains all the parameters to send to the API endpoint

for the raft tranfer leadership operation.

Typically these are written to a http.Request.

func NewRaftTranferLeadershipParams added in v0.31.3

func NewRaftTranferLeadershipParams() *RaftTranferLeadershipParams

NewRaftTranferLeadershipParams creates a new RaftTranferLeadershipParams 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 NewRaftTranferLeadershipParamsWithContext added in v0.31.3

func NewRaftTranferLeadershipParamsWithContext(ctx context.Context) *RaftTranferLeadershipParams

NewRaftTranferLeadershipParamsWithContext creates a new RaftTranferLeadershipParams object with the ability to set a context for a request.

func NewRaftTranferLeadershipParamsWithHTTPClient added in v0.31.3

func NewRaftTranferLeadershipParamsWithHTTPClient(client *http.Client) *RaftTranferLeadershipParams

NewRaftTranferLeadershipParamsWithHTTPClient creates a new RaftTranferLeadershipParams object with the ability to set a custom HTTPClient for a request.

func NewRaftTranferLeadershipParamsWithTimeout added in v0.31.3

func NewRaftTranferLeadershipParamsWithTimeout(timeout time.Duration) *RaftTranferLeadershipParams

NewRaftTranferLeadershipParamsWithTimeout creates a new RaftTranferLeadershipParams object with the ability to set a timeout on a request.

func (*RaftTranferLeadershipParams) SetContext added in v0.31.3

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

SetContext adds the context to the raft tranfer leadership params

func (*RaftTranferLeadershipParams) SetDefaults added in v0.31.3

func (o *RaftTranferLeadershipParams) SetDefaults()

SetDefaults hydrates default values in the raft tranfer leadership params (not the query body).

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

func (*RaftTranferLeadershipParams) SetHTTPClient added in v0.31.3

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

SetHTTPClient adds the HTTPClient to the raft tranfer leadership params

func (*RaftTranferLeadershipParams) SetMember added in v0.31.3

SetMember adds the member to the raft tranfer leadership params

func (*RaftTranferLeadershipParams) SetTimeout added in v0.31.3

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

SetTimeout adds the timeout to the raft tranfer leadership params

func (*RaftTranferLeadershipParams) WithContext added in v0.31.3

WithContext adds the context to the raft tranfer leadership params

func (*RaftTranferLeadershipParams) WithDefaults added in v0.31.3

WithDefaults hydrates default values in the raft tranfer leadership params (not the query body).

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

func (*RaftTranferLeadershipParams) WithHTTPClient added in v0.31.3

WithHTTPClient adds the HTTPClient to the raft tranfer leadership params

func (*RaftTranferLeadershipParams) WithMember added in v0.31.3

WithMember adds the member to the raft tranfer leadership params

func (*RaftTranferLeadershipParams) WithTimeout added in v0.31.3

WithTimeout adds the timeout to the raft tranfer leadership params

func (*RaftTranferLeadershipParams) WriteToRequest added in v0.31.3

WriteToRequest writes these params to a swagger request

type RaftTranferLeadershipReader added in v0.31.3

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

RaftTranferLeadershipReader is a Reader for the RaftTranferLeadership structure.

func (*RaftTranferLeadershipReader) ReadResponse added in v0.31.3

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

ReadResponse reads a server response into the received o.

type RaftTranferLeadershipTooManyRequests added in v0.31.3

type RaftTranferLeadershipTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
RaftTranferLeadershipTooManyRequests 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 NewRaftTranferLeadershipTooManyRequests added in v0.31.3

func NewRaftTranferLeadershipTooManyRequests() *RaftTranferLeadershipTooManyRequests

NewRaftTranferLeadershipTooManyRequests creates a RaftTranferLeadershipTooManyRequests with default headers values

func (*RaftTranferLeadershipTooManyRequests) Error added in v0.31.3

func (*RaftTranferLeadershipTooManyRequests) GetPayload added in v0.31.3

type RaftTranferLeadershipUnauthorized added in v0.31.3

type RaftTranferLeadershipUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
RaftTranferLeadershipUnauthorized 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 NewRaftTranferLeadershipUnauthorized added in v0.31.3

func NewRaftTranferLeadershipUnauthorized() *RaftTranferLeadershipUnauthorized

NewRaftTranferLeadershipUnauthorized creates a RaftTranferLeadershipUnauthorized with default headers values

func (*RaftTranferLeadershipUnauthorized) Error added in v0.31.3

func (*RaftTranferLeadershipUnauthorized) GetPayload added in v0.31.3

Jump to

Keyboard shortcuts

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