operations

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const CreateClusterCreatedCode int = 201

CreateClusterCreatedCode is the HTTP code returned for type CreateClusterCreated

View Source
const GetClusterCredentialsOKCode int = 200

GetClusterCredentialsOKCode is the HTTP code returned for type GetClusterCredentialsOK

View Source
const GetClusterEventsOKCode int = 200

GetClusterEventsOKCode is the HTTP code returned for type GetClusterEventsOK

View Source
const GetClusterInfoOKCode int = 200

GetClusterInfoOKCode is the HTTP code returned for type GetClusterInfoOK

View Source
const GetOpenstackMetadataOKCode int = 200

GetOpenstackMetadataOKCode is the HTTP code returned for type GetOpenstackMetadataOK

View Source
const InfoOKCode int = 200

InfoOKCode is the HTTP code returned for type InfoOK

View Source
const ListAPIVersionsOKCode int = 200

ListAPIVersionsOKCode is the HTTP code returned for type ListAPIVersionsOK

View Source
const ListClustersOKCode int = 200

ListClustersOKCode is the HTTP code returned for type ListClustersOK

View Source
const ShowClusterOKCode int = 200

ShowClusterOKCode is the HTTP code returned for type ShowClusterOK

View Source
const TerminateClusterAcceptedCode int = 202

TerminateClusterAcceptedCode is the HTTP code returned for type TerminateClusterAccepted

View Source
const UpdateClusterOKCode int = 200

UpdateClusterOKCode is the HTTP code returned for type UpdateClusterOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCluster

type CreateCluster struct {
	Context *middleware.Context
	Handler CreateClusterHandler
}

CreateCluster swagger:route POST /api/v1/clusters createCluster

Create a cluster

func NewCreateCluster

func NewCreateCluster(ctx *middleware.Context, handler CreateClusterHandler) *CreateCluster

NewCreateCluster creates a new http.Handler for the create cluster operation

func (*CreateCluster) ServeHTTP

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

type CreateClusterCreated

