operations

package
v0.0.0-...-ca399ba Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetDriverEndpoint

type GetDriverEndpoint struct {
	Context *middleware.Context
	Handler GetDriverEndpointHandler
}

GetDriverEndpoint swagger:route GET /driver_endpoints/{driver_endpoint_id} getDriverEndpoint

Gets details for a specific driver endpoint

func NewGetDriverEndpoint

func NewGetDriverEndpoint(ctx *middleware.Context, handler GetDriverEndpointHandler) *GetDriverEndpoint

NewGetDriverEndpoint creates a new http.Handler for the get driver endpoint operation

func (*GetDriverEndpoint) ServeHTTP

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

type GetDriverEndpointHandler

type GetDriverEndpointHandler interface {
	Handle(GetDriverEndpointParams, interface{}) middleware.Responder
}

GetDriverEndpointHandler interface for that can handle valid get driver endpoint params

type GetDriverEndpointHandlerFunc

type GetDriverEndpointHandlerFunc func(GetDriverEndpointParams, interface{}) middleware.Responder

GetDriverEndpointHandlerFunc turns a function with the right signature into a get driver endpoint handler

func (GetDriverEndpointHandlerFunc) Handle

func (fn GetDriverEndpointHandlerFunc) Handle(params GetDriverEndpointParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetDriverEndpointInternalServerError

type GetDriverEndpointInternalServerError struct {

	// In: body
	Payload string `json:"body,omitempty"`
}

GetDriverEndpointInternalServerError Unexpected error

swagger:response getDriverEndpointInternalServerError

func NewGetDriverEndpointInternalServerError

func NewGetDriverEndpointInternalServerError() *GetDriverEndpointInternalServerError

NewGetDriverEndpointInternalServerError creates GetDriverEndpointInternalServerError with default headers values

func (*GetDriverEndpointInternalServerError) SetPayload

func (o *GetDriverEndpointInternalServerError) SetPayload(payload string)

SetPayload sets the payload to the get driver endpoint internal server error response

func (*GetDriverEndpointInternalServerError) WithPayload

WithPayload adds the payload to the get driver endpoint internal server error response

func (*GetDriverEndpointInternalServerError) WriteResponse

WriteResponse to the client

type GetDriverEndpointNotFound

type GetDriverEndpointNotFound struct {
}

GetDriverEndpointNotFound Not Found

swagger:response getDriverEndpointNotFound

func NewGetDriverEndpointNotFound

func NewGetDriverEndpointNotFound() *GetDriverEndpointNotFound

NewGetDriverEndpointNotFound creates GetDriverEndpointNotFound with default headers values

func (*GetDriverEndpointNotFound) WriteResponse

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

WriteResponse to the client

type GetDriverEndpointOK

type GetDriverEndpointOK struct {

	// In: body
	Payload *genmodel.DriverEndpoint `json:"body,omitempty"`
}

GetDriverEndpointOK OK

swagger:response getDriverEndpointOK

func NewGetDriverEndpointOK

func NewGetDriverEndpointOK() *GetDriverEndpointOK

NewGetDriverEndpointOK creates GetDriverEndpointOK with default headers values

func (*GetDriverEndpointOK) SetPayload

func (o *GetDriverEndpointOK) SetPayload(payload *genmodel.DriverEndpoint)

SetPayload sets the payload to the get driver endpoint o k response

func (*GetDriverEndpointOK) WithPayload

WithPayload adds the payload to the get driver endpoint o k response

func (*GetDriverEndpointOK) WriteResponse

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

WriteResponse to the client

type GetDriverEndpointParams

type GetDriverEndpointParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Driver Endpoint ID
	  Required: true
	  In: path
	*/
	DriverEndpointID string
}

GetDriverEndpointParams contains all the bound params for the get driver endpoint operation typically these are obtained from a http.Request

swagger:parameters getDriverEndpoint

func NewGetDriverEndpointParams

func NewGetDriverEndpointParams() GetDriverEndpointParams

NewGetDriverEndpointParams creates a new GetDriverEndpointParams object with the default values initialized.

