raft

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 30, 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) RaftTransferLeadership added in v1.1.3

func (a *Client) RaftTransferLeadership(params *RaftTransferLeadershipParams, opts ...ClientOption) (*RaftTransferLeadershipOK, error)

RaftTransferLeadership 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)

	RaftTransferLeadership(params *RaftTransferLeadershipParams, opts ...ClientOption) (*RaftTransferLeadershipOK, 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 RaftTransferLeadershipInternalServerError added in v1.1.3

type RaftTransferLeadershipInternalServerError struct {
	Payload *rest_model.APIErrorEnvelope
}
RaftTransferLeadershipInternalServerError 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 NewRaftTransferLeadershipInternalServerError added in v1.1.3

func NewRaftTransferLeadershipInternalServerError() *RaftTransferLeadershipInternalServerError

NewRaftTransferLeadershipInternalServerError creates a RaftTransferLeadershipInternalServerError with default headers values

func (*RaftTransferLeadershipInternalServerError) Error added in v1.1.3

func (*RaftTransferLeadershipInternalServerError) GetPayload added in v1.1.3

type RaftTransferLeadershipNotFound added in v1.1.3

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

The requested resource does not exist

func NewRaftTransferLeadershipNotFound added in v1.1.3

func NewRaftTransferLeadershipNotFound() *RaftTransferLeadershipNotFound

NewRaftTransferLeadershipNotFound creates a RaftTransferLeadershipNotFound with default headers values

func (*RaftTransferLeadershipNotFound) Error added in v1.1.3

func (*RaftTransferLeadershipNotFound) GetPayload added in v1.1.3

type RaftTransferLeadershipOK added in v1.1.3

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

Base empty response

func NewRaftTransferLeadershipOK added in v1.1.3

func NewRaftTransferLeadershipOK() *RaftTransferLeadershipOK

NewRaftTransferLeadershipOK creates a RaftTransferLeadershipOK with default headers values

func (*RaftTransferLeadershipOK) Error added in v1.1.3

func (o *RaftTransferLeadershipOK) Error() string

func (*RaftTransferLeadershipOK) GetPayload added in v1.1.3

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

type RaftTransferLeadershipParams added in v1.1.3

type RaftTransferLeadershipParams struct {

	/* Member.

	   transfer operation parameters
	*/
	Member *rest_model.RaftTransferLeadership

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

RaftTransferLeadershipParams contains all the parameters to send to the API endpoint

for the raft transfer leadership operation.

Typically these are written to a http.Request.

func NewRaftTransferLeadershipParams added in v1.1.3

func NewRaftTransferLeadershipParams() *RaftTransferLeadershipParams

NewRaftTransferLeadershipParams creates a new RaftTransferLeadershipParams 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 NewRaftTransferLeadershipParamsWithContext added in v1.1.3

func NewRaftTransferLeadershipParamsWithContext(ctx context.Context) *RaftTransferLeadershipParams

NewRaftTransferLeadershipParamsWithContext creates a new RaftTransferLeadershipParams object with the ability to set a context for a request.

func NewRaftTransferLeadershipParamsWithHTTPClient added in v1.1.3

func NewRaftTransferLeadershipParamsWithHTTPClient(client *http.Client) *RaftTransferLeadershipParams

NewRaftTransferLeadershipParamsWithHTTPClient creates a new RaftTransferLeadershipParams object with the ability to set a custom HTTPClient for a request.

func NewRaftTransferLeadershipParamsWithTimeout added in v1.1.3

func NewRaftTransferLeadershipParamsWithTimeout(timeout time.Duration) *RaftTransferLeadershipParams

NewRaftTransferLeadershipParamsWithTimeout creates a new RaftTransferLeadershipParams object with the ability to set a timeout on a request.

func (*RaftTransferLeadershipParams) SetContext added in v1.1.3

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

SetContext adds the context to the raft transfer leadership params

func (*RaftTransferLeadershipParams) SetDefaults added in v1.1.3

func (o *RaftTransferLeadershipParams) SetDefaults()

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

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

func (*RaftTransferLeadershipParams) SetHTTPClient added in v1.1.3

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

SetHTTPClient adds the HTTPClient to the raft transfer leadership params

func (*RaftTransferLeadershipParams) SetMember added in v1.1.3

SetMember adds the member to the raft transfer leadership params

func (*RaftTransferLeadershipParams) SetTimeout added in v1.1.3

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

SetTimeout adds the timeout to the raft transfer leadership params

func (*RaftTransferLeadershipParams) WithContext added in v1.1.3

WithContext adds the context to the raft transfer leadership params

func (*RaftTransferLeadershipParams) WithDefaults added in v1.1.3

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

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

func (*RaftTransferLeadershipParams) WithHTTPClient added in v1.1.3

WithHTTPClient adds the HTTPClient to the raft transfer leadership params

func (*RaftTransferLeadershipParams) WithMember added in v1.1.3

WithMember adds the member to the raft transfer leadership params

func (*RaftTransferLeadershipParams) WithTimeout added in v1.1.3

WithTimeout adds the timeout to the raft transfer leadership params

func (*RaftTransferLeadershipParams) WriteToRequest added in v1.1.3

WriteToRequest writes these params to a swagger request

type RaftTransferLeadershipReader added in v1.1.3

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

RaftTransferLeadershipReader is a Reader for the RaftTransferLeadership structure.

func (*RaftTransferLeadershipReader) ReadResponse added in v1.1.3

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

ReadResponse reads a server response into the received o.

type RaftTransferLeadershipTooManyRequests added in v1.1.3

type RaftTransferLeadershipTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
RaftTransferLeadershipTooManyRequests 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 NewRaftTransferLeadershipTooManyRequests added in v1.1.3

func NewRaftTransferLeadershipTooManyRequests() *RaftTransferLeadershipTooManyRequests

NewRaftTransferLeadershipTooManyRequests creates a RaftTransferLeadershipTooManyRequests with default headers values

func (*RaftTransferLeadershipTooManyRequests) Error added in v1.1.3

func (*RaftTransferLeadershipTooManyRequests) GetPayload added in v1.1.3

type RaftTransferLeadershipUnauthorized added in v1.1.3

type RaftTransferLeadershipUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
RaftTransferLeadershipUnauthorized 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 NewRaftTransferLeadershipUnauthorized added in v1.1.3

func NewRaftTransferLeadershipUnauthorized() *RaftTransferLeadershipUnauthorized

NewRaftTransferLeadershipUnauthorized creates a RaftTransferLeadershipUnauthorized with default headers values

func (*RaftTransferLeadershipUnauthorized) Error added in v1.1.3

func (*RaftTransferLeadershipUnauthorized) GetPayload added in v1.1.3

Jump to

Keyboard shortcuts

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