type CreateClusterCreated struct {

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

CreateClusterCreated OK

swagger:response createClusterCreated

func NewCreateClusterCreated

func NewCreateClusterCreated() *CreateClusterCreated

NewCreateClusterCreated creates CreateClusterCreated with default headers values

func (*CreateClusterCreated) SetPayload

func (o *CreateClusterCreated) SetPayload(payload *models.Kluster)

SetPayload sets the payload to the create cluster created response

func (*CreateClusterCreated) WithPayload

func (o *CreateClusterCreated) WithPayload(payload *models.Kluster) *CreateClusterCreated

WithPayload adds the payload to the create cluster created response

func (*CreateClusterCreated) WriteResponse

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

WriteResponse to the client

type CreateClusterDefault

type CreateClusterDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

CreateClusterDefault Error

swagger:response createClusterDefault

func NewCreateClusterDefault

func NewCreateClusterDefault(code int) *CreateClusterDefault

NewCreateClusterDefault creates CreateClusterDefault with default headers values

func (*CreateClusterDefault) SetPayload

func (o *CreateClusterDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the create cluster default response

func (*CreateClusterDefault) SetStatusCode

func (o *CreateClusterDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create cluster default response

func (*CreateClusterDefault) WithPayload

func (o *CreateClusterDefault) WithPayload(payload *models.Error) *CreateClusterDefault

WithPayload adds the payload to the create cluster default response

func (*CreateClusterDefault) WithStatusCode

func (o *CreateClusterDefault) WithStatusCode(code int) *CreateClusterDefault

WithStatusCode adds the status to the create cluster default response

func (*CreateClusterDefault) WriteResponse

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

WriteResponse to the client

type CreateClusterHandler

type CreateClusterHandler interface {
	Handle(CreateClusterParams, *models.Principal) middleware.Responder
}

CreateClusterHandler interface for that can handle valid create cluster params

type CreateClusterHandlerFunc

type CreateClusterHandlerFunc func(CreateClusterParams, *models.Principal) middleware.Responder

CreateClusterHandlerFunc turns a function with the right signature into a create cluster handler

func (CreateClusterHandlerFunc) Handle

Handle executing the request and returning a response

type CreateClusterParams

type CreateClusterParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body *models.Kluster
}

CreateClusterParams contains all the bound params for the create cluster operation typically these are obtained from a http.Request

swagger:parameters CreateCluster

func NewCreateClusterParams

func NewCreateClusterParams() CreateClusterParams

NewCreateClusterParams creates a new CreateClusterParams object with the default values initialized.

func (*CreateClusterParams) BindRequest

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

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

CreateClusterURL generates an URL for the create cluster operation

func (*CreateClusterURL) Build

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

Build a url path and query string

func (*CreateClusterURL) BuildFull

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

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

func (*CreateClusterURL) Must

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

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

func (*CreateClusterURL) SetBasePath

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

func (o *CreateClusterURL) String() string

String returns the string representation of the path with query string

func (*CreateClusterURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateClusterURL) WithBasePath

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

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 GetClusterCredentials

type GetClusterCredentials struct {
	Context *middleware.Context
	Handler GetClusterCredentialsHandler
}

GetClusterCredentials swagger:route GET /api/v1/clusters/{name}/credentials getClusterCredentials

Get user specific credentials to access the cluster

func NewGetClusterCredentials

func NewGetClusterCredentials(ctx *middleware.Context, handler GetClusterCredentialsHandler) *GetClusterCredentials

NewGetClusterCredentials creates a new http.Handler for the get cluster credentials operation

func (*GetClusterCredentials) ServeHTTP

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

type GetClusterCredentialsDefault

type GetClusterCredentialsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetClusterCredentialsDefault Error

swagger:response getClusterCredentialsDefault

func NewGetClusterCredentialsDefault

func NewGetClusterCredentialsDefault(code int) *GetClusterCredentialsDefault

NewGetClusterCredentialsDefault creates GetClusterCredentialsDefault with default headers values

func (*GetClusterCredentialsDefault) SetPayload

func (o *GetClusterCredentialsDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get cluster credentials default response

func (*GetClusterCredentialsDefault) SetStatusCode

func (o *GetClusterCredentialsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get cluster credentials default response

func (*GetClusterCredentialsDefault) WithPayload

WithPayload adds the payload to the get cluster credentials default response

func (*GetClusterCredentialsDefault) WithStatusCode

WithStatusCode adds the status to the get cluster credentials default response

func (*GetClusterCredentialsDefault) WriteResponse

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

WriteResponse to the client

type GetClusterCredentialsHandler

type GetClusterCredentialsHandler interface {
	Handle(GetClusterCredentialsParams, *models.Principal) middleware.Responder
}

GetClusterCredentialsHandler interface for that can handle valid get cluster credentials params

type GetClusterCredentialsHandlerFunc

type GetClusterCredentialsHandlerFunc func(GetClusterCredentialsParams, *models.Principal) middleware.Responder

GetClusterCredentialsHandlerFunc turns a function with the right signature into a get cluster credentials handler

func (GetClusterCredentialsHandlerFunc) Handle

Handle executing the request and returning a response

type GetClusterCredentialsOK

type GetClusterCredentialsOK struct {

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

GetClusterCredentialsOK OK

swagger:response getClusterCredentialsOK

func NewGetClusterCredentialsOK

func NewGetClusterCredentialsOK() *GetClusterCredentialsOK

NewGetClusterCredentialsOK creates GetClusterCredentialsOK with default headers values

func (*GetClusterCredentialsOK) SetPayload

func (o *GetClusterCredentialsOK) SetPayload(payload *models.Credentials)

SetPayload sets the payload to the get cluster credentials o k response

func (*GetClusterCredentialsOK) WithPayload

WithPayload adds the payload to the get cluster credentials o k response

func (*GetClusterCredentialsOK) WriteResponse

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

WriteResponse to the client

type GetClusterCredentialsParams

type GetClusterCredentialsParams struct {

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

	/*
	  Required: true
	  Unique: true
	  In: path
	*/
	Name string
}

GetClusterCredentialsParams contains all the bound params for the get cluster credentials operation typically these are obtained from a http.Request

swagger:parameters GetClusterCredentials

func NewGetClusterCredentialsParams

func NewGetClusterCredentialsParams() GetClusterCredentialsParams

NewGetClusterCredentialsParams creates a new GetClusterCredentialsParams object with the default values initialized.

func (*GetClusterCredentialsParams) BindRequest

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 GetClusterCredentialsURL

type GetClusterCredentialsURL struct {
	Name string
	// contains filtered or unexported fields
}

GetClusterCredentialsURL generates an URL for the get cluster credentials operation

func (*GetClusterCredentialsURL) Build

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

Build a url path and query string

func (*GetClusterCredentialsURL) BuildFull

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

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

func (*GetClusterCredentialsURL) Must

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

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

func (*GetClusterCredentialsURL) SetBasePath

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

func (o *GetClusterCredentialsURL) String() string

String returns the string representation of the path with query string

func (*GetClusterCredentialsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetClusterCredentialsURL) WithBasePath

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 GetClusterEvents added in v1.2.0

type GetClusterEvents struct {
	Context *middleware.Context
	Handler GetClusterEventsHandler
}

GetClusterEvents swagger:route GET /api/v1/clusters/{name}/events getClusterEvents

Get recent events about the cluster

func NewGetClusterEvents added in v1.2.0

func NewGetClusterEvents(ctx *middleware.Context, handler GetClusterEventsHandler) *GetClusterEvents

NewGetClusterEvents creates a new http.Handler for the get cluster events operation

func (*GetClusterEvents) ServeHTTP added in v1.2.0

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

type GetClusterEventsDefault added in v1.2.0

type GetClusterEventsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetClusterEventsDefault Error

swagger:response getClusterEventsDefault

func NewGetClusterEventsDefault added in v1.2.0

func NewGetClusterEventsDefault(code int) *GetClusterEventsDefault

NewGetClusterEventsDefault creates GetClusterEventsDefault with default headers values

func (*GetClusterEventsDefault) SetPayload added in v1.2.0

func (o *GetClusterEventsDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get cluster events default response

func (*GetClusterEventsDefault) SetStatusCode added in v1.2.0

func (o *GetClusterEventsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get cluster events default response

func (*GetClusterEventsDefault) WithPayload added in v1.2.0

func (o *GetClusterEventsDefault) WithPayload(payload *models.Error) *GetClusterEventsDefault

WithPayload adds the payload to the get cluster events default response

func (*GetClusterEventsDefault) WithStatusCode added in v1.2.0

func (o *GetClusterEventsDefault) WithStatusCode(code int) *GetClusterEventsDefault

WithStatusCode adds the status to the get cluster events default response

func (*GetClusterEventsDefault) WriteResponse added in v1.2.0

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

WriteResponse to the client

type GetClusterEventsHandler added in v1.2.0

type GetClusterEventsHandler interface {
	Handle(GetClusterEventsParams, *models.Principal) middleware.Responder
}

GetClusterEventsHandler interface for that can handle valid get cluster events params

type GetClusterEventsHandlerFunc added in v1.2.0

type GetClusterEventsHandlerFunc func(GetClusterEventsParams, *models.Principal) middleware.Responder

GetClusterEventsHandlerFunc turns a function with the right signature into a get cluster events handler

func (GetClusterEventsHandlerFunc) Handle added in v1.2.0

Handle executing the request and returning a response

type GetClusterEventsOK added in v1.2.0

type GetClusterEventsOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Event `json:"body,omitempty"`
}

GetClusterEventsOK OK

swagger:response getClusterEventsOK

func NewGetClusterEventsOK added in v1.2.0

func NewGetClusterEventsOK() *GetClusterEventsOK

NewGetClusterEventsOK creates GetClusterEventsOK with default headers values

func (*GetClusterEventsOK) SetPayload added in v1.2.0

func (o *GetClusterEventsOK) SetPayload(payload []*models.Event)

SetPayload sets the payload to the get cluster events o k response

func (*GetClusterEventsOK) WithPayload added in v1.2.0

func (o *GetClusterEventsOK) WithPayload(payload []*models.Event) *GetClusterEventsOK

WithPayload adds the payload to the get cluster events o k response

func (*GetClusterEventsOK) WriteResponse added in v1.2.0

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

WriteResponse to the client

type GetClusterEventsParams added in v1.2.0

type GetClusterEventsParams struct {

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

	/*
	  Required: true
	  Unique: true
	  In: path
	*/
	Name string
}

GetClusterEventsParams contains all the bound params for the get cluster events operation typically these are obtained from a http.Request

swagger:parameters GetClusterEvents

func NewGetClusterEventsParams added in v1.2.0

func NewGetClusterEventsParams() GetClusterEventsParams

NewGetClusterEventsParams creates a new GetClusterEventsParams object with the default values initialized.

func (*GetClusterEventsParams) BindRequest added in v1.2.0

func (o *GetClusterEventsParams) 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 GetClusterEventsURL added in v1.2.0

type GetClusterEventsURL struct {
	Name string
	// contains filtered or unexported fields
}

GetClusterEventsURL generates an URL for the get cluster events operation

func (*GetClusterEventsURL) Build added in v1.2.0

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

Build a url path and query string

func (*GetClusterEventsURL) BuildFull added in v1.2.0

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

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

func (*GetClusterEventsURL) Must added in v1.2.0

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

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

func (*GetClusterEventsURL) SetBasePath added in v1.2.0

func (o *GetClusterEventsURL) 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 (*GetClusterEventsURL) String added in v1.2.0

func (o *GetClusterEventsURL) String() string

String returns the string representation of the path with query string

func (*GetClusterEventsURL) StringFull added in v1.2.0

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

StringFull returns the string representation of a complete url

func (*GetClusterEventsURL) WithBasePath added in v1.2.0

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

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 GetClusterInfo

type GetClusterInfo struct {
	Context *middleware.Context
	Handler GetClusterInfoHandler
}

GetClusterInfo swagger:route GET /api/v1/clusters/{name}/info getClusterInfo

Get user specific info about the cluster

func NewGetClusterInfo

func NewGetClusterInfo(ctx *middleware.Context, handler GetClusterInfoHandler) *GetClusterInfo

NewGetClusterInfo creates a new http.Handler for the get cluster info operation

func (*GetClusterInfo) ServeHTTP

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

type GetClusterInfoDefault

type GetClusterInfoDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetClusterInfoDefault Error

swagger:response getClusterInfoDefault

func NewGetClusterInfoDefault

func NewGetClusterInfoDefault(code int) *GetClusterInfoDefault

NewGetClusterInfoDefault creates GetClusterInfoDefault with default headers values

func (*GetClusterInfoDefault) SetPayload

func (o *GetClusterInfoDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get cluster info default response

func (*GetClusterInfoDefault) SetStatusCode

func (o *GetClusterInfoDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get cluster info default response

func (*GetClusterInfoDefault) WithPayload

func (o *GetClusterInfoDefault) WithPayload(payload *models.Error) *GetClusterInfoDefault

WithPayload adds the payload to the get cluster info default response

func (*GetClusterInfoDefault) WithStatusCode

func (o *GetClusterInfoDefault) WithStatusCode(code int) *GetClusterInfoDefault

WithStatusCode adds the status to the get cluster info default response

func (*GetClusterInfoDefault) WriteResponse

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

WriteResponse to the client

type GetClusterInfoHandler

type GetClusterInfoHandler interface {
	Handle(GetClusterInfoParams, *models.Principal) middleware.Responder
}

GetClusterInfoHandler interface for that can handle valid get cluster info params

type GetClusterInfoHandlerFunc

type GetClusterInfoHandlerFunc func(GetClusterInfoParams, *models.Principal) middleware.Responder

GetClusterInfoHandlerFunc turns a function with the right signature into a get cluster info handler

func (GetClusterInfoHandlerFunc) Handle

Handle executing the request and returning a response

type GetClusterInfoOK

type GetClusterInfoOK struct {

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

GetClusterInfoOK OK

swagger:response getClusterInfoOK

func NewGetClusterInfoOK

func NewGetClusterInfoOK() *GetClusterInfoOK

NewGetClusterInfoOK creates GetClusterInfoOK with default headers values

func (*GetClusterInfoOK) SetPayload

func (o *GetClusterInfoOK) SetPayload(payload *models.KlusterInfo)

SetPayload sets the payload to the get cluster info o k response

func (*GetClusterInfoOK) WithPayload

func (o *GetClusterInfoOK) WithPayload(payload *models.KlusterInfo) *GetClusterInfoOK

WithPayload adds the payload to the get cluster info o k response

func (*GetClusterInfoOK) WriteResponse

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

WriteResponse to the client

type GetClusterInfoParams

type GetClusterInfoParams struct {

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

	/*
	  Required: true
	  Unique: true
	  In: path
	*/
	Name string
}

GetClusterInfoParams contains all the bound params for the get cluster info operation typically these are obtained from a http.Request

swagger:parameters GetClusterInfo

func NewGetClusterInfoParams

func NewGetClusterInfoParams() GetClusterInfoParams

NewGetClusterInfoParams creates a new GetClusterInfoParams object with the default values initialized.

func (*GetClusterInfoParams) BindRequest

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

type GetClusterInfoURL struct {
	Name string
	// contains filtered or unexported fields
}

GetClusterInfoURL generates an URL for the get cluster info operation

func (*GetClusterInfoURL) Build

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

Build a url path and query string

func (*GetClusterInfoURL) BuildFull

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

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

func (*GetClusterInfoURL) Must

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

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

func (*GetClusterInfoURL) SetBasePath

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

func (o *GetClusterInfoURL) String() string

String returns the string representation of the path with query string

func (*GetClusterInfoURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetClusterInfoURL) WithBasePath

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

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 GetOpenstackMetadata added in v1.2.0

type GetOpenstackMetadata struct {
	Context *middleware.Context
	Handler GetOpenstackMetadataHandler
}

GetOpenstackMetadata swagger:route GET /api/v1/openstack/metadata getOpenstackMetadata

Grab bag of openstack metadata

func NewGetOpenstackMetadata added in v1.2.0

func NewGetOpenstackMetadata(ctx *middleware.Context, handler GetOpenstackMetadataHandler) *GetOpenstackMetadata

NewGetOpenstackMetadata creates a new http.Handler for the get openstack metadata operation

func (*GetOpenstackMetadata) ServeHTTP added in v1.2.0

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

type GetOpenstackMetadataDefault added in v1.2.0

type GetOpenstackMetadataDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetOpenstackMetadataDefault Error

swagger:response getOpenstackMetadataDefault

func NewGetOpenstackMetadataDefault added in v1.2.0

func NewGetOpenstackMetadataDefault(code int) *GetOpenstackMetadataDefault

NewGetOpenstackMetadataDefault creates GetOpenstackMetadataDefault with default headers values

func (*GetOpenstackMetadataDefault) SetPayload added in v1.2.0

func (o *GetOpenstackMetadataDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get openstack metadata default response

func (*GetOpenstackMetadataDefault) SetStatusCode added in v1.2.0

func (o *GetOpenstackMetadataDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get openstack metadata default response

func (*GetOpenstackMetadataDefault) WithPayload added in v1.2.0

WithPayload adds the payload to the get openstack metadata default response

func (*GetOpenstackMetadataDefault) WithStatusCode added in v1.2.0

WithStatusCode adds the status to the get openstack metadata default response

func (*GetOpenstackMetadataDefault) WriteResponse added in v1.2.0

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

WriteResponse to the client

type GetOpenstackMetadataHandler added in v1.2.0

type GetOpenstackMetadataHandler interface {
	Handle(GetOpenstackMetadataParams, *models.Principal) middleware.Responder
}

GetOpenstackMetadataHandler interface for that can handle valid get openstack metadata params

type GetOpenstackMetadataHandlerFunc added in v1.2.0

type GetOpenstackMetadataHandlerFunc func(GetOpenstackMetadataParams, *models.Principal) middleware.Responder

GetOpenstackMetadataHandlerFunc turns a function with the right signature into a get openstack metadata handler

func (GetOpenstackMetadataHandlerFunc) Handle added in v1.2.0

Handle executing the request and returning a response

type GetOpenstackMetadataOK added in v1.2.0

type GetOpenstackMetadataOK struct {

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

GetOpenstackMetadataOK OK

swagger:response getOpenstackMetadataOK

func NewGetOpenstackMetadataOK added in v1.2.0

func NewGetOpenstackMetadataOK() *GetOpenstackMetadataOK

NewGetOpenstackMetadataOK creates GetOpenstackMetadataOK with default headers values

func (*GetOpenstackMetadataOK) SetPayload added in v1.2.0

func (o *GetOpenstackMetadataOK) SetPayload(payload *models.OpenstackMetadata)

SetPayload sets the payload to the get openstack metadata o k response

func (*GetOpenstackMetadataOK) WithPayload added in v1.2.0

WithPayload adds the payload to the get openstack metadata o k response

func (*GetOpenstackMetadataOK) WriteResponse added in v1.2.0

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

WriteResponse to the client

type GetOpenstackMetadataParams added in v1.2.0

type GetOpenstackMetadataParams struct {

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

GetOpenstackMetadataParams contains all the bound params for the get openstack metadata operation typically these are obtained from a http.Request

swagger:parameters GetOpenstackMetadata

func NewGetOpenstackMetadataParams added in v1.2.0

func NewGetOpenstackMetadataParams() GetOpenstackMetadataParams

NewGetOpenstackMetadataParams creates a new GetOpenstackMetadataParams object with the default values initialized.

func (*GetOpenstackMetadataParams) BindRequest added in v1.2.0

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 GetOpenstackMetadataURL added in v1.2.0

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

GetOpenstackMetadataURL generates an URL for the get openstack metadata operation

func (*GetOpenstackMetadataURL) Build added in v1.2.0

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

Build a url path and query string

func (*GetOpenstackMetadataURL) BuildFull added in v1.2.0

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

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

func (*GetOpenstackMetadataURL) Must added in v1.2.0

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

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

func (*GetOpenstackMetadataURL) SetBasePath added in v1.2.0

func (o *GetOpenstackMetadataURL) 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 (*GetOpenstackMetadataURL) String added in v1.2.0

func (o *GetOpenstackMetadataURL) String() string

String returns the string representation of the path with query string

func (*GetOpenstackMetadataURL) StringFull added in v1.2.0

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

StringFull returns the string representation of a complete url

func (*GetOpenstackMetadataURL) WithBasePath added in v1.2.0

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 Info

type Info struct {
	Context *middleware.Context
	Handler InfoHandler
}

Info swagger:route GET /info info

Get info about Kubernikus

func NewInfo

func NewInfo(ctx *middleware.Context, handler InfoHandler) *Info

NewInfo creates a new http.Handler for the info operation

func (*Info) ServeHTTP

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

type InfoHandler

type InfoHandler interface {
	Handle(InfoParams) middleware.Responder
}

InfoHandler interface for that can handle valid info params

type InfoHandlerFunc

type InfoHandlerFunc func(InfoParams) middleware.Responder

InfoHandlerFunc turns a function with the right signature into a info handler

func (InfoHandlerFunc) Handle

func (fn InfoHandlerFunc) Handle(params InfoParams) middleware.Responder

Handle executing the request and returning a response

type InfoOK

type InfoOK struct {

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

InfoOK OK

swagger:response infoOK

func NewInfoOK

func NewInfoOK() *InfoOK

NewInfoOK creates InfoOK with default headers values

func (*InfoOK) SetPayload

func (o *InfoOK) SetPayload(payload *models.Info)

SetPayload sets the payload to the info o k response

func (*InfoOK) WithPayload

func (o *InfoOK) WithPayload(payload *models.Info) *InfoOK

WithPayload adds the payload to the info o k response

func (*InfoOK) WriteResponse

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

WriteResponse to the client

type InfoParams

type InfoParams struct {

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

InfoParams contains all the bound params for the info operation typically these are obtained from a http.Request

swagger:parameters Info

func NewInfoParams

func NewInfoParams() InfoParams

NewInfoParams creates a new InfoParams object with the default values initialized.

func (*InfoParams) BindRequest

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

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

InfoURL generates an URL for the info operation

func (*InfoURL) Build

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

Build a url path and query string

func (*InfoURL) BuildFull

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

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

func (*InfoURL) Must

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

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

func (*InfoURL) SetBasePath

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

func (o *InfoURL) String() string

String returns the string representation of the path with query string

func (*InfoURL) StringFull

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

StringFull returns the string representation of a complete url

func (*InfoURL) WithBasePath

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

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 KubernikusAPI

type KubernikusAPI struct {
	Middleware func(middleware.Builder) http.Handler

	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implemention in the security package, however you can replace it for your particular usage.
	BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator
	// APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function.
	// It has a default implemention in the security package, however you can replace it for your particular usage.
	APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator
	// BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function.
	// It has a default implemention in the security package, however you can replace it for your particular usage.
	BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator

	// JSONConsumer registers a consumer for a "application/json" mime type
	JSONConsumer runtime.Consumer

	// JSONProducer registers a producer for a "application/json" mime type
	JSONProducer runtime.Producer

	// KeystoneAuth registers a function that takes a token and returns a principal
	// it performs authentication based on an api key x-auth-token provided in the header
	KeystoneAuth func(string) (*models.Principal, error)

	// APIAuthorizer provides access control (ACL/RBAC/ABAC) by providing access to the request and authenticated principal
	APIAuthorizer runtime.Authorizer

	// CreateClusterHandler sets the operation handler for the create cluster operation
	CreateClusterHandler CreateClusterHandler
	// GetClusterCredentialsHandler sets the operation handler for the get cluster credentials operation
	GetClusterCredentialsHandler GetClusterCredentialsHandler
	// GetClusterEventsHandler sets the operation handler for the get cluster events operation
	GetClusterEventsHandler GetClusterEventsHandler
	// GetClusterInfoHandler sets the operation handler for the get cluster info operation
	GetClusterInfoHandler GetClusterInfoHandler
	// GetOpenstackMetadataHandler sets the operation handler for the get openstack metadata operation
	GetOpenstackMetadataHandler GetOpenstackMetadataHandler
	// InfoHandler sets the operation handler for the info operation
	InfoHandler InfoHandler
	// ListAPIVersionsHandler sets the operation handler for the list API versions operation
	ListAPIVersionsHandler ListAPIVersionsHandler
	// ListClustersHandler sets the operation handler for the list clusters operation
	ListClustersHandler ListClustersHandler
	// ShowClusterHandler sets the operation handler for the show cluster operation
	ShowClusterHandler ShowClusterHandler
	// TerminateClusterHandler sets the operation handler for the terminate cluster operation
	TerminateClusterHandler TerminateClusterHandler
	// UpdateClusterHandler sets the operation handler for the update cluster operation
	UpdateClusterHandler UpdateClusterHandler

	// ServeError is called when an error is received, there is a default handler
	// but you can set your own with this
	ServeError func(http.ResponseWriter, *http.Request, error)

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

KubernikusAPI the kubernikus API

func NewKubernikusAPI

func NewKubernikusAPI(spec *loads.Document) *KubernikusAPI

NewKubernikusAPI creates a new Kubernikus instance

func (*KubernikusAPI) AuthenticatorsFor

func (o *KubernikusAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*KubernikusAPI) Authorizer

func (o *KubernikusAPI) Authorizer() runtime.Authorizer

Authorizer returns the registered authorizer

func (*KubernikusAPI) ConsumersFor

func (o *KubernikusAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types

func (*KubernikusAPI) Context

func (o *KubernikusAPI) Context() *middleware.Context

Context returns the middleware context for the kubernikus API

func (*KubernikusAPI) DefaultConsumes

func (o *KubernikusAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*KubernikusAPI) DefaultProduces

func (o *KubernikusAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*KubernikusAPI) Formats

func (o *KubernikusAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*KubernikusAPI) HandlerFor

func (o *KubernikusAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*KubernikusAPI) Init

func (o *KubernikusAPI) Init()

Init allows you to just initialize the handler cache, you can then recompose the middelware as you see fit

func (*KubernikusAPI) ProducersFor

func (o *KubernikusAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types

func (*KubernikusAPI) RegisterFormat

func (o *KubernikusAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*KubernikusAPI) Serve

func (o *KubernikusAPI) Serve(builder middleware.Builder) http.Handler

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*KubernikusAPI) ServeErrorFor

func (o *KubernikusAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*KubernikusAPI) SetDefaultConsumes

func (o *KubernikusAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*KubernikusAPI) SetDefaultProduces

func (o *KubernikusAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*KubernikusAPI) SetSpec

func (o *KubernikusAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*KubernikusAPI) Validate

func (o *KubernikusAPI) Validate() error

Validate validates the registrations in the KubernikusAPI

type ListAPIVersions

type ListAPIVersions struct {
	Context *middleware.Context
	Handler ListAPIVersionsHandler
}

ListAPIVersions swagger:route GET /api listApiVersions

List available api versions

func NewListAPIVersions

func NewListAPIVersions(ctx *middleware.Context, handler ListAPIVersionsHandler) *ListAPIVersions

NewListAPIVersions creates a new http.Handler for the list API versions operation

func (*ListAPIVersions) ServeHTTP

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

type ListAPIVersionsHandler

type ListAPIVersionsHandler interface {
	Handle(ListAPIVersionsParams) middleware.Responder
}

ListAPIVersionsHandler interface for that can handle valid list API versions params

type ListAPIVersionsHandlerFunc

type ListAPIVersionsHandlerFunc func(ListAPIVersionsParams) middleware.Responder

ListAPIVersionsHandlerFunc turns a function with the right signature into a list API versions handler

func (ListAPIVersionsHandlerFunc) Handle

Handle executing the request and returning a response

type ListAPIVersionsOK

type ListAPIVersionsOK struct {

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

ListAPIVersionsOK OK

swagger:response listApiVersionsOK

func NewListAPIVersionsOK

func NewListAPIVersionsOK() *ListAPIVersionsOK

NewListAPIVersionsOK creates ListAPIVersionsOK with default headers values

func (*ListAPIVersionsOK) SetPayload

func (o *ListAPIVersionsOK) SetPayload(payload *models.APIVersions)

SetPayload sets the payload to the list Api versions o k response

func (*ListAPIVersionsOK) WithPayload

func (o *ListAPIVersionsOK) WithPayload(payload *models.APIVersions) *ListAPIVersionsOK

WithPayload adds the payload to the list Api versions o k response

func (*ListAPIVersionsOK) WriteResponse

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

WriteResponse to the client

type ListAPIVersionsParams

type ListAPIVersionsParams struct {

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

ListAPIVersionsParams contains all the bound params for the list API versions operation typically these are obtained from a http.Request

swagger:parameters ListAPIVersions

func NewListAPIVersionsParams

func NewListAPIVersionsParams() ListAPIVersionsParams

NewListAPIVersionsParams creates a new ListAPIVersionsParams object with the default values initialized.

func (*ListAPIVersionsParams) BindRequest

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

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

ListAPIVersionsURL generates an URL for the list API versions operation

func (*ListAPIVersionsURL) Build

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

Build a url path and query string

func (*ListAPIVersionsURL) BuildFull

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

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

func (*ListAPIVersionsURL) Must

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

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

func (*ListAPIVersionsURL) SetBasePath

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

func (o *ListAPIVersionsURL) String() string

String returns the string representation of the path with query string

func (*ListAPIVersionsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListAPIVersionsURL) WithBasePath

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

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 ListClusters

type ListClusters struct {
	Context *middleware.Context
	Handler ListClustersHandler
}

ListClusters swagger:route GET /api/v1/clusters listClusters

List available clusters

func NewListClusters

func NewListClusters(ctx *middleware.Context, handler ListClustersHandler) *ListClusters

NewListClusters creates a new http.Handler for the list clusters operation

func (*ListClusters) ServeHTTP

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

type ListClustersDefault

type ListClustersDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

ListClustersDefault Error

swagger:response listClustersDefault

func NewListClustersDefault

func NewListClustersDefault(code int) *ListClustersDefault

NewListClustersDefault creates ListClustersDefault with default headers values

func (*ListClustersDefault) SetPayload

func (o *ListClustersDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the list clusters default response

func (*ListClustersDefault) SetStatusCode

func (o *ListClustersDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list clusters default response

func (*ListClustersDefault) WithPayload

func (o *ListClustersDefault) WithPayload(payload *models.Error) *ListClustersDefault

WithPayload adds the payload to the list clusters default response

func (*ListClustersDefault) WithStatusCode

func (o *ListClustersDefault) WithStatusCode(code int) *ListClustersDefault

WithStatusCode adds the status to the list clusters default response

func (*ListClustersDefault) WriteResponse

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

WriteResponse to the client

type ListClustersHandler

type ListClustersHandler interface {
	Handle(ListClustersParams, *models.Principal) middleware.Responder
}

ListClustersHandler interface for that can handle valid list clusters params

type ListClustersHandlerFunc

type ListClustersHandlerFunc func(ListClustersParams, *models.Principal) middleware.Responder

ListClustersHandlerFunc turns a function with the right signature into a list clusters handler

func (ListClustersHandlerFunc) Handle

Handle executing the request and returning a response

type ListClustersOK

type ListClustersOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Kluster `json:"body,omitempty"`
}

ListClustersOK OK

swagger:response listClustersOK

func NewListClustersOK

func NewListClustersOK() *ListClustersOK

NewListClustersOK creates ListClustersOK with default headers values

func (*ListClustersOK) SetPayload

func (o *ListClustersOK) SetPayload(payload []*models.Kluster)

SetPayload sets the payload to the list clusters o k response

func (*ListClustersOK) WithPayload

func (o *ListClustersOK) WithPayload(payload []*models.Kluster) *ListClustersOK

WithPayload adds the payload to the list clusters o k response

func (*ListClustersOK) WriteResponse

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

WriteResponse to the client

type ListClustersParams

type ListClustersParams struct {

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

ListClustersParams contains all the bound params for the list clusters operation typically these are obtained from a http.Request

swagger:parameters ListClusters

func NewListClustersParams

func NewListClustersParams() ListClustersParams

NewListClustersParams creates a new ListClustersParams object with the default values initialized.

func (*ListClustersParams) BindRequest

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

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

ListClustersURL generates an URL for the list clusters operation

func (*ListClustersURL) Build

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

Build a url path and query string

func (*ListClustersURL) BuildFull

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

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

func (*ListClustersURL) Must

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

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

func (*ListClustersURL) SetBasePath

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

func (o *ListClustersURL) String() string

String returns the string representation of the path with query string

func (*ListClustersURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListClustersURL) WithBasePath

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

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 ShowCluster

type ShowCluster struct {
	Context *middleware.Context
	Handler ShowClusterHandler
}

ShowCluster swagger:route GET /api/v1/clusters/{name} showCluster

Show the specified cluser

func NewShowCluster

func NewShowCluster(ctx *middleware.Context, handler ShowClusterHandler) *ShowCluster

NewShowCluster creates a new http.Handler for the show cluster operation

func (*ShowCluster) ServeHTTP

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

type ShowClusterDefault

type ShowClusterDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

ShowClusterDefault Error

swagger:response showClusterDefault

func NewShowClusterDefault

func NewShowClusterDefault(code int) *ShowClusterDefault

NewShowClusterDefault creates ShowClusterDefault with default headers values

func (*ShowClusterDefault) SetPayload

func (o *ShowClusterDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the show cluster default response

func (*ShowClusterDefault) SetStatusCode

func (o *ShowClusterDefault) SetStatusCode(code int)

SetStatusCode sets the status to the show cluster default response

func (*ShowClusterDefault) WithPayload

func (o *ShowClusterDefault) WithPayload(payload *models.Error) *ShowClusterDefault

WithPayload adds the payload to the show cluster default response

func (*ShowClusterDefault) WithStatusCode

func (o *ShowClusterDefault) WithStatusCode(code int) *ShowClusterDefault

WithStatusCode adds the status to the show cluster default response

func (*ShowClusterDefault) WriteResponse

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

WriteResponse to the client

type ShowClusterHandler

type ShowClusterHandler interface {
	Handle(ShowClusterParams, *models.Principal) middleware.Responder
}

ShowClusterHandler interface for that can handle valid show cluster params

type ShowClusterHandlerFunc

type ShowClusterHandlerFunc func(ShowClusterParams, *models.Principal) middleware.Responder

ShowClusterHandlerFunc turns a function with the right signature into a show cluster handler

func (ShowClusterHandlerFunc) Handle

Handle executing the request and returning a response

type ShowClusterOK

type ShowClusterOK struct {

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

ShowClusterOK OK

swagger:response showClusterOK

func NewShowClusterOK

func NewShowClusterOK() *ShowClusterOK

NewShowClusterOK creates ShowClusterOK with default headers values

func (*ShowClusterOK) SetPayload

func (o *ShowClusterOK) SetPayload(payload *models.Kluster)

SetPayload sets the payload to the show cluster o k response

func (*ShowClusterOK) WithPayload

func (o *ShowClusterOK) WithPayload(payload *models.Kluster) *ShowClusterOK

WithPayload adds the payload to the show cluster o k response

func (*ShowClusterOK) WriteResponse

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

WriteResponse to the client

type ShowClusterParams

type ShowClusterParams struct {

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

	/*
	  Required: true
	  Unique: true
	  In: path
	*/
	Name string
}

ShowClusterParams contains all the bound params for the show cluster operation typically these are obtained from a http.Request

swagger:parameters ShowCluster

func NewShowClusterParams

func NewShowClusterParams() ShowClusterParams

NewShowClusterParams creates a new ShowClusterParams object with the default values initialized.

func (*ShowClusterParams) BindRequest

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

type ShowClusterURL struct {
	Name string
	// contains filtered or unexported fields
}

ShowClusterURL generates an URL for the show cluster operation

func (*ShowClusterURL) Build

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

Build a url path and query string

func (*ShowClusterURL) BuildFull

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

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

func (*ShowClusterURL) Must

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

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

func (*ShowClusterURL) SetBasePath

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

func (o *ShowClusterURL) String() string

String returns the string representation of the path with query string

func (*ShowClusterURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ShowClusterURL) WithBasePath

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

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 TerminateCluster

type TerminateCluster struct {
	Context *middleware.Context
	Handler TerminateClusterHandler
}

TerminateCluster swagger:route DELETE /api/v1/clusters/{name} terminateCluster

Terminate the specified cluster

func NewTerminateCluster

func NewTerminateCluster(ctx *middleware.Context, handler TerminateClusterHandler) *TerminateCluster

NewTerminateCluster creates a new http.Handler for the terminate cluster operation

func (*TerminateCluster) ServeHTTP

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

type TerminateClusterAccepted

type TerminateClusterAccepted struct {
}

TerminateClusterAccepted OK

swagger:response terminateClusterAccepted

func NewTerminateClusterAccepted

func NewTerminateClusterAccepted() *TerminateClusterAccepted

NewTerminateClusterAccepted creates TerminateClusterAccepted with default headers values

func (*TerminateClusterAccepted) WriteResponse

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

WriteResponse to the client

type TerminateClusterDefault

type TerminateClusterDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

TerminateClusterDefault Error

swagger:response terminateClusterDefault

func NewTerminateClusterDefault

func NewTerminateClusterDefault(code int) *TerminateClusterDefault

NewTerminateClusterDefault creates TerminateClusterDefault with default headers values

func (*TerminateClusterDefault) SetPayload

func (o *TerminateClusterDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the terminate cluster default response

func (*TerminateClusterDefault) SetStatusCode

func (o *TerminateClusterDefault) SetStatusCode(code int)

SetStatusCode sets the status to the terminate cluster default response

func (*TerminateClusterDefault) WithPayload

func (o *TerminateClusterDefault) WithPayload(payload *models.Error) *TerminateClusterDefault

WithPayload adds the payload to the terminate cluster default response

func (*TerminateClusterDefault) WithStatusCode

func (o *TerminateClusterDefault) WithStatusCode(code int) *TerminateClusterDefault

WithStatusCode adds the status to the terminate cluster default response

func (*TerminateClusterDefault) WriteResponse

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

WriteResponse to the client

type TerminateClusterHandler

type TerminateClusterHandler interface {
	Handle(TerminateClusterParams, *models.Principal) middleware.Responder
}

TerminateClusterHandler interface for that can handle valid terminate cluster params

type TerminateClusterHandlerFunc

type TerminateClusterHandlerFunc func(TerminateClusterParams, *models.Principal) middleware.Responder

TerminateClusterHandlerFunc turns a function with the right signature into a terminate cluster handler

func (TerminateClusterHandlerFunc) Handle

Handle executing the request and returning a response

type TerminateClusterParams

type TerminateClusterParams struct {

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

	/*
	  Required: true
	  Unique: true
	  In: path
	*/
	Name string
}

TerminateClusterParams contains all the bound params for the terminate cluster operation typically these are obtained from a http.Request

swagger:parameters TerminateCluster

func NewTerminateClusterParams

func NewTerminateClusterParams() TerminateClusterParams

NewTerminateClusterParams creates a new TerminateClusterParams object with the default values initialized.

func (*TerminateClusterParams) BindRequest

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

type TerminateClusterURL struct {
	Name string
	// contains filtered or unexported fields
}

TerminateClusterURL generates an URL for the terminate cluster operation

func (*TerminateClusterURL) Build

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

Build a url path and query string

func (*TerminateClusterURL) BuildFull

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

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

func (*TerminateClusterURL) Must

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

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

func (*TerminateClusterURL) SetBasePath

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

func (o *TerminateClusterURL) String() string

String returns the string representation of the path with query string

func (*TerminateClusterURL) StringFull

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

StringFull returns the string representation of a complete url

func (*TerminateClusterURL) WithBasePath

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

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 UpdateCluster

type UpdateCluster struct {
	Context *middleware.Context
	Handler UpdateClusterHandler
}

UpdateCluster swagger:route PUT /api/v1/clusters/{name} updateCluster

Update the specified cluser

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 UpdateClusterDefault

type UpdateClusterDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

UpdateClusterDefault Error

swagger:response updateClusterDefault

func NewUpdateClusterDefault

func NewUpdateClusterDefault(code int) *UpdateClusterDefault

NewUpdateClusterDefault creates UpdateClusterDefault with default headers values

func (*UpdateClusterDefault) SetPayload

func (o *UpdateClusterDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the update cluster default response

func (*UpdateClusterDefault) SetStatusCode

func (o *UpdateClusterDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update cluster default response

func (*UpdateClusterDefault) WithPayload

func (o *UpdateClusterDefault) WithPayload(payload *models.Error) *UpdateClusterDefault

WithPayload adds the payload to the update cluster default response

func (*UpdateClusterDefault) WithStatusCode

func (o *UpdateClusterDefault) WithStatusCode(code int) *UpdateClusterDefault

WithStatusCode adds the status to the update cluster default response

func (*UpdateClusterDefault) WriteResponse

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

WriteResponse to the client

type UpdateClusterHandler

type UpdateClusterHandler interface {
	Handle(UpdateClusterParams, *models.Principal) middleware.Responder
}

UpdateClusterHandler interface for that can handle valid update cluster params

type UpdateClusterHandlerFunc

type UpdateClusterHandlerFunc func(UpdateClusterParams, *models.Principal) 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 UpdateClusterOK

type UpdateClusterOK struct {

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

UpdateClusterOK OK

swagger:response updateClusterOK

func NewUpdateClusterOK

func NewUpdateClusterOK() *UpdateClusterOK

NewUpdateClusterOK creates UpdateClusterOK with default headers values

func (*UpdateClusterOK) SetPayload

func (o *UpdateClusterOK) SetPayload(payload *models.Kluster)

SetPayload sets the payload to the update cluster o k response

func (*UpdateClusterOK) WithPayload

func (o *UpdateClusterOK) WithPayload(payload *models.Kluster) *UpdateClusterOK

WithPayload adds the payload to the update cluster o k response

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:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body *models.Kluster
	/*
	  Required: true
	  Unique: true
	  In: path
	*/
	Name 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 {
	Name 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

Jump to

Keyboard shortcuts

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