Documentation ¶
Index ¶
Constants ¶
const GetClusterOKCode int = 200
GetClusterOKCode is the HTTP code returned for type GetClusterOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetCluster ¶
type GetCluster struct { Context *middleware.Context Handler GetClusterHandler }
GetCluster swagger:route GET /cluster cluster getCluster
Retrieve the list of remote clusters and their status
func NewGetCluster ¶
func NewGetCluster(ctx *middleware.Context, handler GetClusterHandler) *GetCluster
NewGetCluster creates a new http.Handler for the get cluster operation
func (*GetCluster) ServeHTTP ¶
func (o *GetCluster) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetClusterHandler ¶
type GetClusterHandler interface {
Handle(GetClusterParams) middleware.Responder
}
GetClusterHandler interface for that can handle valid get cluster params
type GetClusterHandlerFunc ¶
type GetClusterHandlerFunc func(GetClusterParams) middleware.Responder
GetClusterHandlerFunc turns a function with the right signature into a get cluster handler
func (GetClusterHandlerFunc) Handle ¶
func (fn GetClusterHandlerFunc) Handle(params GetClusterParams) middleware.Responder
Handle executing the request and returning a response
type GetClusterOK ¶
type GetClusterOK struct { /* In: Body */ Payload []*common.RemoteCluster `json:"body,omitempty"` }
GetClusterOK Success
swagger:response getClusterOK
func NewGetClusterOK ¶
func NewGetClusterOK() *GetClusterOK
NewGetClusterOK creates GetClusterOK with default headers values
func (*GetClusterOK) SetPayload ¶
func (o *GetClusterOK) SetPayload(payload []*common.RemoteCluster)
SetPayload sets the payload to the get cluster o k response
func (*GetClusterOK) WithPayload ¶
func (o *GetClusterOK) WithPayload(payload []*common.RemoteCluster) *GetClusterOK
WithPayload adds the payload to the get cluster o k response
func (*GetClusterOK) WriteResponse ¶
func (o *GetClusterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClusterParams ¶
GetClusterParams contains all the bound params for the get cluster operation typically these are obtained from a http.Request
swagger:parameters GetCluster
func NewGetClusterParams ¶
func NewGetClusterParams() GetClusterParams
NewGetClusterParams creates a new GetClusterParams object
There are no default values defined in the spec.
func (*GetClusterParams) BindRequest ¶
func (o *GetClusterParams) 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 NewGetClusterParams() beforehand.