Documentation ¶
Index ¶
- Constants
- type RaftListMembers
- type RaftListMembersHandler
- type RaftListMembersHandlerFunc
- type RaftListMembersOK
- type RaftListMembersParams
- type RaftListMembersURL
- func (o *RaftListMembersURL) Build() (*url.URL, error)
- func (o *RaftListMembersURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RaftListMembersURL) Must(u *url.URL, err error) *url.URL
- func (o *RaftListMembersURL) SetBasePath(bp string)
- func (o *RaftListMembersURL) String() string
- func (o *RaftListMembersURL) StringFull(scheme, host string) string
- func (o *RaftListMembersURL) WithBasePath(bp string) *RaftListMembersURL
- type RaftListMembersUnauthorized
- func (o *RaftListMembersUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *RaftListMembersUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *RaftListMembersUnauthorized
- func (o *RaftListMembersUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const RaftListMembersOKCode int = 200
RaftListMembersOKCode is the HTTP code returned for type RaftListMembersOK
RaftListMembersUnauthorizedCode is the HTTP code returned for type RaftListMembersUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RaftListMembers ¶
type RaftListMembers struct { Context *middleware.Context Handler RaftListMembersHandler }
RaftListMembers swagger:route GET /raft/list-members Raft raftListMembers
Returns all members of a cluster and their current status ¶
Returns all members of a cluster and their current status
func NewRaftListMembers ¶
func NewRaftListMembers(ctx *middleware.Context, handler RaftListMembersHandler) *RaftListMembers
NewRaftListMembers creates a new http.Handler for the raft list members operation
func (*RaftListMembers) ServeHTTP ¶
func (o *RaftListMembers) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RaftListMembersHandler ¶
type RaftListMembersHandler interface {
Handle(RaftListMembersParams) middleware.Responder
}
RaftListMembersHandler interface for that can handle valid raft list members params
type RaftListMembersHandlerFunc ¶
type RaftListMembersHandlerFunc func(RaftListMembersParams) middleware.Responder
RaftListMembersHandlerFunc turns a function with the right signature into a raft list members handler
func (RaftListMembersHandlerFunc) Handle ¶
func (fn RaftListMembersHandlerFunc) Handle(params RaftListMembersParams) middleware.Responder
Handle executing the request and returning a response
type RaftListMembersOK ¶
type RaftListMembersOK struct { /* In: Body */ Payload *rest_model.RaftMemberListResponse `json:"body,omitempty"` }
RaftListMembersOK A response to a raft list-members request
swagger:response raftListMembersOK
func NewRaftListMembersOK ¶
func NewRaftListMembersOK() *RaftListMembersOK
NewRaftListMembersOK creates RaftListMembersOK with default headers values
func (*RaftListMembersOK) SetPayload ¶
func (o *RaftListMembersOK) SetPayload(payload *rest_model.RaftMemberListResponse)
SetPayload sets the payload to the raft list members o k response
func (*RaftListMembersOK) WithPayload ¶
func (o *RaftListMembersOK) WithPayload(payload *rest_model.RaftMemberListResponse) *RaftListMembersOK
WithPayload adds the payload to the raft list members o k response
func (*RaftListMembersOK) WriteResponse ¶
func (o *RaftListMembersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RaftListMembersParams ¶
RaftListMembersParams contains all the bound params for the raft list members operation typically these are obtained from a http.Request
swagger:parameters raftListMembers
func NewRaftListMembersParams ¶
func NewRaftListMembersParams() RaftListMembersParams
NewRaftListMembersParams creates a new RaftListMembersParams object
There are no default values defined in the spec.
func (*RaftListMembersParams) BindRequest ¶
func (o *RaftListMembersParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewRaftListMembersParams() beforehand.
type RaftListMembersURL ¶
type RaftListMembersURL struct {
// contains filtered or unexported fields
}
RaftListMembersURL generates an URL for the raft list members operation
func (*RaftListMembersURL) Build ¶
func (o *RaftListMembersURL) Build() (*url.URL, error)
Build a url path and query string
func (*RaftListMembersURL) BuildFull ¶
func (o *RaftListMembersURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RaftListMembersURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RaftListMembersURL) SetBasePath ¶
func (o *RaftListMembersURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*RaftListMembersURL) String ¶
func (o *RaftListMembersURL) String() string
String returns the string representation of the path with query string
func (*RaftListMembersURL) StringFull ¶
func (o *RaftListMembersURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RaftListMembersURL) WithBasePath ¶
func (o *RaftListMembersURL) WithBasePath(bp string) *RaftListMembersURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type RaftListMembersUnauthorized ¶
type RaftListMembersUnauthorized struct { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
RaftListMembersUnauthorized The currently supplied session does not have the correct access rights to request this resource
swagger:response raftListMembersUnauthorized
func NewRaftListMembersUnauthorized ¶
func NewRaftListMembersUnauthorized() *RaftListMembersUnauthorized
NewRaftListMembersUnauthorized creates RaftListMembersUnauthorized with default headers values
func (*RaftListMembersUnauthorized) SetPayload ¶
func (o *RaftListMembersUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the raft list members unauthorized response
func (*RaftListMembersUnauthorized) WithPayload ¶
func (o *RaftListMembersUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *RaftListMembersUnauthorized
WithPayload adds the payload to the raft list members unauthorized response
func (*RaftListMembersUnauthorized) WriteResponse ¶
func (o *RaftListMembersUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client