raft

package
v0.32.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const RaftListMembersBadRequestCode int = 400

RaftListMembersBadRequestCode is the HTTP code returned for type RaftListMembersBadRequest

View Source
const RaftListMembersOKCode int = 200

RaftListMembersOKCode is the HTTP code returned for type RaftListMembersOK

View Source
const RaftListMembersTooManyRequestsCode int = 429

RaftListMembersTooManyRequestsCode is the HTTP code returned for type RaftListMembersTooManyRequests

View Source
const RaftListMembersUnauthorizedCode int = 401

RaftListMembersUnauthorizedCode is the HTTP code returned for type RaftListMembersUnauthorized

View Source
const RaftMemberAddBadRequestCode int = 400

RaftMemberAddBadRequestCode is the HTTP code returned for type RaftMemberAddBadRequest

View Source
const RaftMemberAddOKCode int = 200

RaftMemberAddOKCode is the HTTP code returned for type RaftMemberAddOK

View Source
const RaftMemberAddTooManyRequestsCode int = 429

RaftMemberAddTooManyRequestsCode is the HTTP code returned for type RaftMemberAddTooManyRequests

View Source
const RaftMemberAddUnauthorizedCode int = 401

RaftMemberAddUnauthorizedCode is the HTTP code returned for type RaftMemberAddUnauthorized

View Source
const RaftMemberRemoveBadRequestCode int = 400

RaftMemberRemoveBadRequestCode is the HTTP code returned for type RaftMemberRemoveBadRequest

View Source
const RaftMemberRemoveNotFoundCode int = 404

RaftMemberRemoveNotFoundCode is the HTTP code returned for type RaftMemberRemoveNotFound

View Source
const RaftMemberRemoveOKCode int = 200

RaftMemberRemoveOKCode is the HTTP code returned for type RaftMemberRemoveOK

View Source
const RaftMemberRemoveTooManyRequestsCode int = 429

RaftMemberRemoveTooManyRequestsCode is the HTTP code returned for type RaftMemberRemoveTooManyRequests

View Source
const RaftMemberRemoveUnauthorizedCode int = 401

RaftMemberRemoveUnauthorizedCode is the HTTP code returned for type RaftMemberRemoveUnauthorized

View Source
const RaftTranferLeadershipInternalServerErrorCode int = 500

RaftTranferLeadershipInternalServerErrorCode is the HTTP code returned for type RaftTranferLeadershipInternalServerError

View Source
const RaftTranferLeadershipNotFoundCode int = 404

RaftTranferLeadershipNotFoundCode is the HTTP code returned for type RaftTranferLeadershipNotFound

View Source
const RaftTranferLeadershipOKCode int = 200

RaftTranferLeadershipOKCode is the HTTP code returned for type RaftTranferLeadershipOK

View Source
const RaftTranferLeadershipTooManyRequestsCode int = 429

RaftTranferLeadershipTooManyRequestsCode is the HTTP code returned for type RaftTranferLeadershipTooManyRequests

View Source
const RaftTranferLeadershipUnauthorizedCode int = 401

RaftTranferLeadershipUnauthorizedCode is the HTTP code returned for type RaftTranferLeadershipUnauthorized

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 RaftListMembersBadRequest added in v0.31.3

