clusters

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2018 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const AddClusterBadRequestCode int = 400

AddClusterBadRequestCode is the HTTP code returned for type AddClusterBadRequest

View Source
const AddClusterCreatedCode int = 201

AddClusterCreatedCode is the HTTP code returned for type AddClusterCreated

View Source
const AddClusterInternalServerErrorCode int = 500

AddClusterInternalServerErrorCode is the HTTP code returned for type AddClusterInternalServerError

View Source
const AddClusterUnauthorizedCode int = 401

AddClusterUnauthorizedCode is the HTTP code returned for type AddClusterUnauthorized

View Source
const DeleteClusterBadRequestCode int = 400

DeleteClusterBadRequestCode is the HTTP code returned for type DeleteClusterBadRequest

View Source
const DeleteClusterInternalServerErrorCode int = 500

DeleteClusterInternalServerErrorCode is the HTTP code returned for type DeleteClusterInternalServerError

View Source
const DeleteClusterNotFoundCode int = 404

DeleteClusterNotFoundCode is the HTTP code returned for type DeleteClusterNotFound

View Source
const DeleteClusterOKCode int = 200

DeleteClusterOKCode is the HTTP code returned for type DeleteClusterOK

View Source
const DeleteClusterUnauthorizedCode int = 401

DeleteClusterUnauthorizedCode is the HTTP code returned for type DeleteClusterUnauthorized

View Source
const GetClusterByIDBadRequestCode int = 400

GetClusterByIDBadRequestCode is the HTTP code returned for type GetClusterByIDBadRequest

View Source
const GetClusterByIDInternalServerErrorCode int = 500

GetClusterByIDInternalServerErrorCode is the HTTP code returned for type GetClusterByIDInternalServerError

View Source
const GetClusterByIDNotFoundCode int = 404

GetClusterByIDNotFoundCode is the HTTP code returned for type GetClusterByIDNotFound

View Source
const GetClusterByIDOKCode int = 200

GetClusterByIDOKCode is the HTTP code returned for type GetClusterByIDOK

View Source
const GetClusterByIDUnauthorizedCode int = 401

GetClusterByIDUnauthorizedCode is the HTTP code returned for type GetClusterByIDUnauthorized

View Source
const GetClustersBadRequestCode int = 400

GetClustersBadRequestCode is the HTTP code returned for type GetClustersBadRequest

View Source
const GetClustersInternalServerErrorCode int = 500

GetClustersInternalServerErrorCode is the HTTP code returned for type GetClustersInternalServerError

View Source
const GetClustersOKCode int = 200

GetClustersOKCode is the HTTP code returned for type GetClustersOK

View Source
const GetClustersUnauthorizedCode int = 401

GetClustersUnauthorizedCode is the HTTP code returned for type GetClustersUnauthorized

View Source
const UpdateClusterBadRequestCode int = 400

UpdateClusterBadRequestCode is the HTTP code returned for type UpdateClusterBadRequest

View Source
const UpdateClusterInternalServerErrorCode int = 500

UpdateClusterInternalServerErrorCode is the HTTP code returned for type UpdateClusterInternalServerError

View Source
const UpdateClusterNotFoundCode int = 404

UpdateClusterNotFoundCode is the HTTP code returned for type UpdateClusterNotFound

View Source
const UpdateClusterOKCode int = 200

UpdateClusterOKCode is the HTTP code returned for type UpdateClusterOK

View Source
const UpdateClusterUnauthorizedCode int = 401

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

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

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

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

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 {

	/*
	  In: Body
	*/
	Payload *models.APIResponse `json:"body,omitempty"`
}

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

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

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

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

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

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

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

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 {

	/*
	  In: Body
	*/
	Payload *models.APIResponse `json:"body,omitempty"`
}

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

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

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

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

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

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

SetPayload sets the payload to the get cluster by Id o k response

func (*GetClusterByIDOK) WithPayload

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

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

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 {

	/*
	  In: Body
	*/
	Payload *models.APIResponse `json:"body,omitempty"`
}

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

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

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

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

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

type GetClustersParams struct {

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

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

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

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 {

	/*
	  In: Body
	*/
	Payload *models.APIResponse `json:"body,omitempty"`
}

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

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

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

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

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

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

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

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 {

	/*
	  In: Body
	*/
	Payload *models.APIResponse `json:"body,omitempty"`
}

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

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

Jump to

Keyboard shortcuts

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