raft

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const RaftListMembersOKCode int = 200

RaftListMembersOKCode is the HTTP code returned for type RaftListMembersOK

View Source
const RaftListMembersUnauthorizedCode int = 401

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

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

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

type RaftListMembersParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

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

func (o *RaftListMembersURL) Must(u *url.URL, err error) *url.URL

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 {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

SetPayload sets the payload to the raft list members unauthorized response

func (*RaftListMembersUnauthorized) WithPayload

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

Jump to

Keyboard shortcuts

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