Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- 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 RaftListMembersUnauthorized
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) 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 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