Documentation ¶
Index ¶
- type Client
- func (a *Client) RaftListMembers(params *RaftListMembersParams, opts ...ClientOption) (*RaftListMembersOK, error)
- func (a *Client) RaftMemberAdd(params *RaftMemberAddParams, opts ...ClientOption) (*RaftMemberAddOK, error)
- func (a *Client) RaftMemberRemove(params *RaftMemberRemoveParams, opts ...ClientOption) (*RaftMemberRemoveOK, error)
- func (a *Client) RaftTranferLeadership(params *RaftTranferLeadershipParams, opts ...ClientOption) (*RaftTranferLeadershipOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type RaftListMembersBadRequest
- type RaftListMembersOK
- type RaftListMembersParams
- func NewRaftListMembersParams() *RaftListMembersParams
- func NewRaftListMembersParamsWithContext(ctx context.Context) *RaftListMembersParams
- func NewRaftListMembersParamsWithHTTPClient(client *http.Client) *RaftListMembersParams
- func NewRaftListMembersParamsWithTimeout(timeout time.Duration) *RaftListMembersParams
- func (o *RaftListMembersParams) SetContext(ctx context.Context)
- func (o *RaftListMembersParams) SetDefaults()
- func (o *RaftListMembersParams) SetHTTPClient(client *http.Client)
- func (o *RaftListMembersParams) SetTimeout(timeout time.Duration)
- func (o *RaftListMembersParams) WithContext(ctx context.Context) *RaftListMembersParams
- func (o *RaftListMembersParams) WithDefaults() *RaftListMembersParams
- func (o *RaftListMembersParams) WithHTTPClient(client *http.Client) *RaftListMembersParams
- func (o *RaftListMembersParams) WithTimeout(timeout time.Duration) *RaftListMembersParams
- func (o *RaftListMembersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RaftListMembersReader
- type RaftListMembersTooManyRequests
- type RaftListMembersUnauthorized
- type RaftMemberAddBadRequest
- type RaftMemberAddOK
- type RaftMemberAddParams
- func (o *RaftMemberAddParams) SetContext(ctx context.Context)
- func (o *RaftMemberAddParams) SetDefaults()
- func (o *RaftMemberAddParams) SetHTTPClient(client *http.Client)
- func (o *RaftMemberAddParams) SetMember(member *rest_model.RaftMemberAdd)
- func (o *RaftMemberAddParams) SetTimeout(timeout time.Duration)
- func (o *RaftMemberAddParams) WithContext(ctx context.Context) *RaftMemberAddParams
- func (o *RaftMemberAddParams) WithDefaults() *RaftMemberAddParams
- func (o *RaftMemberAddParams) WithHTTPClient(client *http.Client) *RaftMemberAddParams
- func (o *RaftMemberAddParams) WithMember(member *rest_model.RaftMemberAdd) *RaftMemberAddParams
- func (o *RaftMemberAddParams) WithTimeout(timeout time.Duration) *RaftMemberAddParams
- func (o *RaftMemberAddParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RaftMemberAddReader
- type RaftMemberAddTooManyRequests
- type RaftMemberAddUnauthorized
- type RaftMemberRemoveBadRequest
- type RaftMemberRemoveNotFound
- type RaftMemberRemoveOK
- type RaftMemberRemoveParams
- func NewRaftMemberRemoveParams() *RaftMemberRemoveParams
- func NewRaftMemberRemoveParamsWithContext(ctx context.Context) *RaftMemberRemoveParams
- func NewRaftMemberRemoveParamsWithHTTPClient(client *http.Client) *RaftMemberRemoveParams
- func NewRaftMemberRemoveParamsWithTimeout(timeout time.Duration) *RaftMemberRemoveParams
- func (o *RaftMemberRemoveParams) SetContext(ctx context.Context)
- func (o *RaftMemberRemoveParams) SetDefaults()
- func (o *RaftMemberRemoveParams) SetHTTPClient(client *http.Client)
- func (o *RaftMemberRemoveParams) SetMember(member *rest_model.RaftMemberRemove)
- func (o *RaftMemberRemoveParams) SetTimeout(timeout time.Duration)
- func (o *RaftMemberRemoveParams) WithContext(ctx context.Context) *RaftMemberRemoveParams
- func (o *RaftMemberRemoveParams) WithDefaults() *RaftMemberRemoveParams
- func (o *RaftMemberRemoveParams) WithHTTPClient(client *http.Client) *RaftMemberRemoveParams
- func (o *RaftMemberRemoveParams) WithMember(member *rest_model.RaftMemberRemove) *RaftMemberRemoveParams
- func (o *RaftMemberRemoveParams) WithTimeout(timeout time.Duration) *RaftMemberRemoveParams
- func (o *RaftMemberRemoveParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RaftMemberRemoveReader
- type RaftMemberRemoveTooManyRequests
- type RaftMemberRemoveUnauthorized
- type RaftTranferLeadershipInternalServerError
- type RaftTranferLeadershipNotFound
- type RaftTranferLeadershipOK
- type RaftTranferLeadershipParams
- func NewRaftTranferLeadershipParams() *RaftTranferLeadershipParams
- func NewRaftTranferLeadershipParamsWithContext(ctx context.Context) *RaftTranferLeadershipParams
- func NewRaftTranferLeadershipParamsWithHTTPClient(client *http.Client) *RaftTranferLeadershipParams
- func NewRaftTranferLeadershipParamsWithTimeout(timeout time.Duration) *RaftTranferLeadershipParams
- func (o *RaftTranferLeadershipParams) SetContext(ctx context.Context)
- func (o *RaftTranferLeadershipParams) SetDefaults()
- func (o *RaftTranferLeadershipParams) SetHTTPClient(client *http.Client)
- func (o *RaftTranferLeadershipParams) SetMember(member *rest_model.RaftTransferLeadership)
- func (o *RaftTranferLeadershipParams) SetTimeout(timeout time.Duration)
- func (o *RaftTranferLeadershipParams) WithContext(ctx context.Context) *RaftTranferLeadershipParams
- func (o *RaftTranferLeadershipParams) WithDefaults() *RaftTranferLeadershipParams
- func (o *RaftTranferLeadershipParams) WithHTTPClient(client *http.Client) *RaftTranferLeadershipParams
- func (o *RaftTranferLeadershipParams) WithMember(member *rest_model.RaftTransferLeadership) *RaftTranferLeadershipParams
- func (o *RaftTranferLeadershipParams) WithTimeout(timeout time.Duration) *RaftTranferLeadershipParams
- func (o *RaftTranferLeadershipParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RaftTranferLeadershipReader
- type RaftTranferLeadershipTooManyRequests
- type RaftTranferLeadershipUnauthorized
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
func (o *RaftListMembersBadRequest) GetPayload() *rest_model.APIErrorEnvelope
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 ¶
func (o *RaftListMembersOK) GetPayload() *rest_model.RaftMemberListResponse
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 ¶
func (o *RaftListMembersParams) WithContext(ctx context.Context) *RaftListMembersParams
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 (o *RaftListMembersTooManyRequests) Error() string
func (*RaftListMembersTooManyRequests) GetPayload ¶ added in v0.31.0
func (o *RaftListMembersTooManyRequests) GetPayload() *rest_model.APIErrorEnvelope
type RaftListMembersUnauthorized ¶
type RaftListMembersUnauthorized struct {
}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 (o *RaftListMembersUnauthorized) Error() string
func (*RaftListMembersUnauthorized) GetPayload ¶
func (o *RaftListMembersUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
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
func (o *RaftMemberAddBadRequest) GetPayload() *rest_model.APIErrorEnvelope
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
func (o *RaftMemberAddParams) WithContext(ctx context.Context) *RaftMemberAddParams
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
func (o *RaftMemberAddParams) WithMember(member *rest_model.RaftMemberAdd) *RaftMemberAddParams
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 (o *RaftMemberAddTooManyRequests) Error() string
func (*RaftMemberAddTooManyRequests) GetPayload ¶ added in v0.31.3
func (o *RaftMemberAddTooManyRequests) GetPayload() *rest_model.APIErrorEnvelope
type RaftMemberAddUnauthorized ¶ added in v0.31.3
type RaftMemberAddUnauthorized struct {
}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
func (o *RaftMemberAddUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
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 (o *RaftMemberRemoveBadRequest) Error() string
func (*RaftMemberRemoveBadRequest) GetPayload ¶ added in v0.31.3
func (o *RaftMemberRemoveBadRequest) GetPayload() *rest_model.APIErrorEnvelope
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
func (o *RaftMemberRemoveNotFound) GetPayload() *rest_model.APIErrorEnvelope
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
func (o *RaftMemberRemoveParams) WithContext(ctx context.Context) *RaftMemberRemoveParams
WithContext adds the context to the raft member remove params
func (*RaftMemberRemoveParams) WithDefaults ¶ added in v0.31.3
func (o *RaftMemberRemoveParams) WithDefaults() *RaftMemberRemoveParams
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
func (o *RaftMemberRemoveParams) WithMember(member *rest_model.RaftMemberRemove) *RaftMemberRemoveParams
WithMember adds the member to the raft member remove params
func (*RaftMemberRemoveParams) WithTimeout ¶ added in v0.31.3
func (o *RaftMemberRemoveParams) WithTimeout(timeout time.Duration) *RaftMemberRemoveParams
WithTimeout adds the timeout to the raft member remove params
func (*RaftMemberRemoveParams) WriteToRequest ¶ added in v0.31.3
func (o *RaftMemberRemoveParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *RaftMemberRemoveTooManyRequests) Error() string
func (*RaftMemberRemoveTooManyRequests) GetPayload ¶ added in v0.31.3
func (o *RaftMemberRemoveTooManyRequests) GetPayload() *rest_model.APIErrorEnvelope
type RaftMemberRemoveUnauthorized ¶ added in v0.31.3
type RaftMemberRemoveUnauthorized struct {
}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 (o *RaftMemberRemoveUnauthorized) Error() string
func (*RaftMemberRemoveUnauthorized) GetPayload ¶ added in v0.31.3
func (o *RaftMemberRemoveUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
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 (o *RaftTranferLeadershipInternalServerError) Error() string
func (*RaftTranferLeadershipInternalServerError) GetPayload ¶ added in v0.31.3
func (o *RaftTranferLeadershipInternalServerError) GetPayload() *rest_model.APIErrorEnvelope
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 (o *RaftTranferLeadershipNotFound) Error() string
func (*RaftTranferLeadershipNotFound) GetPayload ¶ added in v0.31.3
func (o *RaftTranferLeadershipNotFound) GetPayload() *rest_model.APIErrorEnvelope
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
func (o *RaftTranferLeadershipParams) SetMember(member *rest_model.RaftTransferLeadership)
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
func (o *RaftTranferLeadershipParams) WithContext(ctx context.Context) *RaftTranferLeadershipParams
WithContext adds the context to the raft tranfer leadership params
func (*RaftTranferLeadershipParams) WithDefaults ¶ added in v0.31.3
func (o *RaftTranferLeadershipParams) WithDefaults() *RaftTranferLeadershipParams
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
func (o *RaftTranferLeadershipParams) WithHTTPClient(client *http.Client) *RaftTranferLeadershipParams
WithHTTPClient adds the HTTPClient to the raft tranfer leadership params
func (*RaftTranferLeadershipParams) WithMember ¶ added in v0.31.3
func (o *RaftTranferLeadershipParams) WithMember(member *rest_model.RaftTransferLeadership) *RaftTranferLeadershipParams
WithMember adds the member to the raft tranfer leadership params
func (*RaftTranferLeadershipParams) WithTimeout ¶ added in v0.31.3
func (o *RaftTranferLeadershipParams) WithTimeout(timeout time.Duration) *RaftTranferLeadershipParams
WithTimeout adds the timeout to the raft tranfer leadership params
func (*RaftTranferLeadershipParams) WriteToRequest ¶ added in v0.31.3
func (o *RaftTranferLeadershipParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *RaftTranferLeadershipTooManyRequests) Error() string
func (*RaftTranferLeadershipTooManyRequests) GetPayload ¶ added in v0.31.3
func (o *RaftTranferLeadershipTooManyRequests) GetPayload() *rest_model.APIErrorEnvelope
type RaftTranferLeadershipUnauthorized ¶ added in v0.31.3
type RaftTranferLeadershipUnauthorized struct {
}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 (o *RaftTranferLeadershipUnauthorized) Error() string
func (*RaftTranferLeadershipUnauthorized) GetPayload ¶ added in v0.31.3
func (o *RaftTranferLeadershipUnauthorized) GetPayload() *rest_model.APIErrorEnvelope