raft

package
v0.24.19 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

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

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

func (o *RaftListMembersOK) Code() int

Code gets the status code for the raft list members o k response

func (*RaftListMembersOK) Error

func (o *RaftListMembersOK) Error() string

func (*RaftListMembersOK) GetPayload

func (*RaftListMembersOK) IsClientError

func (o *RaftListMembersOK) IsClientError() bool

IsClientError returns true when this raft list members o k response has a 4xx status code

func (*RaftListMembersOK) IsCode

func (o *RaftListMembersOK) IsCode(code int) bool

IsCode returns true when this raft list members o k response a status code equal to that given

func (*RaftListMembersOK) IsRedirect

func (o *RaftListMembersOK) IsRedirect() bool

IsRedirect returns true when this raft list members o k response has a 3xx status code

func (*RaftListMembersOK) IsServerError

func (o *RaftListMembersOK) IsServerError() bool

IsServerError returns true when this raft list members o k response has a 5xx status code

func (*RaftListMembersOK) IsSuccess

func (o *RaftListMembersOK) IsSuccess() bool

IsSuccess returns true when this raft list members o k response has a 2xx status code

func (*RaftListMembersOK) String

func (o *RaftListMembersOK) String() string

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

func (o *RaftListMembersUnauthorized) Code() int

Code gets the status code for the raft list members unauthorized response

func (*RaftListMembersUnauthorized) Error

func (*RaftListMembersUnauthorized) GetPayload

func (*RaftListMembersUnauthorized) IsClientError

func (o *RaftListMembersUnauthorized) IsClientError() bool

IsClientError returns true when this raft list members unauthorized response has a 4xx status code

func (*RaftListMembersUnauthorized) IsCode

func (o *RaftListMembersUnauthorized) IsCode(code int) bool

IsCode returns true when this raft list members unauthorized response a status code equal to that given

func (*RaftListMembersUnauthorized) IsRedirect

func (o *RaftListMembersUnauthorized) IsRedirect() bool

IsRedirect returns true when this raft list members unauthorized response has a 3xx status code

func (*RaftListMembersUnauthorized) IsServerError

func (o *RaftListMembersUnauthorized) IsServerError() bool

IsServerError returns true when this raft list members unauthorized response has a 5xx status code

func (*RaftListMembersUnauthorized) IsSuccess

func (o *RaftListMembersUnauthorized) IsSuccess() bool

IsSuccess returns true when this raft list members unauthorized response has a 2xx status code

func (*RaftListMembersUnauthorized) String

func (o *RaftListMembersUnauthorized) String() string

Jump to

Keyboard shortcuts

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