func (*GetDriverEndpointParams) BindRequest

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

type GetDriverEndpoints struct {
	Context *middleware.Context
	Handler GetDriverEndpointsHandler
}

GetDriverEndpoints swagger:route GET /driver_endpoints getDriverEndpoints

Lists all registered driver endpoints

func NewGetDriverEndpoints

func NewGetDriverEndpoints(ctx *middleware.Context, handler GetDriverEndpointsHandler) *GetDriverEndpoints

NewGetDriverEndpoints creates a new http.Handler for the get driver endpoints operation

func (*GetDriverEndpoints) ServeHTTP

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

type GetDriverEndpointsHandler

type GetDriverEndpointsHandler interface {
	Handle(interface{}) middleware.Responder
}

GetDriverEndpointsHandler interface for that can handle valid get driver endpoints params

type GetDriverEndpointsHandlerFunc

type GetDriverEndpointsHandlerFunc func(interface{}) middleware.Responder

GetDriverEndpointsHandlerFunc turns a function with the right signature into a get driver endpoints handler

func (GetDriverEndpointsHandlerFunc) Handle

func (fn GetDriverEndpointsHandlerFunc) Handle(principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetDriverEndpointsInternalServerError

type GetDriverEndpointsInternalServerError struct {

	// In: body
	Payload string `json:"body,omitempty"`
}

GetDriverEndpointsInternalServerError Unexpected error

swagger:response getDriverEndpointsInternalServerError

func NewGetDriverEndpointsInternalServerError

func NewGetDriverEndpointsInternalServerError() *GetDriverEndpointsInternalServerError

NewGetDriverEndpointsInternalServerError creates GetDriverEndpointsInternalServerError with default headers values

func (*GetDriverEndpointsInternalServerError) SetPayload

func (o *GetDriverEndpointsInternalServerError) SetPayload(payload string)

SetPayload sets the payload to the get driver endpoints internal server error response

func (*GetDriverEndpointsInternalServerError) WithPayload

WithPayload adds the payload to the get driver endpoints internal server error response

func (*GetDriverEndpointsInternalServerError) WriteResponse

WriteResponse to the client

type GetDriverEndpointsOK

type GetDriverEndpointsOK struct {

	// In: body
	Payload []*genmodel.DriverEndpoint `json:"body,omitempty"`
}

GetDriverEndpointsOK OK

swagger:response getDriverEndpointsOK

func NewGetDriverEndpointsOK

func NewGetDriverEndpointsOK() *GetDriverEndpointsOK

NewGetDriverEndpointsOK creates GetDriverEndpointsOK with default headers values

func (*GetDriverEndpointsOK) SetPayload

func (o *GetDriverEndpointsOK) SetPayload(payload []*genmodel.DriverEndpoint)

SetPayload sets the payload to the get driver endpoints o k response

func (*GetDriverEndpointsOK) WithPayload

WithPayload adds the payload to the get driver endpoints o k response

func (*GetDriverEndpointsOK) WriteResponse

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

WriteResponse to the client

type GetInfo

type GetInfo struct {
	Context *middleware.Context
	Handler GetInfoHandler
}

GetInfo swagger:route GET /info getInfo

Gets information about the USB.

func NewGetInfo

func NewGetInfo(ctx *middleware.Context, handler GetInfoHandler) *GetInfo

NewGetInfo creates a new http.Handler for the get info operation

func (*GetInfo) ServeHTTP

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

type GetInfoHandler

type GetInfoHandler interface {
	Handle(interface{}) middleware.Responder
}

GetInfoHandler interface for that can handle valid get info params

type GetInfoHandlerFunc

type GetInfoHandlerFunc func(interface{}) middleware.Responder

GetInfoHandlerFunc turns a function with the right signature into a get info handler

func (GetInfoHandlerFunc) Handle

func (fn GetInfoHandlerFunc) Handle(principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetInfoInternalServerError

type GetInfoInternalServerError struct {

	// In: body
	Payload string `json:"body,omitempty"`
}

GetInfoInternalServerError Unexpected error

swagger:response getInfoInternalServerError

func NewGetInfoInternalServerError

func NewGetInfoInternalServerError() *GetInfoInternalServerError

NewGetInfoInternalServerError creates GetInfoInternalServerError with default headers values

func (*GetInfoInternalServerError) SetPayload

func (o *GetInfoInternalServerError) SetPayload(payload string)

SetPayload sets the payload to the get info internal server error response

func (*GetInfoInternalServerError) WithPayload

WithPayload adds the payload to the get info internal server error response

func (*GetInfoInternalServerError) WriteResponse

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

WriteResponse to the client

type GetInfoOK

type GetInfoOK struct {

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

GetInfoOK Successful response

swagger:response getInfoOK

func NewGetInfoOK

func NewGetInfoOK() *GetInfoOK

NewGetInfoOK creates GetInfoOK with default headers values

func (*GetInfoOK) SetPayload

func (o *GetInfoOK) SetPayload(payload *genmodel.Info)

SetPayload sets the payload to the get info o k response

func (*GetInfoOK) WithPayload

func (o *GetInfoOK) WithPayload(payload *genmodel.Info) *GetInfoOK

WithPayload adds the payload to the get info o k response

func (*GetInfoOK) WriteResponse

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

WriteResponse to the client

type PingDriverEndpoint

type PingDriverEndpoint struct {
	Context *middleware.Context
	Handler PingDriverEndpointHandler
}

PingDriverEndpoint swagger:route GET /driver_endpoint/{driver_endpoint_id}/ping pingDriverEndpoint

Pings a driver endpoint to determine basic health status

func NewPingDriverEndpoint

func NewPingDriverEndpoint(ctx *middleware.Context, handler PingDriverEndpointHandler) *PingDriverEndpoint

NewPingDriverEndpoint creates a new http.Handler for the ping driver endpoint operation

func (*PingDriverEndpoint) ServeHTTP

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

type PingDriverEndpointHandler

type PingDriverEndpointHandler interface {
	Handle(PingDriverEndpointParams, interface{}) middleware.Responder
}

PingDriverEndpointHandler interface for that can handle valid ping driver endpoint params

type PingDriverEndpointHandlerFunc

type PingDriverEndpointHandlerFunc func(PingDriverEndpointParams, interface{}) middleware.Responder

PingDriverEndpointHandlerFunc turns a function with the right signature into a ping driver endpoint handler

func (PingDriverEndpointHandlerFunc) Handle

func (fn PingDriverEndpointHandlerFunc) Handle(params PingDriverEndpointParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type PingDriverEndpointInternalServerError

type PingDriverEndpointInternalServerError struct {

	// In: body
	Payload string `json:"body,omitempty"`
}

PingDriverEndpointInternalServerError Unexpected error

swagger:response pingDriverEndpointInternalServerError

func NewPingDriverEndpointInternalServerError

func NewPingDriverEndpointInternalServerError() *PingDriverEndpointInternalServerError

NewPingDriverEndpointInternalServerError creates PingDriverEndpointInternalServerError with default headers values

func (*PingDriverEndpointInternalServerError) SetPayload

func (o *PingDriverEndpointInternalServerError) SetPayload(payload string)

SetPayload sets the payload to the ping driver endpoint internal server error response

func (*PingDriverEndpointInternalServerError) WithPayload

WithPayload adds the payload to the ping driver endpoint internal server error response

func (*PingDriverEndpointInternalServerError) WriteResponse

WriteResponse to the client

type PingDriverEndpointNotFound

type PingDriverEndpointNotFound struct {
}

PingDriverEndpointNotFound Not Found

swagger:response pingDriverEndpointNotFound

func NewPingDriverEndpointNotFound

func NewPingDriverEndpointNotFound() *PingDriverEndpointNotFound

NewPingDriverEndpointNotFound creates PingDriverEndpointNotFound with default headers values

func (*PingDriverEndpointNotFound) WriteResponse

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

WriteResponse to the client

type PingDriverEndpointOK

type PingDriverEndpointOK struct {
}

PingDriverEndpointOK OK

swagger:response pingDriverEndpointOK

func NewPingDriverEndpointOK

func NewPingDriverEndpointOK() *PingDriverEndpointOK

NewPingDriverEndpointOK creates PingDriverEndpointOK with default headers values

func (*PingDriverEndpointOK) WriteResponse

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

WriteResponse to the client

type PingDriverEndpointParams

type PingDriverEndpointParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Driver Endpoint ID
	  Required: true
	  In: path
	*/
	DriverEndpointID string
}

PingDriverEndpointParams contains all the bound params for the ping driver endpoint operation typically these are obtained from a http.Request

swagger:parameters pingDriverEndpoint

func NewPingDriverEndpointParams

func NewPingDriverEndpointParams() PingDriverEndpointParams

NewPingDriverEndpointParams creates a new PingDriverEndpointParams object with the default values initialized.

func (*PingDriverEndpointParams) 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 RegisterDriverEndpoint

type RegisterDriverEndpoint struct {
	Context *middleware.Context
	Handler RegisterDriverEndpointHandler
}

RegisterDriverEndpoint swagger:route POST /driver_endpoints registerDriverEndpoint

Registers a driver endpoint with the USB

func NewRegisterDriverEndpoint

func NewRegisterDriverEndpoint(ctx *middleware.Context, handler RegisterDriverEndpointHandler) *RegisterDriverEndpoint

NewRegisterDriverEndpoint creates a new http.Handler for the register driver endpoint operation

func (*RegisterDriverEndpoint) ServeHTTP

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

type RegisterDriverEndpointConflict

type RegisterDriverEndpointConflict struct {

	// In: body
	Payload string `json:"body,omitempty"`
}

RegisterDriverEndpointConflict Conflict

swagger:response registerDriverEndpointConflict

func NewRegisterDriverEndpointConflict

func NewRegisterDriverEndpointConflict() *RegisterDriverEndpointConflict

NewRegisterDriverEndpointConflict creates RegisterDriverEndpointConflict with default headers values

func (*RegisterDriverEndpointConflict) SetPayload

func (o *RegisterDriverEndpointConflict) SetPayload(payload string)

SetPayload sets the payload to the register driver endpoint conflict response

func (*RegisterDriverEndpointConflict) WithPayload

WithPayload adds the payload to the register driver endpoint conflict response

func (*RegisterDriverEndpointConflict) WriteResponse

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

WriteResponse to the client

type RegisterDriverEndpointCreated

type RegisterDriverEndpointCreated struct {

	// In: body
	Payload *genmodel.DriverEndpoint `json:"body,omitempty"`
}

RegisterDriverEndpointCreated Driver endpoint registered

swagger:response registerDriverEndpointCreated

func NewRegisterDriverEndpointCreated

func NewRegisterDriverEndpointCreated() *RegisterDriverEndpointCreated

NewRegisterDriverEndpointCreated creates RegisterDriverEndpointCreated with default headers values

func (*RegisterDriverEndpointCreated) SetPayload

func (o *RegisterDriverEndpointCreated) SetPayload(payload *genmodel.DriverEndpoint)

SetPayload sets the payload to the register driver endpoint created response

func (*RegisterDriverEndpointCreated) WithPayload

WithPayload adds the payload to the register driver endpoint created response

func (*RegisterDriverEndpointCreated) WriteResponse

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

WriteResponse to the client

type RegisterDriverEndpointHandler

type RegisterDriverEndpointHandler interface {
	Handle(RegisterDriverEndpointParams, interface{}) middleware.Responder
}

RegisterDriverEndpointHandler interface for that can handle valid register driver endpoint params

type RegisterDriverEndpointHandlerFunc

type RegisterDriverEndpointHandlerFunc func(RegisterDriverEndpointParams, interface{}) middleware.Responder

RegisterDriverEndpointHandlerFunc turns a function with the right signature into a register driver endpoint handler

func (RegisterDriverEndpointHandlerFunc) Handle

Handle executing the request and returning a response

type RegisterDriverEndpointInternalServerError

type RegisterDriverEndpointInternalServerError struct {

	// In: body
	Payload string `json:"body,omitempty"`
}

RegisterDriverEndpointInternalServerError Unexpected error

swagger:response registerDriverEndpointInternalServerError

func NewRegisterDriverEndpointInternalServerError

func NewRegisterDriverEndpointInternalServerError() *RegisterDriverEndpointInternalServerError

NewRegisterDriverEndpointInternalServerError creates RegisterDriverEndpointInternalServerError with default headers values

func (*RegisterDriverEndpointInternalServerError) SetPayload

func (o *RegisterDriverEndpointInternalServerError) SetPayload(payload string)

SetPayload sets the payload to the register driver endpoint internal server error response

func (*RegisterDriverEndpointInternalServerError) WithPayload

WithPayload adds the payload to the register driver endpoint internal server error response

func (*RegisterDriverEndpointInternalServerError) WriteResponse

WriteResponse to the client

type RegisterDriverEndpointParams

type RegisterDriverEndpointParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*An endpoint to be registered with the USB
	  Required: true
	  In: body
	*/
	DriverEndpoint *genmodel.DriverEndpoint
}

RegisterDriverEndpointParams contains all the bound params for the register driver endpoint operation typically these are obtained from a http.Request

swagger:parameters registerDriverEndpoint

func NewRegisterDriverEndpointParams

func NewRegisterDriverEndpointParams() RegisterDriverEndpointParams

NewRegisterDriverEndpointParams creates a new RegisterDriverEndpointParams object with the default values initialized.

func (*RegisterDriverEndpointParams) 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 UnregisterDriverInstance

type UnregisterDriverInstance struct {
	Context *middleware.Context
	Handler UnregisterDriverInstanceHandler
}

UnregisterDriverInstance swagger:route DELETE /driver_endpoints/{driver_endpoint_id} unregisterDriverInstance

Unregisters a driver instance

func NewUnregisterDriverInstance

func NewUnregisterDriverInstance(ctx *middleware.Context, handler UnregisterDriverInstanceHandler) *UnregisterDriverInstance

NewUnregisterDriverInstance creates a new http.Handler for the unregister driver instance operation

func (*UnregisterDriverInstance) ServeHTTP

type UnregisterDriverInstanceHandler

type UnregisterDriverInstanceHandler interface {
	Handle(UnregisterDriverInstanceParams, interface{}) middleware.Responder
}

UnregisterDriverInstanceHandler interface for that can handle valid unregister driver instance params

type UnregisterDriverInstanceHandlerFunc

type UnregisterDriverInstanceHandlerFunc func(UnregisterDriverInstanceParams, interface{}) middleware.Responder

UnregisterDriverInstanceHandlerFunc turns a function with the right signature into a unregister driver instance handler

func (UnregisterDriverInstanceHandlerFunc) Handle

Handle executing the request and returning a response

type UnregisterDriverInstanceInternalServerError

type UnregisterDriverInstanceInternalServerError struct {

	// In: body
	Payload string `json:"body,omitempty"`
}

UnregisterDriverInstanceInternalServerError Unexpected error

swagger:response unregisterDriverInstanceInternalServerError

func NewUnregisterDriverInstanceInternalServerError

func NewUnregisterDriverInstanceInternalServerError() *UnregisterDriverInstanceInternalServerError

NewUnregisterDriverInstanceInternalServerError creates UnregisterDriverInstanceInternalServerError with default headers values

func (*UnregisterDriverInstanceInternalServerError) SetPayload

func (o *UnregisterDriverInstanceInternalServerError) SetPayload(payload string)

SetPayload sets the payload to the unregister driver instance internal server error response

func (*UnregisterDriverInstanceInternalServerError) WithPayload

WithPayload adds the payload to the unregister driver instance internal server error response

func (*UnregisterDriverInstanceInternalServerError) WriteResponse

WriteResponse to the client

type UnregisterDriverInstanceNoContent

type UnregisterDriverInstanceNoContent struct {
}

UnregisterDriverInstanceNoContent Driver endpoint unregistered

swagger:response unregisterDriverInstanceNoContent

func NewUnregisterDriverInstanceNoContent

func NewUnregisterDriverInstanceNoContent() *UnregisterDriverInstanceNoContent

NewUnregisterDriverInstanceNoContent creates UnregisterDriverInstanceNoContent with default headers values

func (*UnregisterDriverInstanceNoContent) WriteResponse

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

WriteResponse to the client

type UnregisterDriverInstanceNotFound

type UnregisterDriverInstanceNotFound struct {
}

UnregisterDriverInstanceNotFound Not Found

swagger:response unregisterDriverInstanceNotFound

func NewUnregisterDriverInstanceNotFound

func NewUnregisterDriverInstanceNotFound() *UnregisterDriverInstanceNotFound

NewUnregisterDriverInstanceNotFound creates UnregisterDriverInstanceNotFound with default headers values

func (*UnregisterDriverInstanceNotFound) WriteResponse

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

WriteResponse to the client

type UnregisterDriverInstanceParams

type UnregisterDriverInstanceParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Driver Endpoint ID
	  Required: true
	  In: path
	*/
	DriverEndpointID string
}

UnregisterDriverInstanceParams contains all the bound params for the unregister driver instance operation typically these are obtained from a http.Request

swagger:parameters unregisterDriverInstance

func NewUnregisterDriverInstanceParams

func NewUnregisterDriverInstanceParams() UnregisterDriverInstanceParams

NewUnregisterDriverInstanceParams creates a new UnregisterDriverInstanceParams object with the default values initialized.

func (*UnregisterDriverInstanceParams) 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 UpdateCatalog

type UpdateCatalog struct {
	Context *middleware.Context
	Handler UpdateCatalogHandler
}

UpdateCatalog swagger:route POST /update_catalog updateCatalog

Updates Cloud Foundry's service catalog.

func NewUpdateCatalog

func NewUpdateCatalog(ctx *middleware.Context, handler UpdateCatalogHandler) *UpdateCatalog

NewUpdateCatalog creates a new http.Handler for the update catalog operation

func (*UpdateCatalog) ServeHTTP

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

type UpdateCatalogHandler

type UpdateCatalogHandler interface {
	Handle(interface{}) middleware.Responder
}

UpdateCatalogHandler interface for that can handle valid update catalog params

type UpdateCatalogHandlerFunc

type UpdateCatalogHandlerFunc func(interface{}) middleware.Responder

UpdateCatalogHandlerFunc turns a function with the right signature into a update catalog handler

func (UpdateCatalogHandlerFunc) Handle

func (fn UpdateCatalogHandlerFunc) Handle(principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateCatalogInternalServerError

type UpdateCatalogInternalServerError struct {

	// In: body
	Payload string `json:"body,omitempty"`
}

UpdateCatalogInternalServerError Unexpected error

swagger:response updateCatalogInternalServerError

func NewUpdateCatalogInternalServerError

func NewUpdateCatalogInternalServerError() *UpdateCatalogInternalServerError

NewUpdateCatalogInternalServerError creates UpdateCatalogInternalServerError with default headers values

func (*UpdateCatalogInternalServerError) SetPayload

func (o *UpdateCatalogInternalServerError) SetPayload(payload string)

SetPayload sets the payload to the update catalog internal server error response

func (*UpdateCatalogInternalServerError) WithPayload

WithPayload adds the payload to the update catalog internal server error response

func (*UpdateCatalogInternalServerError) WriteResponse

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

WriteResponse to the client

type UpdateCatalogOK

type UpdateCatalogOK struct {
}

UpdateCatalogOK Successful response

swagger:response updateCatalogOK

func NewUpdateCatalogOK

func NewUpdateCatalogOK() *UpdateCatalogOK

NewUpdateCatalogOK creates UpdateCatalogOK with default headers values

func (*UpdateCatalogOK) WriteResponse

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

WriteResponse to the client

type UpdateDriverEndpoint

type UpdateDriverEndpoint struct {
	Context *middleware.Context
	Handler UpdateDriverEndpointHandler
}

UpdateDriverEndpoint swagger:route PUT /driver_endpoints/{driver_endpoint_id} updateDriverEndpoint

Update a driver endpoint

func NewUpdateDriverEndpoint

func NewUpdateDriverEndpoint(ctx *middleware.Context, handler UpdateDriverEndpointHandler) *UpdateDriverEndpoint

NewUpdateDriverEndpoint creates a new http.Handler for the update driver endpoint operation

func (*UpdateDriverEndpoint) ServeHTTP

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

type UpdateDriverEndpointConflict

type UpdateDriverEndpointConflict struct {

	// In: body
	Payload string `json:"body,omitempty"`
}

UpdateDriverEndpointConflict Conflict

swagger:response updateDriverEndpointConflict

func NewUpdateDriverEndpointConflict

func NewUpdateDriverEndpointConflict() *UpdateDriverEndpointConflict

NewUpdateDriverEndpointConflict creates UpdateDriverEndpointConflict with default headers values

func (*UpdateDriverEndpointConflict) SetPayload

func (o *UpdateDriverEndpointConflict) SetPayload(payload string)

SetPayload sets the payload to the update driver endpoint conflict response

func (*UpdateDriverEndpointConflict) WithPayload

WithPayload adds the payload to the update driver endpoint conflict response

func (*UpdateDriverEndpointConflict) WriteResponse

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

WriteResponse to the client

type UpdateDriverEndpointHandler

type UpdateDriverEndpointHandler interface {
	Handle(UpdateDriverEndpointParams, interface{}) middleware.Responder
}

UpdateDriverEndpointHandler interface for that can handle valid update driver endpoint params

type UpdateDriverEndpointHandlerFunc

type UpdateDriverEndpointHandlerFunc func(UpdateDriverEndpointParams, interface{}) middleware.Responder

UpdateDriverEndpointHandlerFunc turns a function with the right signature into a update driver endpoint handler

func (UpdateDriverEndpointHandlerFunc) Handle

func (fn UpdateDriverEndpointHandlerFunc) Handle(params UpdateDriverEndpointParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateDriverEndpointInternalServerError

type UpdateDriverEndpointInternalServerError struct {

	// In: body
	Payload string `json:"body,omitempty"`
}

UpdateDriverEndpointInternalServerError Unexpected error

swagger:response updateDriverEndpointInternalServerError

func NewUpdateDriverEndpointInternalServerError

func NewUpdateDriverEndpointInternalServerError() *UpdateDriverEndpointInternalServerError

NewUpdateDriverEndpointInternalServerError creates UpdateDriverEndpointInternalServerError with default headers values

func (*UpdateDriverEndpointInternalServerError) SetPayload

func (o *UpdateDriverEndpointInternalServerError) SetPayload(payload string)

SetPayload sets the payload to the update driver endpoint internal server error response

func (*UpdateDriverEndpointInternalServerError) WithPayload

WithPayload adds the payload to the update driver endpoint internal server error response

func (*UpdateDriverEndpointInternalServerError) WriteResponse

WriteResponse to the client

type UpdateDriverEndpointNotFound

type UpdateDriverEndpointNotFound struct {
}

UpdateDriverEndpointNotFound Not Found

swagger:response updateDriverEndpointNotFound

func NewUpdateDriverEndpointNotFound

func NewUpdateDriverEndpointNotFound() *UpdateDriverEndpointNotFound

NewUpdateDriverEndpointNotFound creates UpdateDriverEndpointNotFound with default headers values

func (*UpdateDriverEndpointNotFound) WriteResponse

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

WriteResponse to the client

type UpdateDriverEndpointOK

type UpdateDriverEndpointOK struct {

	// In: body
	Payload *genmodel.DriverEndpoint `json:"body,omitempty"`
}

UpdateDriverEndpointOK Sucessful response

swagger:response updateDriverEndpointOK

func NewUpdateDriverEndpointOK

func NewUpdateDriverEndpointOK() *UpdateDriverEndpointOK

NewUpdateDriverEndpointOK creates UpdateDriverEndpointOK with default headers values

func (*UpdateDriverEndpointOK) SetPayload

func (o *UpdateDriverEndpointOK) SetPayload(payload *genmodel.DriverEndpoint)

SetPayload sets the payload to the update driver endpoint o k response

func (*UpdateDriverEndpointOK) WithPayload

WithPayload adds the payload to the update driver endpoint o k response

func (*UpdateDriverEndpointOK) WriteResponse

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

WriteResponse to the client

type UpdateDriverEndpointParams

type UpdateDriverEndpointParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Updated information for an already registered driver endpoint

	  Required: true
	  In: body
	*/
	DriverEndpoint *genmodel.DriverEndpoint
	/*Driver Endpoint ID

	  Required: true
	  In: path
	*/
	DriverEndpointID string
}

UpdateDriverEndpointParams contains all the bound params for the update driver endpoint operation typically these are obtained from a http.Request

swagger:parameters updateDriverEndpoint

func NewUpdateDriverEndpointParams

func NewUpdateDriverEndpointParams() UpdateDriverEndpointParams

NewUpdateDriverEndpointParams creates a new UpdateDriverEndpointParams object with the default values initialized.

func (*UpdateDriverEndpointParams) 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 UsbMgmtAPI

type UsbMgmtAPI struct {

	// 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

	// AuthorizationAuth registers a function that takes a token and returns a principal
	// it performs authentication based on an api key Authorization provided in the header
	AuthorizationAuth func(string) (interface{}, error)

	// GetDriverEndpointHandler sets the operation handler for the get driver endpoint operation
	GetDriverEndpointHandler GetDriverEndpointHandler
	// GetDriverEndpointsHandler sets the operation handler for the get driver endpoints operation
	GetDriverEndpointsHandler GetDriverEndpointsHandler
	// GetInfoHandler sets the operation handler for the get info operation
	GetInfoHandler GetInfoHandler
	// PingDriverEndpointHandler sets the operation handler for the ping driver endpoint operation
	PingDriverEndpointHandler PingDriverEndpointHandler
	// RegisterDriverEndpointHandler sets the operation handler for the register driver endpoint operation
	RegisterDriverEndpointHandler RegisterDriverEndpointHandler
	// UnregisterDriverInstanceHandler sets the operation handler for the unregister driver instance operation
	UnregisterDriverInstanceHandler UnregisterDriverInstanceHandler
	// UpdateCatalogHandler sets the operation handler for the update catalog operation
	UpdateCatalogHandler UpdateCatalogHandler
	// UpdateDriverEndpointHandler sets the operation handler for the update driver endpoint operation
	UpdateDriverEndpointHandler UpdateDriverEndpointHandler

	// 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
}

UsbMgmtAPI Universal Service Broker Management API

func NewUsbMgmtAPI

func NewUsbMgmtAPI(spec *loads.Document) *UsbMgmtAPI

NewUsbMgmtAPI creates a new UsbMgmt instance

func (*UsbMgmtAPI) AuthenticatorsFor

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

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*UsbMgmtAPI) ConsumersFor

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

ConsumersFor gets the consumers for the specified media types

func (*UsbMgmtAPI) DefaultConsumes

func (o *UsbMgmtAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*UsbMgmtAPI) DefaultProduces

func (o *UsbMgmtAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*UsbMgmtAPI) Formats

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

Formats returns the registered string formats

func (*UsbMgmtAPI) HandlerFor

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

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

func (*UsbMgmtAPI) ProducersFor

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

ProducersFor gets the producers for the specified media types

func (*UsbMgmtAPI) RegisterFormat

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

RegisterFormat registers a custom format validator

func (*UsbMgmtAPI) Serve

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

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

ServeErrorFor gets a error handler for a given operation id

func (*UsbMgmtAPI) SetDefaultConsumes

func (o *UsbMgmtAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*UsbMgmtAPI) SetDefaultProduces

func (o *UsbMgmtAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*UsbMgmtAPI) Validate

func (o *UsbMgmtAPI) Validate() error

Validate validates the registrations in the UsbMgmtAPI

Jump to

Keyboard shortcuts

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