type RaftListMembersBadRequest struct {

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

RaftListMembersBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

swagger:response raftListMembersBadRequest

func NewRaftListMembersBadRequest added in v0.31.3

func NewRaftListMembersBadRequest() *RaftListMembersBadRequest

NewRaftListMembersBadRequest creates RaftListMembersBadRequest with default headers values

func (*RaftListMembersBadRequest) SetPayload added in v0.31.3

func (o *RaftListMembersBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the raft list members bad request response

func (*RaftListMembersBadRequest) WithPayload added in v0.31.3

WithPayload adds the payload to the raft list members bad request response

func (*RaftListMembersBadRequest) WriteResponse added in v0.31.3

func (o *RaftListMembersBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

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 RaftListMembersTooManyRequests added in v0.31.0

type RaftListMembersTooManyRequests struct {

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

RaftListMembersTooManyRequests The resource requested is rate limited and the rate limit has been exceeded

swagger:response raftListMembersTooManyRequests

func NewRaftListMembersTooManyRequests added in v0.31.0

func NewRaftListMembersTooManyRequests() *RaftListMembersTooManyRequests

NewRaftListMembersTooManyRequests creates RaftListMembersTooManyRequests with default headers values

func (*RaftListMembersTooManyRequests) SetPayload added in v0.31.0

SetPayload sets the payload to the raft list members too many requests response

func (*RaftListMembersTooManyRequests) WithPayload added in v0.31.0

WithPayload adds the payload to the raft list members too many requests response

func (*RaftListMembersTooManyRequests) WriteResponse added in v0.31.0

func (o *RaftListMembersTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

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

type RaftMemberAdd added in v0.31.3

type RaftMemberAdd struct {
	Context *middleware.Context
	Handler RaftMemberAddHandler
}
RaftMemberAdd swagger:route POST /raft/add-member Raft raftMemberAdd

Add a member to the raft cluster

Add a member to the raft cluster. Requires admin access.

func NewRaftMemberAdd added in v0.31.3

func NewRaftMemberAdd(ctx *middleware.Context, handler RaftMemberAddHandler) *RaftMemberAdd

NewRaftMemberAdd creates a new http.Handler for the raft member add operation

func (*RaftMemberAdd) ServeHTTP added in v0.31.3

func (o *RaftMemberAdd) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type RaftMemberAddBadRequest added in v0.31.3

type RaftMemberAddBadRequest struct {

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

RaftMemberAddBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

swagger:response raftMemberAddBadRequest

func NewRaftMemberAddBadRequest added in v0.31.3

func NewRaftMemberAddBadRequest() *RaftMemberAddBadRequest

NewRaftMemberAddBadRequest creates RaftMemberAddBadRequest with default headers values

func (*RaftMemberAddBadRequest) SetPayload added in v0.31.3

func (o *RaftMemberAddBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the raft member add bad request response

func (*RaftMemberAddBadRequest) WithPayload added in v0.31.3

WithPayload adds the payload to the raft member add bad request response

func (*RaftMemberAddBadRequest) WriteResponse added in v0.31.3

func (o *RaftMemberAddBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RaftMemberAddHandler added in v0.31.3

type RaftMemberAddHandler interface {
	Handle(RaftMemberAddParams) middleware.Responder
}

RaftMemberAddHandler interface for that can handle valid raft member add params

type RaftMemberAddHandlerFunc added in v0.31.3

type RaftMemberAddHandlerFunc func(RaftMemberAddParams) middleware.Responder

RaftMemberAddHandlerFunc turns a function with the right signature into a raft member add handler

func (RaftMemberAddHandlerFunc) Handle added in v0.31.3

Handle executing the request and returning a response

type RaftMemberAddOK added in v0.31.3

type RaftMemberAddOK struct {

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

RaftMemberAddOK Base empty response

swagger:response raftMemberAddOK

func NewRaftMemberAddOK added in v0.31.3

func NewRaftMemberAddOK() *RaftMemberAddOK

NewRaftMemberAddOK creates RaftMemberAddOK with default headers values

func (*RaftMemberAddOK) SetPayload added in v0.31.3

func (o *RaftMemberAddOK) SetPayload(payload *rest_model.Empty)

SetPayload sets the payload to the raft member add o k response

func (*RaftMemberAddOK) WithPayload added in v0.31.3

func (o *RaftMemberAddOK) WithPayload(payload *rest_model.Empty) *RaftMemberAddOK

WithPayload adds the payload to the raft member add o k response

func (*RaftMemberAddOK) WriteResponse added in v0.31.3

func (o *RaftMemberAddOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RaftMemberAddParams added in v0.31.3

type RaftMemberAddParams struct {

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

	/*member parameters
	  Required: true
	  In: body
	*/
	Member *rest_model.RaftMemberAdd
}

RaftMemberAddParams contains all the bound params for the raft member add operation typically these are obtained from a http.Request

swagger:parameters raftMemberAdd

func NewRaftMemberAddParams added in v0.31.3

func NewRaftMemberAddParams() RaftMemberAddParams

NewRaftMemberAddParams creates a new RaftMemberAddParams object

There are no default values defined in the spec.

func (*RaftMemberAddParams) BindRequest added in v0.31.3

func (o *RaftMemberAddParams) 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 NewRaftMemberAddParams() beforehand.

type RaftMemberAddTooManyRequests added in v0.31.3

type RaftMemberAddTooManyRequests struct {

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

RaftMemberAddTooManyRequests The resource requested is rate limited and the rate limit has been exceeded

swagger:response raftMemberAddTooManyRequests

func NewRaftMemberAddTooManyRequests added in v0.31.3

func NewRaftMemberAddTooManyRequests() *RaftMemberAddTooManyRequests

NewRaftMemberAddTooManyRequests creates RaftMemberAddTooManyRequests with default headers values

func (*RaftMemberAddTooManyRequests) SetPayload added in v0.31.3

SetPayload sets the payload to the raft member add too many requests response

func (*RaftMemberAddTooManyRequests) WithPayload added in v0.31.3

WithPayload adds the payload to the raft member add too many requests response

func (*RaftMemberAddTooManyRequests) WriteResponse added in v0.31.3

func (o *RaftMemberAddTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RaftMemberAddURL added in v0.31.3

type RaftMemberAddURL struct {
	// contains filtered or unexported fields
}

RaftMemberAddURL generates an URL for the raft member add operation

func (*RaftMemberAddURL) Build added in v0.31.3

func (o *RaftMemberAddURL) Build() (*url.URL, error)

Build a url path and query string

func (*RaftMemberAddURL) BuildFull added in v0.31.3

func (o *RaftMemberAddURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*RaftMemberAddURL) Must added in v0.31.3

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

Must is a helper function to panic when the url builder returns an error

func (*RaftMemberAddURL) SetBasePath added in v0.31.3

func (o *RaftMemberAddURL) 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 (*RaftMemberAddURL) String added in v0.31.3

func (o *RaftMemberAddURL) String() string

String returns the string representation of the path with query string

func (*RaftMemberAddURL) StringFull added in v0.31.3

func (o *RaftMemberAddURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*RaftMemberAddURL) WithBasePath added in v0.31.3

func (o *RaftMemberAddURL) WithBasePath(bp string) *RaftMemberAddURL

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 RaftMemberAddUnauthorized added in v0.31.3

type RaftMemberAddUnauthorized struct {

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

RaftMemberAddUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response raftMemberAddUnauthorized

func NewRaftMemberAddUnauthorized added in v0.31.3

func NewRaftMemberAddUnauthorized() *RaftMemberAddUnauthorized

NewRaftMemberAddUnauthorized creates RaftMemberAddUnauthorized with default headers values

func (*RaftMemberAddUnauthorized) SetPayload added in v0.31.3

func (o *RaftMemberAddUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the raft member add unauthorized response

func (*RaftMemberAddUnauthorized) WithPayload added in v0.31.3

WithPayload adds the payload to the raft member add unauthorized response

func (*RaftMemberAddUnauthorized) WriteResponse added in v0.31.3

func (o *RaftMemberAddUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RaftMemberRemove added in v0.31.3

type RaftMemberRemove struct {
	Context *middleware.Context
	Handler RaftMemberRemoveHandler
}
RaftMemberRemove swagger:route POST /raft/remove-member Raft raftMemberRemove

Remove a member from the raft cluster

Remove a member from the raft cluster. Requires admin access.

func NewRaftMemberRemove added in v0.31.3

func NewRaftMemberRemove(ctx *middleware.Context, handler RaftMemberRemoveHandler) *RaftMemberRemove

NewRaftMemberRemove creates a new http.Handler for the raft member remove operation

func (*RaftMemberRemove) ServeHTTP added in v0.31.3

func (o *RaftMemberRemove) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type RaftMemberRemoveBadRequest added in v0.31.3

type RaftMemberRemoveBadRequest struct {

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

RaftMemberRemoveBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

swagger:response raftMemberRemoveBadRequest

func NewRaftMemberRemoveBadRequest added in v0.31.3

func NewRaftMemberRemoveBadRequest() *RaftMemberRemoveBadRequest

NewRaftMemberRemoveBadRequest creates RaftMemberRemoveBadRequest with default headers values

func (*RaftMemberRemoveBadRequest) SetPayload added in v0.31.3

func (o *RaftMemberRemoveBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the raft member remove bad request response

func (*RaftMemberRemoveBadRequest) WithPayload added in v0.31.3

WithPayload adds the payload to the raft member remove bad request response

func (*RaftMemberRemoveBadRequest) WriteResponse added in v0.31.3

func (o *RaftMemberRemoveBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RaftMemberRemoveHandler added in v0.31.3

type RaftMemberRemoveHandler interface {
	Handle(RaftMemberRemoveParams) middleware.Responder
}

RaftMemberRemoveHandler interface for that can handle valid raft member remove params

type RaftMemberRemoveHandlerFunc added in v0.31.3

type RaftMemberRemoveHandlerFunc func(RaftMemberRemoveParams) middleware.Responder

RaftMemberRemoveHandlerFunc turns a function with the right signature into a raft member remove handler

func (RaftMemberRemoveHandlerFunc) Handle added in v0.31.3

Handle executing the request and returning a response

type RaftMemberRemoveNotFound added in v0.31.3

type RaftMemberRemoveNotFound struct {

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

RaftMemberRemoveNotFound The requested resource does not exist

swagger:response raftMemberRemoveNotFound

func NewRaftMemberRemoveNotFound added in v0.31.3

func NewRaftMemberRemoveNotFound() *RaftMemberRemoveNotFound

NewRaftMemberRemoveNotFound creates RaftMemberRemoveNotFound with default headers values

func (*RaftMemberRemoveNotFound) SetPayload added in v0.31.3

func (o *RaftMemberRemoveNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the raft member remove not found response

func (*RaftMemberRemoveNotFound) WithPayload added in v0.31.3

WithPayload adds the payload to the raft member remove not found response

func (*RaftMemberRemoveNotFound) WriteResponse added in v0.31.3

func (o *RaftMemberRemoveNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RaftMemberRemoveOK added in v0.31.3

type RaftMemberRemoveOK struct {

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

RaftMemberRemoveOK Base empty response

swagger:response raftMemberRemoveOK

func NewRaftMemberRemoveOK added in v0.31.3

func NewRaftMemberRemoveOK() *RaftMemberRemoveOK

NewRaftMemberRemoveOK creates RaftMemberRemoveOK with default headers values

func (*RaftMemberRemoveOK) SetPayload added in v0.31.3

func (o *RaftMemberRemoveOK) SetPayload(payload *rest_model.Empty)

SetPayload sets the payload to the raft member remove o k response

func (*RaftMemberRemoveOK) WithPayload added in v0.31.3

func (o *RaftMemberRemoveOK) WithPayload(payload *rest_model.Empty) *RaftMemberRemoveOK

WithPayload adds the payload to the raft member remove o k response

func (*RaftMemberRemoveOK) WriteResponse added in v0.31.3

func (o *RaftMemberRemoveOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RaftMemberRemoveParams added in v0.31.3

type RaftMemberRemoveParams struct {

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

	/*member parameters
	  Required: true
	  In: body
	*/
	Member *rest_model.RaftMemberRemove
}

RaftMemberRemoveParams contains all the bound params for the raft member remove operation typically these are obtained from a http.Request

swagger:parameters raftMemberRemove

func NewRaftMemberRemoveParams added in v0.31.3

func NewRaftMemberRemoveParams() RaftMemberRemoveParams

NewRaftMemberRemoveParams creates a new RaftMemberRemoveParams object

There are no default values defined in the spec.

func (*RaftMemberRemoveParams) BindRequest added in v0.31.3

func (o *RaftMemberRemoveParams) 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 NewRaftMemberRemoveParams() beforehand.

type RaftMemberRemoveTooManyRequests added in v0.31.3

type RaftMemberRemoveTooManyRequests struct {

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

RaftMemberRemoveTooManyRequests The resource requested is rate limited and the rate limit has been exceeded

swagger:response raftMemberRemoveTooManyRequests

func NewRaftMemberRemoveTooManyRequests added in v0.31.3

func NewRaftMemberRemoveTooManyRequests() *RaftMemberRemoveTooManyRequests

NewRaftMemberRemoveTooManyRequests creates RaftMemberRemoveTooManyRequests with default headers values

func (*RaftMemberRemoveTooManyRequests) SetPayload added in v0.31.3

SetPayload sets the payload to the raft member remove too many requests response

func (*RaftMemberRemoveTooManyRequests) WithPayload added in v0.31.3

WithPayload adds the payload to the raft member remove too many requests response

func (*RaftMemberRemoveTooManyRequests) WriteResponse added in v0.31.3

func (o *RaftMemberRemoveTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RaftMemberRemoveURL added in v0.31.3

type RaftMemberRemoveURL struct {
	// contains filtered or unexported fields
}

RaftMemberRemoveURL generates an URL for the raft member remove operation

func (*RaftMemberRemoveURL) Build added in v0.31.3

func (o *RaftMemberRemoveURL) Build() (*url.URL, error)

Build a url path and query string

func (*RaftMemberRemoveURL) BuildFull added in v0.31.3

func (o *RaftMemberRemoveURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*RaftMemberRemoveURL) Must added in v0.31.3

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

Must is a helper function to panic when the url builder returns an error

func (*RaftMemberRemoveURL) SetBasePath added in v0.31.3

func (o *RaftMemberRemoveURL) 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 (*RaftMemberRemoveURL) String added in v0.31.3

func (o *RaftMemberRemoveURL) String() string

String returns the string representation of the path with query string

func (*RaftMemberRemoveURL) StringFull added in v0.31.3

func (o *RaftMemberRemoveURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*RaftMemberRemoveURL) WithBasePath added in v0.31.3

func (o *RaftMemberRemoveURL) WithBasePath(bp string) *RaftMemberRemoveURL

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 RaftMemberRemoveUnauthorized added in v0.31.3

type RaftMemberRemoveUnauthorized struct {

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

RaftMemberRemoveUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response raftMemberRemoveUnauthorized

func NewRaftMemberRemoveUnauthorized added in v0.31.3

func NewRaftMemberRemoveUnauthorized() *RaftMemberRemoveUnauthorized

NewRaftMemberRemoveUnauthorized creates RaftMemberRemoveUnauthorized with default headers values

func (*RaftMemberRemoveUnauthorized) SetPayload added in v0.31.3

SetPayload sets the payload to the raft member remove unauthorized response

func (*RaftMemberRemoveUnauthorized) WithPayload added in v0.31.3

WithPayload adds the payload to the raft member remove unauthorized response

func (*RaftMemberRemoveUnauthorized) WriteResponse added in v0.31.3

func (o *RaftMemberRemoveUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RaftTranferLeadership added in v0.31.3

type RaftTranferLeadership struct {
	Context *middleware.Context
	Handler RaftTranferLeadershipHandler
}
RaftTranferLeadership swagger:route POST /raft/transfer-leadership Raft raftTranferLeadership

Attempts to transfer leadership to a different member of the cluster

Attempts to transfer leadership to a different member of the cluster. Requires admin access.

func NewRaftTranferLeadership added in v0.31.3

func NewRaftTranferLeadership(ctx *middleware.Context, handler RaftTranferLeadershipHandler) *RaftTranferLeadership

NewRaftTranferLeadership creates a new http.Handler for the raft tranfer leadership operation

func (*RaftTranferLeadership) ServeHTTP added in v0.31.3

func (o *RaftTranferLeadership) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type RaftTranferLeadershipHandler added in v0.31.3

type RaftTranferLeadershipHandler interface {
	Handle(RaftTranferLeadershipParams) middleware.Responder
}

RaftTranferLeadershipHandler interface for that can handle valid raft tranfer leadership params

type RaftTranferLeadershipHandlerFunc added in v0.31.3

type RaftTranferLeadershipHandlerFunc func(RaftTranferLeadershipParams) middleware.Responder

RaftTranferLeadershipHandlerFunc turns a function with the right signature into a raft tranfer leadership handler

func (RaftTranferLeadershipHandlerFunc) Handle added in v0.31.3

Handle executing the request and returning a response

type RaftTranferLeadershipInternalServerError added in v0.31.3

type RaftTranferLeadershipInternalServerError struct {

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

RaftTranferLeadershipInternalServerError The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

swagger:response raftTranferLeadershipInternalServerError

func NewRaftTranferLeadershipInternalServerError added in v0.31.3

func NewRaftTranferLeadershipInternalServerError() *RaftTranferLeadershipInternalServerError

NewRaftTranferLeadershipInternalServerError creates RaftTranferLeadershipInternalServerError with default headers values

func (*RaftTranferLeadershipInternalServerError) SetPayload added in v0.31.3

SetPayload sets the payload to the raft tranfer leadership internal server error response

func (*RaftTranferLeadershipInternalServerError) WithPayload added in v0.31.3

WithPayload adds the payload to the raft tranfer leadership internal server error response

func (*RaftTranferLeadershipInternalServerError) WriteResponse added in v0.31.3

WriteResponse to the client

type RaftTranferLeadershipNotFound added in v0.31.3

type RaftTranferLeadershipNotFound struct {

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

RaftTranferLeadershipNotFound The requested resource does not exist

swagger:response raftTranferLeadershipNotFound

func NewRaftTranferLeadershipNotFound added in v0.31.3

func NewRaftTranferLeadershipNotFound() *RaftTranferLeadershipNotFound

NewRaftTranferLeadershipNotFound creates RaftTranferLeadershipNotFound with default headers values

func (*RaftTranferLeadershipNotFound) SetPayload added in v0.31.3

SetPayload sets the payload to the raft tranfer leadership not found response

func (*RaftTranferLeadershipNotFound) WithPayload added in v0.31.3

WithPayload adds the payload to the raft tranfer leadership not found response

func (*RaftTranferLeadershipNotFound) WriteResponse added in v0.31.3

func (o *RaftTranferLeadershipNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RaftTranferLeadershipOK added in v0.31.3

type RaftTranferLeadershipOK struct {

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

RaftTranferLeadershipOK Base empty response

swagger:response raftTranferLeadershipOK

func NewRaftTranferLeadershipOK added in v0.31.3

func NewRaftTranferLeadershipOK() *RaftTranferLeadershipOK

NewRaftTranferLeadershipOK creates RaftTranferLeadershipOK with default headers values

func (*RaftTranferLeadershipOK) SetPayload added in v0.31.3

func (o *RaftTranferLeadershipOK) SetPayload(payload *rest_model.Empty)

SetPayload sets the payload to the raft tranfer leadership o k response

func (*RaftTranferLeadershipOK) WithPayload added in v0.31.3

WithPayload adds the payload to the raft tranfer leadership o k response

func (*RaftTranferLeadershipOK) WriteResponse added in v0.31.3

func (o *RaftTranferLeadershipOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RaftTranferLeadershipParams added in v0.31.3

type RaftTranferLeadershipParams struct {

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

	/*transfer operation parameters
	  Required: true
	  In: body
	*/
	Member *rest_model.RaftTransferLeadership
}

RaftTranferLeadershipParams contains all the bound params for the raft tranfer leadership operation typically these are obtained from a http.Request

swagger:parameters raftTranferLeadership

func NewRaftTranferLeadershipParams added in v0.31.3

func NewRaftTranferLeadershipParams() RaftTranferLeadershipParams

NewRaftTranferLeadershipParams creates a new RaftTranferLeadershipParams object

There are no default values defined in the spec.

func (*RaftTranferLeadershipParams) BindRequest added in v0.31.3

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 NewRaftTranferLeadershipParams() beforehand.

type RaftTranferLeadershipTooManyRequests added in v0.31.3

type RaftTranferLeadershipTooManyRequests struct {

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

RaftTranferLeadershipTooManyRequests The resource requested is rate limited and the rate limit has been exceeded

swagger:response raftTranferLeadershipTooManyRequests

func NewRaftTranferLeadershipTooManyRequests added in v0.31.3

func NewRaftTranferLeadershipTooManyRequests() *RaftTranferLeadershipTooManyRequests

NewRaftTranferLeadershipTooManyRequests creates RaftTranferLeadershipTooManyRequests with default headers values

func (*RaftTranferLeadershipTooManyRequests) SetPayload added in v0.31.3

SetPayload sets the payload to the raft tranfer leadership too many requests response

func (*RaftTranferLeadershipTooManyRequests) WithPayload added in v0.31.3

WithPayload adds the payload to the raft tranfer leadership too many requests response

func (*RaftTranferLeadershipTooManyRequests) WriteResponse added in v0.31.3

WriteResponse to the client

type RaftTranferLeadershipURL added in v0.31.3

type RaftTranferLeadershipURL struct {
	// contains filtered or unexported fields
}

RaftTranferLeadershipURL generates an URL for the raft tranfer leadership operation

func (*RaftTranferLeadershipURL) Build added in v0.31.3

func (o *RaftTranferLeadershipURL) Build() (*url.URL, error)

Build a url path and query string

func (*RaftTranferLeadershipURL) BuildFull added in v0.31.3

func (o *RaftTranferLeadershipURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*RaftTranferLeadershipURL) Must added in v0.31.3

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

Must is a helper function to panic when the url builder returns an error

func (*RaftTranferLeadershipURL) SetBasePath added in v0.31.3

func (o *RaftTranferLeadershipURL) 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 (*RaftTranferLeadershipURL) String added in v0.31.3

func (o *RaftTranferLeadershipURL) String() string

String returns the string representation of the path with query string

func (*RaftTranferLeadershipURL) StringFull added in v0.31.3

func (o *RaftTranferLeadershipURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*RaftTranferLeadershipURL) WithBasePath added in v0.31.3

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 RaftTranferLeadershipUnauthorized added in v0.31.3

type RaftTranferLeadershipUnauthorized struct {

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

RaftTranferLeadershipUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response raftTranferLeadershipUnauthorized

func NewRaftTranferLeadershipUnauthorized added in v0.31.3

func NewRaftTranferLeadershipUnauthorized() *RaftTranferLeadershipUnauthorized

NewRaftTranferLeadershipUnauthorized creates RaftTranferLeadershipUnauthorized with default headers values

func (*RaftTranferLeadershipUnauthorized) SetPayload added in v0.31.3

SetPayload sets the payload to the raft tranfer leadership unauthorized response

func (*RaftTranferLeadershipUnauthorized) WithPayload added in v0.31.3

WithPayload adds the payload to the raft tranfer leadership unauthorized response

func (*RaftTranferLeadershipUnauthorized) WriteResponse added in v0.31.3

func (o *RaftTranferLeadershipUnauthorized) 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