Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type RaftListMembersOK
- func (o *RaftListMembersOK) Code() int
- func (o *RaftListMembersOK) Error() string
- func (o *RaftListMembersOK) GetPayload() *rest_model.RaftMemberListResponse
- func (o *RaftListMembersOK) IsClientError() bool
- func (o *RaftListMembersOK) IsCode(code int) bool
- func (o *RaftListMembersOK) IsRedirect() bool
- func (o *RaftListMembersOK) IsServerError() bool
- func (o *RaftListMembersOK) IsSuccess() bool
- func (o *RaftListMembersOK) String() string
- 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
- func (o *RaftListMembersUnauthorized) Code() int
- func (o *RaftListMembersUnauthorized) Error() string
- func (o *RaftListMembersUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
- func (o *RaftListMembersUnauthorized) IsClientError() bool
- func (o *RaftListMembersUnauthorized) IsCode(code int) bool
- func (o *RaftListMembersUnauthorized) IsRedirect() bool
- func (o *RaftListMembersUnauthorized) IsServerError() bool
- func (o *RaftListMembersUnauthorized) IsSuccess() bool
- func (o *RaftListMembersUnauthorized) String() string
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 ¶ added in v0.22.74
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 (o *RaftListMembersOK) GetPayload() *rest_model.RaftMemberListResponse
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 ¶
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) Code ¶ added in v0.22.74
func (o *RaftListMembersUnauthorized) Code() int
Code gets the status code for the raft list members unauthorized response
func (*RaftListMembersUnauthorized) Error ¶
func (o *RaftListMembersUnauthorized) Error() string
func (*RaftListMembersUnauthorized) GetPayload ¶
func (o *RaftListMembersUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
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