Documentation ¶
Index ¶
- Constants
- type AddCluster
- type AddClusterBadRequest
- type AddClusterCreated
- type AddClusterHandler
- type AddClusterHandlerFunc
- type AddClusterInternalServerError
- type AddClusterParams
- type AddClusterURL
- func (o *AddClusterURL) Build() (*url.URL, error)
- func (o *AddClusterURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddClusterURL) Must(u *url.URL, err error) *url.URL
- func (o *AddClusterURL) SetBasePath(bp string)
- func (o *AddClusterURL) String() string
- func (o *AddClusterURL) StringFull(scheme, host string) string
- func (o *AddClusterURL) WithBasePath(bp string) *AddClusterURL
- type AddClusterUnauthorized
- type DeleteCluster
- type DeleteClusterBadRequest
- type DeleteClusterHandler
- type DeleteClusterHandlerFunc
- type DeleteClusterInternalServerError
- func (o *DeleteClusterInternalServerError) SetPayload(payload *models.APIResponse)
- func (o *DeleteClusterInternalServerError) WithPayload(payload *models.APIResponse) *DeleteClusterInternalServerError
- func (o *DeleteClusterInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteClusterNotFound
- type DeleteClusterOK
- type DeleteClusterParams
- type DeleteClusterURL
- func (o *DeleteClusterURL) Build() (*url.URL, error)
- func (o *DeleteClusterURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteClusterURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteClusterURL) SetBasePath(bp string)
- func (o *DeleteClusterURL) String() string
- func (o *DeleteClusterURL) StringFull(scheme, host string) string
- func (o *DeleteClusterURL) WithBasePath(bp string) *DeleteClusterURL
- type DeleteClusterUnauthorized
- type GetClusterByID
- type GetClusterByIDBadRequest
- type GetClusterByIDHandler
- type GetClusterByIDHandlerFunc
- type GetClusterByIDInternalServerError
- func (o *GetClusterByIDInternalServerError) SetPayload(payload *models.APIResponse)
- func (o *GetClusterByIDInternalServerError) WithPayload(payload *models.APIResponse) *GetClusterByIDInternalServerError
- func (o *GetClusterByIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetClusterByIDNotFound
- type GetClusterByIDOK
- func (o *GetClusterByIDOK) SetPayload(payload *models.IoK8sClusterRegistryPkgApisClusterregistryV1alpha1Cluster)
- func (o *GetClusterByIDOK) WithPayload(payload *models.IoK8sClusterRegistryPkgApisClusterregistryV1alpha1Cluster) *GetClusterByIDOK
- func (o *GetClusterByIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetClusterByIDParams
- type GetClusterByIDURL
- func (o *GetClusterByIDURL) Build() (*url.URL, error)
- func (o *GetClusterByIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetClusterByIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetClusterByIDURL) SetBasePath(bp string)
- func (o *GetClusterByIDURL) String() string
- func (o *GetClusterByIDURL) StringFull(scheme, host string) string
- func (o *GetClusterByIDURL) WithBasePath(bp string) *GetClusterByIDURL
- type GetClusterByIDUnauthorized
- type GetClusters
- type GetClustersBadRequest
- type GetClustersHandler
- type GetClustersHandlerFunc
- type GetClustersInternalServerError
- func (o *GetClustersInternalServerError) SetPayload(payload *models.APIResponse)
- func (o *GetClustersInternalServerError) WithPayload(payload *models.APIResponse) *GetClustersInternalServerError
- func (o *GetClustersInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetClustersOK
- type GetClustersParams
- type GetClustersURL
- func (o *GetClustersURL) Build() (*url.URL, error)
- func (o *GetClustersURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetClustersURL) Must(u *url.URL, err error) *url.URL
- func (o *GetClustersURL) SetBasePath(bp string)
- func (o *GetClustersURL) String() string
- func (o *GetClustersURL) StringFull(scheme, host string) string
- func (o *GetClustersURL) WithBasePath(bp string) *GetClustersURL
- type GetClustersUnauthorized
- type UpdateCluster
- type UpdateClusterBadRequest
- type UpdateClusterHandler
- type UpdateClusterHandlerFunc
- type UpdateClusterInternalServerError
- func (o *UpdateClusterInternalServerError) SetPayload(payload *models.APIResponse)
- func (o *UpdateClusterInternalServerError) WithPayload(payload *models.APIResponse) *UpdateClusterInternalServerError
- func (o *UpdateClusterInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateClusterNotFound
- type UpdateClusterOK
- type UpdateClusterParams
- type UpdateClusterURL
- func (o *UpdateClusterURL) Build() (*url.URL, error)
- func (o *UpdateClusterURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateClusterURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateClusterURL) SetBasePath(bp string)
- func (o *UpdateClusterURL) String() string
- func (o *UpdateClusterURL) StringFull(scheme, host string) string
- func (o *UpdateClusterURL) WithBasePath(bp string) *UpdateClusterURL
- type UpdateClusterUnauthorized
Constants ¶
const AddClusterBadRequestCode int = 400
AddClusterBadRequestCode is the HTTP code returned for type AddClusterBadRequest
const AddClusterCreatedCode int = 201
AddClusterCreatedCode is the HTTP code returned for type AddClusterCreated
const AddClusterInternalServerErrorCode int = 500
AddClusterInternalServerErrorCode is the HTTP code returned for type AddClusterInternalServerError
AddClusterUnauthorizedCode is the HTTP code returned for type AddClusterUnauthorized
const DeleteClusterBadRequestCode int = 400
DeleteClusterBadRequestCode is the HTTP code returned for type DeleteClusterBadRequest
const DeleteClusterInternalServerErrorCode int = 500
DeleteClusterInternalServerErrorCode is the HTTP code returned for type DeleteClusterInternalServerError
const DeleteClusterNotFoundCode int = 404
DeleteClusterNotFoundCode is the HTTP code returned for type DeleteClusterNotFound
const DeleteClusterOKCode int = 200
DeleteClusterOKCode is the HTTP code returned for type DeleteClusterOK
DeleteClusterUnauthorizedCode is the HTTP code returned for type DeleteClusterUnauthorized
const GetClusterByIDBadRequestCode int = 400
GetClusterByIDBadRequestCode is the HTTP code returned for type GetClusterByIDBadRequest
const GetClusterByIDInternalServerErrorCode int = 500
GetClusterByIDInternalServerErrorCode is the HTTP code returned for type GetClusterByIDInternalServerError
const GetClusterByIDNotFoundCode int = 404
GetClusterByIDNotFoundCode is the HTTP code returned for type GetClusterByIDNotFound
const GetClusterByIDOKCode int = 200
GetClusterByIDOKCode is the HTTP code returned for type GetClusterByIDOK
GetClusterByIDUnauthorizedCode is the HTTP code returned for type GetClusterByIDUnauthorized
const GetClustersBadRequestCode int = 400
GetClustersBadRequestCode is the HTTP code returned for type GetClustersBadRequest
const GetClustersInternalServerErrorCode int = 500
GetClustersInternalServerErrorCode is the HTTP code returned for type GetClustersInternalServerError
const GetClustersOKCode int = 200
GetClustersOKCode is the HTTP code returned for type GetClustersOK
GetClustersUnauthorizedCode is the HTTP code returned for type GetClustersUnauthorized
const UpdateClusterBadRequestCode int = 400
UpdateClusterBadRequestCode is the HTTP code returned for type UpdateClusterBadRequest
const UpdateClusterInternalServerErrorCode int = 500
UpdateClusterInternalServerErrorCode is the HTTP code returned for type UpdateClusterInternalServerError
const UpdateClusterNotFoundCode int = 404
UpdateClusterNotFoundCode is the HTTP code returned for type UpdateClusterNotFound
const UpdateClusterOKCode int = 200
UpdateClusterOKCode is the HTTP code returned for type UpdateClusterOK
UpdateClusterUnauthorizedCode is the HTTP code returned for type UpdateClusterUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddCluster ¶
type AddCluster struct { Context *middleware.Context Handler AddClusterHandler }
AddCluster swagger:route POST /clusters clusters addCluster
Add a new cluster to optikon
func NewAddCluster ¶
func NewAddCluster(ctx *middleware.Context, handler AddClusterHandler) *AddCluster
NewAddCluster creates a new http.Handler for the add cluster operation
func (*AddCluster) ServeHTTP ¶
func (o *AddCluster) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AddClusterBadRequest ¶
type AddClusterBadRequest struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
AddClusterBadRequest Bad Request
swagger:response addClusterBadRequest
func NewAddClusterBadRequest ¶
func NewAddClusterBadRequest() *AddClusterBadRequest
NewAddClusterBadRequest creates AddClusterBadRequest with default headers values
func (*AddClusterBadRequest) SetPayload ¶
func (o *AddClusterBadRequest) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the add cluster bad request response
func (*AddClusterBadRequest) WithPayload ¶
func (o *AddClusterBadRequest) WithPayload(payload *models.APIResponse) *AddClusterBadRequest
WithPayload adds the payload to the add cluster bad request response
func (*AddClusterBadRequest) WriteResponse ¶
func (o *AddClusterBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddClusterCreated ¶
type AddClusterCreated struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
AddClusterCreated Created
swagger:response addClusterCreated
func NewAddClusterCreated ¶
func NewAddClusterCreated() *AddClusterCreated
NewAddClusterCreated creates AddClusterCreated with default headers values
func (*AddClusterCreated) SetPayload ¶
func (o *AddClusterCreated) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the add cluster created response
func (*AddClusterCreated) WithPayload ¶
func (o *AddClusterCreated) WithPayload(payload *models.APIResponse) *AddClusterCreated
WithPayload adds the payload to the add cluster created response
func (*AddClusterCreated) WriteResponse ¶
func (o *AddClusterCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddClusterHandler ¶
type AddClusterHandler interface {
Handle(AddClusterParams) middleware.Responder
}
AddClusterHandler interface for that can handle valid add cluster params
type AddClusterHandlerFunc ¶
type AddClusterHandlerFunc func(AddClusterParams) middleware.Responder
AddClusterHandlerFunc turns a function with the right signature into a add cluster handler
func (AddClusterHandlerFunc) Handle ¶
func (fn AddClusterHandlerFunc) Handle(params AddClusterParams) middleware.Responder
Handle executing the request and returning a response
type AddClusterInternalServerError ¶
type AddClusterInternalServerError struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
AddClusterInternalServerError Internal Server Error
swagger:response addClusterInternalServerError
func NewAddClusterInternalServerError ¶
func NewAddClusterInternalServerError() *AddClusterInternalServerError
NewAddClusterInternalServerError creates AddClusterInternalServerError with default headers values
func (*AddClusterInternalServerError) SetPayload ¶
func (o *AddClusterInternalServerError) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the add cluster internal server error response
func (*AddClusterInternalServerError) WithPayload ¶
func (o *AddClusterInternalServerError) WithPayload(payload *models.APIResponse) *AddClusterInternalServerError
WithPayload adds the payload to the add cluster internal server error response
func (*AddClusterInternalServerError) WriteResponse ¶
func (o *AddClusterInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddClusterParams ¶
type AddClusterParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *models.IoK8sClusterRegistryPkgApisClusterregistryV1alpha1Cluster }
AddClusterParams contains all the bound params for the add cluster operation typically these are obtained from a http.Request
swagger:parameters addCluster
func NewAddClusterParams ¶
func NewAddClusterParams() AddClusterParams
NewAddClusterParams creates a new AddClusterParams object with the default values initialized.
func (*AddClusterParams) BindRequest ¶
func (o *AddClusterParams) 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
type AddClusterURL ¶
type AddClusterURL struct {
// contains filtered or unexported fields
}
AddClusterURL generates an URL for the add cluster operation
func (*AddClusterURL) Build ¶
func (o *AddClusterURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddClusterURL) BuildFull ¶
func (o *AddClusterURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddClusterURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AddClusterURL) SetBasePath ¶
func (o *AddClusterURL) 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 (*AddClusterURL) String ¶
func (o *AddClusterURL) String() string
String returns the string representation of the path with query string
func (*AddClusterURL) StringFull ¶
func (o *AddClusterURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddClusterURL) WithBasePath ¶
func (o *AddClusterURL) WithBasePath(bp string) *AddClusterURL
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 AddClusterUnauthorized ¶
type AddClusterUnauthorized struct { models.APIResponse `json:"body,omitempty"` }Payload *
AddClusterUnauthorized Unauthorized
swagger:response addClusterUnauthorized
func NewAddClusterUnauthorized ¶
func NewAddClusterUnauthorized() *AddClusterUnauthorized
NewAddClusterUnauthorized creates AddClusterUnauthorized with default headers values
func (*AddClusterUnauthorized) SetPayload ¶
func (o *AddClusterUnauthorized) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the add cluster unauthorized response
func (*AddClusterUnauthorized) WithPayload ¶
func (o *AddClusterUnauthorized) WithPayload(payload *models.APIResponse) *AddClusterUnauthorized
WithPayload adds the payload to the add cluster unauthorized response
func (*AddClusterUnauthorized) WriteResponse ¶
func (o *AddClusterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteCluster ¶
type DeleteCluster struct { Context *middleware.Context Handler DeleteClusterHandler }
DeleteCluster swagger:route DELETE /clusters/{clusterId} clusters deleteCluster
Deletes a cluster
func NewDeleteCluster ¶
func NewDeleteCluster(ctx *middleware.Context, handler DeleteClusterHandler) *DeleteCluster
NewDeleteCluster creates a new http.Handler for the delete cluster operation
func (*DeleteCluster) ServeHTTP ¶
func (o *DeleteCluster) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteClusterBadRequest ¶
type DeleteClusterBadRequest struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
DeleteClusterBadRequest Bad Request
swagger:response deleteClusterBadRequest
func NewDeleteClusterBadRequest ¶
func NewDeleteClusterBadRequest() *DeleteClusterBadRequest
NewDeleteClusterBadRequest creates DeleteClusterBadRequest with default headers values
func (*DeleteClusterBadRequest) SetPayload ¶
func (o *DeleteClusterBadRequest) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the delete cluster bad request response
func (*DeleteClusterBadRequest) WithPayload ¶
func (o *DeleteClusterBadRequest) WithPayload(payload *models.APIResponse) *DeleteClusterBadRequest
WithPayload adds the payload to the delete cluster bad request response
func (*DeleteClusterBadRequest) WriteResponse ¶
func (o *DeleteClusterBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteClusterHandler ¶
type DeleteClusterHandler interface {
Handle(DeleteClusterParams) middleware.Responder
}
DeleteClusterHandler interface for that can handle valid delete cluster params
type DeleteClusterHandlerFunc ¶
type DeleteClusterHandlerFunc func(DeleteClusterParams) middleware.Responder
DeleteClusterHandlerFunc turns a function with the right signature into a delete cluster handler
func (DeleteClusterHandlerFunc) Handle ¶
func (fn DeleteClusterHandlerFunc) Handle(params DeleteClusterParams) middleware.Responder
Handle executing the request and returning a response
type DeleteClusterInternalServerError ¶
type DeleteClusterInternalServerError struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
DeleteClusterInternalServerError Internal Server Error
swagger:response deleteClusterInternalServerError
func NewDeleteClusterInternalServerError ¶
func NewDeleteClusterInternalServerError() *DeleteClusterInternalServerError
NewDeleteClusterInternalServerError creates DeleteClusterInternalServerError with default headers values
func (*DeleteClusterInternalServerError) SetPayload ¶
func (o *DeleteClusterInternalServerError) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the delete cluster internal server error response
func (*DeleteClusterInternalServerError) WithPayload ¶
func (o *DeleteClusterInternalServerError) WithPayload(payload *models.APIResponse) *DeleteClusterInternalServerError
WithPayload adds the payload to the delete cluster internal server error response
func (*DeleteClusterInternalServerError) WriteResponse ¶
func (o *DeleteClusterInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteClusterNotFound ¶
type DeleteClusterNotFound struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
DeleteClusterNotFound The specified resource was not found
swagger:response deleteClusterNotFound
func NewDeleteClusterNotFound ¶
func NewDeleteClusterNotFound() *DeleteClusterNotFound
NewDeleteClusterNotFound creates DeleteClusterNotFound with default headers values
func (*DeleteClusterNotFound) SetPayload ¶
func (o *DeleteClusterNotFound) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the delete cluster not found response
func (*DeleteClusterNotFound) WithPayload ¶
func (o *DeleteClusterNotFound) WithPayload(payload *models.APIResponse) *DeleteClusterNotFound
WithPayload adds the payload to the delete cluster not found response
func (*DeleteClusterNotFound) WriteResponse ¶
func (o *DeleteClusterNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteClusterOK ¶
type DeleteClusterOK struct { }
DeleteClusterOK OK
swagger:response deleteClusterOK
func NewDeleteClusterOK ¶
func NewDeleteClusterOK() *DeleteClusterOK
NewDeleteClusterOK creates DeleteClusterOK with default headers values
func (*DeleteClusterOK) WriteResponse ¶
func (o *DeleteClusterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteClusterParams ¶
type DeleteClusterParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Cluster id to delete Required: true In: path */ ClusterID string }
DeleteClusterParams contains all the bound params for the delete cluster operation typically these are obtained from a http.Request
swagger:parameters deleteCluster
func NewDeleteClusterParams ¶
func NewDeleteClusterParams() DeleteClusterParams
NewDeleteClusterParams creates a new DeleteClusterParams object with the default values initialized.
func (*DeleteClusterParams) BindRequest ¶
func (o *DeleteClusterParams) 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
type DeleteClusterURL ¶
type DeleteClusterURL struct { ClusterID string // contains filtered or unexported fields }
DeleteClusterURL generates an URL for the delete cluster operation
func (*DeleteClusterURL) Build ¶
func (o *DeleteClusterURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteClusterURL) BuildFull ¶
func (o *DeleteClusterURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteClusterURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteClusterURL) SetBasePath ¶
func (o *DeleteClusterURL) 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 (*DeleteClusterURL) String ¶
func (o *DeleteClusterURL) String() string
String returns the string representation of the path with query string
func (*DeleteClusterURL) StringFull ¶
func (o *DeleteClusterURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteClusterURL) WithBasePath ¶
func (o *DeleteClusterURL) WithBasePath(bp string) *DeleteClusterURL
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 DeleteClusterUnauthorized ¶
type DeleteClusterUnauthorized struct { models.APIResponse `json:"body,omitempty"` }Payload *
DeleteClusterUnauthorized Unauthorized
swagger:response deleteClusterUnauthorized
func NewDeleteClusterUnauthorized ¶
func NewDeleteClusterUnauthorized() *DeleteClusterUnauthorized
NewDeleteClusterUnauthorized creates DeleteClusterUnauthorized with default headers values
func (*DeleteClusterUnauthorized) SetPayload ¶
func (o *DeleteClusterUnauthorized) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the delete cluster unauthorized response
func (*DeleteClusterUnauthorized) WithPayload ¶
func (o *DeleteClusterUnauthorized) WithPayload(payload *models.APIResponse) *DeleteClusterUnauthorized
WithPayload adds the payload to the delete cluster unauthorized response
func (*DeleteClusterUnauthorized) WriteResponse ¶
func (o *DeleteClusterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClusterByID ¶
type GetClusterByID struct { Context *middleware.Context Handler GetClusterByIDHandler }
GetClusterByID swagger:route GET /clusters/{clusterId} clusters getClusterById
Find cluster by ID ¶
Returns a single cluster
func NewGetClusterByID ¶
func NewGetClusterByID(ctx *middleware.Context, handler GetClusterByIDHandler) *GetClusterByID
NewGetClusterByID creates a new http.Handler for the get cluster by Id operation
func (*GetClusterByID) ServeHTTP ¶
func (o *GetClusterByID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetClusterByIDBadRequest ¶
type GetClusterByIDBadRequest struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetClusterByIDBadRequest Bad Request
swagger:response getClusterByIdBadRequest
func NewGetClusterByIDBadRequest ¶
func NewGetClusterByIDBadRequest() *GetClusterByIDBadRequest
NewGetClusterByIDBadRequest creates GetClusterByIDBadRequest with default headers values
func (*GetClusterByIDBadRequest) SetPayload ¶
func (o *GetClusterByIDBadRequest) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get cluster by Id bad request response
func (*GetClusterByIDBadRequest) WithPayload ¶
func (o *GetClusterByIDBadRequest) WithPayload(payload *models.APIResponse) *GetClusterByIDBadRequest
WithPayload adds the payload to the get cluster by Id bad request response
func (*GetClusterByIDBadRequest) WriteResponse ¶
func (o *GetClusterByIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClusterByIDHandler ¶
type GetClusterByIDHandler interface {
Handle(GetClusterByIDParams) middleware.Responder
}
GetClusterByIDHandler interface for that can handle valid get cluster by Id params
type GetClusterByIDHandlerFunc ¶
type GetClusterByIDHandlerFunc func(GetClusterByIDParams) middleware.Responder
GetClusterByIDHandlerFunc turns a function with the right signature into a get cluster by Id handler
func (GetClusterByIDHandlerFunc) Handle ¶
func (fn GetClusterByIDHandlerFunc) Handle(params GetClusterByIDParams) middleware.Responder
Handle executing the request and returning a response
type GetClusterByIDInternalServerError ¶
type GetClusterByIDInternalServerError struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetClusterByIDInternalServerError Internal Server Error
swagger:response getClusterByIdInternalServerError
func NewGetClusterByIDInternalServerError ¶
func NewGetClusterByIDInternalServerError() *GetClusterByIDInternalServerError
NewGetClusterByIDInternalServerError creates GetClusterByIDInternalServerError with default headers values
func (*GetClusterByIDInternalServerError) SetPayload ¶
func (o *GetClusterByIDInternalServerError) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get cluster by Id internal server error response
func (*GetClusterByIDInternalServerError) WithPayload ¶
func (o *GetClusterByIDInternalServerError) WithPayload(payload *models.APIResponse) *GetClusterByIDInternalServerError
WithPayload adds the payload to the get cluster by Id internal server error response
func (*GetClusterByIDInternalServerError) WriteResponse ¶
func (o *GetClusterByIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClusterByIDNotFound ¶
type GetClusterByIDNotFound struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetClusterByIDNotFound The specified resource was not found
swagger:response getClusterByIdNotFound
func NewGetClusterByIDNotFound ¶
func NewGetClusterByIDNotFound() *GetClusterByIDNotFound
NewGetClusterByIDNotFound creates GetClusterByIDNotFound with default headers values
func (*GetClusterByIDNotFound) SetPayload ¶
func (o *GetClusterByIDNotFound) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get cluster by Id not found response
func (*GetClusterByIDNotFound) WithPayload ¶
func (o *GetClusterByIDNotFound) WithPayload(payload *models.APIResponse) *GetClusterByIDNotFound
WithPayload adds the payload to the get cluster by Id not found response
func (*GetClusterByIDNotFound) WriteResponse ¶
func (o *GetClusterByIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClusterByIDOK ¶
type GetClusterByIDOK struct { /* In: Body */ Payload *models.IoK8sClusterRegistryPkgApisClusterregistryV1alpha1Cluster `json:"body,omitempty"` }
GetClusterByIDOK OK
swagger:response getClusterByIdOK
func NewGetClusterByIDOK ¶
func NewGetClusterByIDOK() *GetClusterByIDOK
NewGetClusterByIDOK creates GetClusterByIDOK with default headers values
func (*GetClusterByIDOK) SetPayload ¶
func (o *GetClusterByIDOK) SetPayload(payload *models.IoK8sClusterRegistryPkgApisClusterregistryV1alpha1Cluster)
SetPayload sets the payload to the get cluster by Id o k response
func (*GetClusterByIDOK) WithPayload ¶
func (o *GetClusterByIDOK) WithPayload(payload *models.IoK8sClusterRegistryPkgApisClusterregistryV1alpha1Cluster) *GetClusterByIDOK
WithPayload adds the payload to the get cluster by Id o k response
func (*GetClusterByIDOK) WriteResponse ¶
func (o *GetClusterByIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClusterByIDParams ¶
type GetClusterByIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of cluster to return Required: true In: path */ ClusterID string }
GetClusterByIDParams contains all the bound params for the get cluster by Id operation typically these are obtained from a http.Request
swagger:parameters getClusterById
func NewGetClusterByIDParams ¶
func NewGetClusterByIDParams() GetClusterByIDParams
NewGetClusterByIDParams creates a new GetClusterByIDParams object with the default values initialized.
func (*GetClusterByIDParams) BindRequest ¶
func (o *GetClusterByIDParams) 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
type GetClusterByIDURL ¶
type GetClusterByIDURL struct { ClusterID string // contains filtered or unexported fields }
GetClusterByIDURL generates an URL for the get cluster by Id operation
func (*GetClusterByIDURL) Build ¶
func (o *GetClusterByIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetClusterByIDURL) BuildFull ¶
func (o *GetClusterByIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetClusterByIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetClusterByIDURL) SetBasePath ¶
func (o *GetClusterByIDURL) 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 (*GetClusterByIDURL) String ¶
func (o *GetClusterByIDURL) String() string
String returns the string representation of the path with query string
func (*GetClusterByIDURL) StringFull ¶
func (o *GetClusterByIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetClusterByIDURL) WithBasePath ¶
func (o *GetClusterByIDURL) WithBasePath(bp string) *GetClusterByIDURL
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 GetClusterByIDUnauthorized ¶
type GetClusterByIDUnauthorized struct { models.APIResponse `json:"body,omitempty"` }Payload *
GetClusterByIDUnauthorized Unauthorized
swagger:response getClusterByIdUnauthorized
func NewGetClusterByIDUnauthorized ¶
func NewGetClusterByIDUnauthorized() *GetClusterByIDUnauthorized
NewGetClusterByIDUnauthorized creates GetClusterByIDUnauthorized with default headers values
func (*GetClusterByIDUnauthorized) SetPayload ¶
func (o *GetClusterByIDUnauthorized) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get cluster by Id unauthorized response
func (*GetClusterByIDUnauthorized) WithPayload ¶
func (o *GetClusterByIDUnauthorized) WithPayload(payload *models.APIResponse) *GetClusterByIDUnauthorized
WithPayload adds the payload to the get cluster by Id unauthorized response
func (*GetClusterByIDUnauthorized) WriteResponse ¶
func (o *GetClusterByIDUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClusters ¶
type GetClusters struct { Context *middleware.Context Handler GetClustersHandler }
GetClusters swagger:route GET /clusters clusters getClusters
Returns all clusters ¶
Returns a list of clusters
func NewGetClusters ¶
func NewGetClusters(ctx *middleware.Context, handler GetClustersHandler) *GetClusters
NewGetClusters creates a new http.Handler for the get clusters operation
func (*GetClusters) ServeHTTP ¶
func (o *GetClusters) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetClustersBadRequest ¶
type GetClustersBadRequest struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetClustersBadRequest Bad Request
swagger:response getClustersBadRequest
func NewGetClustersBadRequest ¶
func NewGetClustersBadRequest() *GetClustersBadRequest
NewGetClustersBadRequest creates GetClustersBadRequest with default headers values
func (*GetClustersBadRequest) SetPayload ¶
func (o *GetClustersBadRequest) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get clusters bad request response
func (*GetClustersBadRequest) WithPayload ¶
func (o *GetClustersBadRequest) WithPayload(payload *models.APIResponse) *GetClustersBadRequest
WithPayload adds the payload to the get clusters bad request response
func (*GetClustersBadRequest) WriteResponse ¶
func (o *GetClustersBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClustersHandler ¶
type GetClustersHandler interface {
Handle(GetClustersParams) middleware.Responder
}
GetClustersHandler interface for that can handle valid get clusters params
type GetClustersHandlerFunc ¶
type GetClustersHandlerFunc func(GetClustersParams) middleware.Responder
GetClustersHandlerFunc turns a function with the right signature into a get clusters handler
func (GetClustersHandlerFunc) Handle ¶
func (fn GetClustersHandlerFunc) Handle(params GetClustersParams) middleware.Responder
Handle executing the request and returning a response
type GetClustersInternalServerError ¶
type GetClustersInternalServerError struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetClustersInternalServerError Internal Server Error
swagger:response getClustersInternalServerError
func NewGetClustersInternalServerError ¶
func NewGetClustersInternalServerError() *GetClustersInternalServerError
NewGetClustersInternalServerError creates GetClustersInternalServerError with default headers values
func (*GetClustersInternalServerError) SetPayload ¶
func (o *GetClustersInternalServerError) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get clusters internal server error response
func (*GetClustersInternalServerError) WithPayload ¶
func (o *GetClustersInternalServerError) WithPayload(payload *models.APIResponse) *GetClustersInternalServerError
WithPayload adds the payload to the get clusters internal server error response
func (*GetClustersInternalServerError) WriteResponse ¶
func (o *GetClustersInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClustersOK ¶
type GetClustersOK struct { /* In: Body */ Payload models.GetClustersOKBody `json:"body,omitempty"` }
GetClustersOK OK
swagger:response getClustersOK
func NewGetClustersOK ¶
func NewGetClustersOK() *GetClustersOK
NewGetClustersOK creates GetClustersOK with default headers values
func (*GetClustersOK) SetPayload ¶
func (o *GetClustersOK) SetPayload(payload models.GetClustersOKBody)
SetPayload sets the payload to the get clusters o k response
func (*GetClustersOK) WithPayload ¶
func (o *GetClustersOK) WithPayload(payload models.GetClustersOKBody) *GetClustersOK
WithPayload adds the payload to the get clusters o k response
func (*GetClustersOK) WriteResponse ¶
func (o *GetClustersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClustersParams ¶
GetClustersParams contains all the bound params for the get clusters operation typically these are obtained from a http.Request
swagger:parameters getClusters
func NewGetClustersParams ¶
func NewGetClustersParams() GetClustersParams
NewGetClustersParams creates a new GetClustersParams object with the default values initialized.
func (*GetClustersParams) BindRequest ¶
func (o *GetClustersParams) 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
type GetClustersURL ¶
type GetClustersURL struct {
// contains filtered or unexported fields
}
GetClustersURL generates an URL for the get clusters operation
func (*GetClustersURL) Build ¶
func (o *GetClustersURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetClustersURL) BuildFull ¶
func (o *GetClustersURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetClustersURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetClustersURL) SetBasePath ¶
func (o *GetClustersURL) 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 (*GetClustersURL) String ¶
func (o *GetClustersURL) String() string
String returns the string representation of the path with query string
func (*GetClustersURL) StringFull ¶
func (o *GetClustersURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetClustersURL) WithBasePath ¶
func (o *GetClustersURL) WithBasePath(bp string) *GetClustersURL
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 GetClustersUnauthorized ¶
type GetClustersUnauthorized struct { models.APIResponse `json:"body,omitempty"` }Payload *
GetClustersUnauthorized Unauthorized
swagger:response getClustersUnauthorized
func NewGetClustersUnauthorized ¶
func NewGetClustersUnauthorized() *GetClustersUnauthorized
NewGetClustersUnauthorized creates GetClustersUnauthorized with default headers values
func (*GetClustersUnauthorized) SetPayload ¶
func (o *GetClustersUnauthorized) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get clusters unauthorized response
func (*GetClustersUnauthorized) WithPayload ¶
func (o *GetClustersUnauthorized) WithPayload(payload *models.APIResponse) *GetClustersUnauthorized
WithPayload adds the payload to the get clusters unauthorized response
func (*GetClustersUnauthorized) WriteResponse ¶
func (o *GetClustersUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateCluster ¶
type UpdateCluster struct { Context *middleware.Context Handler UpdateClusterHandler }
UpdateCluster swagger:route PUT /clusters/{clusterId} clusters updateCluster
Update an existing cluster
func NewUpdateCluster ¶
func NewUpdateCluster(ctx *middleware.Context, handler UpdateClusterHandler) *UpdateCluster
NewUpdateCluster creates a new http.Handler for the update cluster operation
func (*UpdateCluster) ServeHTTP ¶
func (o *UpdateCluster) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateClusterBadRequest ¶
type UpdateClusterBadRequest struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
UpdateClusterBadRequest Bad Request
swagger:response updateClusterBadRequest
func NewUpdateClusterBadRequest ¶
func NewUpdateClusterBadRequest() *UpdateClusterBadRequest
NewUpdateClusterBadRequest creates UpdateClusterBadRequest with default headers values
func (*UpdateClusterBadRequest) SetPayload ¶
func (o *UpdateClusterBadRequest) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the update cluster bad request response
func (*UpdateClusterBadRequest) WithPayload ¶
func (o *UpdateClusterBadRequest) WithPayload(payload *models.APIResponse) *UpdateClusterBadRequest
WithPayload adds the payload to the update cluster bad request response
func (*UpdateClusterBadRequest) WriteResponse ¶
func (o *UpdateClusterBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateClusterHandler ¶
type UpdateClusterHandler interface {
Handle(UpdateClusterParams) middleware.Responder
}
UpdateClusterHandler interface for that can handle valid update cluster params
type UpdateClusterHandlerFunc ¶
type UpdateClusterHandlerFunc func(UpdateClusterParams) middleware.Responder
UpdateClusterHandlerFunc turns a function with the right signature into a update cluster handler
func (UpdateClusterHandlerFunc) Handle ¶
func (fn UpdateClusterHandlerFunc) Handle(params UpdateClusterParams) middleware.Responder
Handle executing the request and returning a response
type UpdateClusterInternalServerError ¶
type UpdateClusterInternalServerError struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
UpdateClusterInternalServerError Internal Server Error
swagger:response updateClusterInternalServerError
func NewUpdateClusterInternalServerError ¶
func NewUpdateClusterInternalServerError() *UpdateClusterInternalServerError
NewUpdateClusterInternalServerError creates UpdateClusterInternalServerError with default headers values
func (*UpdateClusterInternalServerError) SetPayload ¶
func (o *UpdateClusterInternalServerError) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the update cluster internal server error response
func (*UpdateClusterInternalServerError) WithPayload ¶
func (o *UpdateClusterInternalServerError) WithPayload(payload *models.APIResponse) *UpdateClusterInternalServerError
WithPayload adds the payload to the update cluster internal server error response
func (*UpdateClusterInternalServerError) WriteResponse ¶
func (o *UpdateClusterInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateClusterNotFound ¶
type UpdateClusterNotFound struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
UpdateClusterNotFound The specified resource was not found
swagger:response updateClusterNotFound
func NewUpdateClusterNotFound ¶
func NewUpdateClusterNotFound() *UpdateClusterNotFound
NewUpdateClusterNotFound creates UpdateClusterNotFound with default headers values
func (*UpdateClusterNotFound) SetPayload ¶
func (o *UpdateClusterNotFound) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the update cluster not found response
func (*UpdateClusterNotFound) WithPayload ¶
func (o *UpdateClusterNotFound) WithPayload(payload *models.APIResponse) *UpdateClusterNotFound
WithPayload adds the payload to the update cluster not found response
func (*UpdateClusterNotFound) WriteResponse ¶
func (o *UpdateClusterNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateClusterOK ¶
type UpdateClusterOK struct { }
UpdateClusterOK OK
swagger:response updateClusterOK
func NewUpdateClusterOK ¶
func NewUpdateClusterOK() *UpdateClusterOK
NewUpdateClusterOK creates UpdateClusterOK with default headers values
func (*UpdateClusterOK) WriteResponse ¶
func (o *UpdateClusterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateClusterParams ¶
type UpdateClusterParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *models.IoK8sClusterRegistryPkgApisClusterregistryV1alpha1Cluster /*Cluster id to update Required: true In: path */ ClusterID string }
UpdateClusterParams contains all the bound params for the update cluster operation typically these are obtained from a http.Request
swagger:parameters updateCluster
func NewUpdateClusterParams ¶
func NewUpdateClusterParams() UpdateClusterParams
NewUpdateClusterParams creates a new UpdateClusterParams object with the default values initialized.
func (*UpdateClusterParams) BindRequest ¶
func (o *UpdateClusterParams) 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
type UpdateClusterURL ¶
type UpdateClusterURL struct { ClusterID string // contains filtered or unexported fields }
UpdateClusterURL generates an URL for the update cluster operation
func (*UpdateClusterURL) Build ¶
func (o *UpdateClusterURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateClusterURL) BuildFull ¶
func (o *UpdateClusterURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateClusterURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateClusterURL) SetBasePath ¶
func (o *UpdateClusterURL) 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 (*UpdateClusterURL) String ¶
func (o *UpdateClusterURL) String() string
String returns the string representation of the path with query string
func (*UpdateClusterURL) StringFull ¶
func (o *UpdateClusterURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateClusterURL) WithBasePath ¶
func (o *UpdateClusterURL) WithBasePath(bp string) *UpdateClusterURL
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 UpdateClusterUnauthorized ¶
type UpdateClusterUnauthorized struct { models.APIResponse `json:"body,omitempty"` }Payload *
UpdateClusterUnauthorized Unauthorized
swagger:response updateClusterUnauthorized
func NewUpdateClusterUnauthorized ¶
func NewUpdateClusterUnauthorized() *UpdateClusterUnauthorized
NewUpdateClusterUnauthorized creates UpdateClusterUnauthorized with default headers values
func (*UpdateClusterUnauthorized) SetPayload ¶
func (o *UpdateClusterUnauthorized) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the update cluster unauthorized response
func (*UpdateClusterUnauthorized) WithPayload ¶
func (o *UpdateClusterUnauthorized) WithPayload(payload *models.APIResponse) *UpdateClusterUnauthorized
WithPayload adds the payload to the update cluster unauthorized response
func (*UpdateClusterUnauthorized) WriteResponse ¶
func (o *UpdateClusterUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- add_cluster.go
- add_cluster_parameters.go
- add_cluster_responses.go
- add_cluster_urlbuilder.go
- delete_cluster.go
- delete_cluster_parameters.go
- delete_cluster_responses.go
- delete_cluster_urlbuilder.go
- get_cluster_by_id.go
- get_cluster_by_id_parameters.go
- get_cluster_by_id_responses.go
- get_cluster_by_id_urlbuilder.go
- get_clusters.go
- get_clusters_parameters.go
- get_clusters_responses.go
- get_clusters_urlbuilder.go
- update_cluster.go
- update_cluster_parameters.go
- update_cluster_responses.go
- update_cluster_urlbuilder.go