drivers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const AddDriverBadRequestCode int = 400

AddDriverBadRequestCode is the HTTP code returned for type AddDriverBadRequest

View Source
const AddDriverCreatedCode int = 201

AddDriverCreatedCode is the HTTP code returned for type AddDriverCreated

View Source
const AddDriverInternalServerErrorCode int = 500

AddDriverInternalServerErrorCode is the HTTP code returned for type AddDriverInternalServerError

View Source
const AddDriverUnauthorizedCode int = 401

AddDriverUnauthorizedCode is the HTTP code returned for type AddDriverUnauthorized

View Source
const DeleteDriverBadRequestCode int = 400

DeleteDriverBadRequestCode is the HTTP code returned for type DeleteDriverBadRequest

View Source
const DeleteDriverInternalServerErrorCode int = 500

DeleteDriverInternalServerErrorCode is the HTTP code returned for type DeleteDriverInternalServerError

View Source
const DeleteDriverNotFoundCode int = 404

DeleteDriverNotFoundCode is the HTTP code returned for type DeleteDriverNotFound

View Source
const DeleteDriverOKCode int = 200

DeleteDriverOKCode is the HTTP code returned for type DeleteDriverOK

View Source
const GetDriverBadRequestCode int = 400

GetDriverBadRequestCode is the HTTP code returned for type GetDriverBadRequest

View Source
const GetDriverInternalServerErrorCode int = 500

GetDriverInternalServerErrorCode is the HTTP code returned for type GetDriverInternalServerError

View Source
const GetDriverNotFoundCode int = 404

GetDriverNotFoundCode is the HTTP code returned for type GetDriverNotFound

View Source
const GetDriverOKCode int = 200

GetDriverOKCode is the HTTP code returned for type GetDriverOK

View Source
const GetDriversInternalServerErrorCode int = 500

GetDriversInternalServerErrorCode is the HTTP code returned for type GetDriversInternalServerError

View Source
const GetDriversOKCode int = 200

GetDriversOKCode is the HTTP code returned for type GetDriversOK

Variables

This section is empty.

Functions

This section is empty.

Types

type AddDriver

type AddDriver struct {
	Context *middleware.Context
	Handler AddDriverHandler
}

AddDriver swagger:route POST /drivers drivers addDriver

Create a new driver

func NewAddDriver

func NewAddDriver(ctx *middleware.Context, handler AddDriverHandler) *AddDriver

NewAddDriver creates a new http.Handler for the add driver operation

func (*AddDriver) ServeHTTP

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

type AddDriverBadRequest

type AddDriverBadRequest struct {

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

AddDriverBadRequest Invalid input

swagger:response addDriverBadRequest

func NewAddDriverBadRequest

func NewAddDriverBadRequest() *AddDriverBadRequest

NewAddDriverBadRequest creates AddDriverBadRequest with default headers values

func (*AddDriverBadRequest) SetPayload

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

SetPayload sets the payload to the add driver bad request response

func (*AddDriverBadRequest) WithPayload

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

WithPayload adds the payload to the add driver bad request response

func (*AddDriverBadRequest) WriteResponse

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

WriteResponse to the client

type AddDriverCreated

type AddDriverCreated struct {

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

AddDriverCreated Driver created

swagger:response addDriverCreated

func NewAddDriverCreated

func NewAddDriverCreated() *AddDriverCreated

NewAddDriverCreated creates AddDriverCreated with default headers values

func (*AddDriverCreated) SetPayload

func (o *AddDriverCreated) SetPayload(payload *models.Driver)

SetPayload sets the payload to the add driver created response

func (*AddDriverCreated) WithPayload

func (o *AddDriverCreated) WithPayload(payload *models.Driver) *AddDriverCreated

WithPayload adds the payload to the add driver created response

func (*AddDriverCreated) WriteResponse

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

WriteResponse to the client

type AddDriverDefault

type AddDriverDefault struct {

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

AddDriverDefault Unknown error

swagger:response addDriverDefault

func NewAddDriverDefault

func NewAddDriverDefault(code int) *AddDriverDefault

NewAddDriverDefault creates AddDriverDefault with default headers values

func (*AddDriverDefault) SetPayload

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

SetPayload sets the payload to the add driver default response

func (*AddDriverDefault) SetStatusCode

func (o *AddDriverDefault) SetStatusCode(code int)

SetStatusCode sets the status to the add driver default response

func (*AddDriverDefault) WithPayload

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

WithPayload adds the payload to the add driver default response

func (*AddDriverDefault) WithStatusCode

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

WithStatusCode adds the status to the add driver default response

func (*AddDriverDefault) WriteResponse

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

WriteResponse to the client

type AddDriverHandler

type AddDriverHandler interface {
	Handle(AddDriverParams, interface{}) middleware.Responder
}

AddDriverHandler interface for that can handle valid add driver params

type AddDriverHandlerFunc

type AddDriverHandlerFunc func(AddDriverParams, interface{}) middleware.Responder

AddDriverHandlerFunc turns a function with the right signature into a add driver handler

func (AddDriverHandlerFunc) Handle

func (fn AddDriverHandlerFunc) Handle(params AddDriverParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type AddDriverInternalServerError

type AddDriverInternalServerError struct {

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

AddDriverInternalServerError Internal server error

swagger:response addDriverInternalServerError

func NewAddDriverInternalServerError

func NewAddDriverInternalServerError() *AddDriverInternalServerError

NewAddDriverInternalServerError creates AddDriverInternalServerError with default headers values

func (*AddDriverInternalServerError) SetPayload

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

SetPayload sets the payload to the add driver internal server error response

func (*AddDriverInternalServerError) WithPayload

WithPayload adds the payload to the add driver internal server error response

func (*AddDriverInternalServerError) WriteResponse

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

WriteResponse to the client

type AddDriverParams

type AddDriverParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*driver object
	  Required: true
	  In: body
	*/
	Body *models.Driver
}

AddDriverParams contains all the bound params for the add driver operation typically these are obtained from a http.Request

swagger:parameters addDriver

func NewAddDriverParams

func NewAddDriverParams() AddDriverParams

NewAddDriverParams creates a new AddDriverParams object with the default values initialized.

func (*AddDriverParams) BindRequest

func (o *AddDriverParams) 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 AddDriverURL

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

AddDriverURL generates an URL for the add driver operation

func (*AddDriverURL) Build

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

Build a url path and query string

func (*AddDriverURL) BuildFull

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

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

func (*AddDriverURL) Must

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

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

func (*AddDriverURL) SetBasePath

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

func (o *AddDriverURL) String() string

String returns the string representation of the path with query string

func (*AddDriverURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AddDriverURL) WithBasePath

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

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 AddDriverUnauthorized

type AddDriverUnauthorized struct {

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

AddDriverUnauthorized Unauthorized Request

swagger:response addDriverUnauthorized

func NewAddDriverUnauthorized

func NewAddDriverUnauthorized() *AddDriverUnauthorized

NewAddDriverUnauthorized creates AddDriverUnauthorized with default headers values

func (*AddDriverUnauthorized) SetPayload

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

SetPayload sets the payload to the add driver unauthorized response

func (*AddDriverUnauthorized) WithPayload

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

WithPayload adds the payload to the add driver unauthorized response

func (*AddDriverUnauthorized) WriteResponse

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

WriteResponse to the client

type DeleteDriver

type DeleteDriver struct {
	Context *middleware.Context
	Handler DeleteDriverHandler
}

DeleteDriver swagger:route DELETE /drivers/{driverName} drivers deleteDriver

Deletes a driver

func NewDeleteDriver

func NewDeleteDriver(ctx *middleware.Context, handler DeleteDriverHandler) *DeleteDriver

NewDeleteDriver creates a new http.Handler for the delete driver operation

func (*DeleteDriver) ServeHTTP

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

type DeleteDriverBadRequest

type DeleteDriverBadRequest struct {

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

DeleteDriverBadRequest Invalid ID supplied

swagger:response deleteDriverBadRequest

func NewDeleteDriverBadRequest

func NewDeleteDriverBadRequest() *DeleteDriverBadRequest

NewDeleteDriverBadRequest creates DeleteDriverBadRequest with default headers values

func (*DeleteDriverBadRequest) SetPayload

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

SetPayload sets the payload to the delete driver bad request response

func (*DeleteDriverBadRequest) WithPayload

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

WithPayload adds the payload to the delete driver bad request response

func (*DeleteDriverBadRequest) WriteResponse

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

WriteResponse to the client

type DeleteDriverDefault

type DeleteDriverDefault struct {

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

DeleteDriverDefault Generic error response

swagger:response deleteDriverDefault

func NewDeleteDriverDefault

func NewDeleteDriverDefault(code int) *DeleteDriverDefault

NewDeleteDriverDefault creates DeleteDriverDefault with default headers values

func (*DeleteDriverDefault) SetPayload

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

SetPayload sets the payload to the delete driver default response

func (*DeleteDriverDefault) SetStatusCode

func (o *DeleteDriverDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete driver default response

func (*DeleteDriverDefault) WithPayload

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

WithPayload adds the payload to the delete driver default response

func (*DeleteDriverDefault) WithStatusCode

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

WithStatusCode adds the status to the delete driver default response

func (*DeleteDriverDefault) WriteResponse

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

WriteResponse to the client

type DeleteDriverHandler

type DeleteDriverHandler interface {
	Handle(DeleteDriverParams, interface{}) middleware.Responder
}

DeleteDriverHandler interface for that can handle valid delete driver params

type DeleteDriverHandlerFunc

type DeleteDriverHandlerFunc func(DeleteDriverParams, interface{}) middleware.Responder

DeleteDriverHandlerFunc turns a function with the right signature into a delete driver handler

func (DeleteDriverHandlerFunc) Handle

func (fn DeleteDriverHandlerFunc) Handle(params DeleteDriverParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteDriverInternalServerError

type DeleteDriverInternalServerError struct {

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

DeleteDriverInternalServerError Internal server error

swagger:response deleteDriverInternalServerError

func NewDeleteDriverInternalServerError

func NewDeleteDriverInternalServerError() *DeleteDriverInternalServerError

NewDeleteDriverInternalServerError creates DeleteDriverInternalServerError with default headers values

func (*DeleteDriverInternalServerError) SetPayload

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

SetPayload sets the payload to the delete driver internal server error response

func (*DeleteDriverInternalServerError) WithPayload

WithPayload adds the payload to the delete driver internal server error response

func (*DeleteDriverInternalServerError) WriteResponse

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

WriteResponse to the client

type DeleteDriverNotFound

type DeleteDriverNotFound struct {

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

DeleteDriverNotFound Driver not found

swagger:response deleteDriverNotFound

func NewDeleteDriverNotFound

func NewDeleteDriverNotFound() *DeleteDriverNotFound

NewDeleteDriverNotFound creates DeleteDriverNotFound with default headers values

func (*DeleteDriverNotFound) SetPayload

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

SetPayload sets the payload to the delete driver not found response

func (*DeleteDriverNotFound) WithPayload

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

WithPayload adds the payload to the delete driver not found response

func (*DeleteDriverNotFound) WriteResponse

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

WriteResponse to the client

type DeleteDriverOK

type DeleteDriverOK struct {

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

DeleteDriverOK successful operation

swagger:response deleteDriverOK

func NewDeleteDriverOK

func NewDeleteDriverOK() *DeleteDriverOK

NewDeleteDriverOK creates DeleteDriverOK with default headers values

func (*DeleteDriverOK) SetPayload

func (o *DeleteDriverOK) SetPayload(payload *models.Driver)

SetPayload sets the payload to the delete driver o k response

func (*DeleteDriverOK) WithPayload

func (o *DeleteDriverOK) WithPayload(payload *models.Driver) *DeleteDriverOK

WithPayload adds the payload to the delete driver o k response

func (*DeleteDriverOK) WriteResponse

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

WriteResponse to the client

type DeleteDriverParams

type DeleteDriverParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Name of the subscription to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	DriverName string
}

DeleteDriverParams contains all the bound params for the delete driver operation typically these are obtained from a http.Request

swagger:parameters deleteDriver

func NewDeleteDriverParams

func NewDeleteDriverParams() DeleteDriverParams

NewDeleteDriverParams creates a new DeleteDriverParams object with the default values initialized.

func (*DeleteDriverParams) BindRequest

func (o *DeleteDriverParams) 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 DeleteDriverURL

type DeleteDriverURL struct {
	DriverName string
	// contains filtered or unexported fields
}

DeleteDriverURL generates an URL for the delete driver operation

func (*DeleteDriverURL) Build

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

Build a url path and query string

func (*DeleteDriverURL) BuildFull

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

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

func (*DeleteDriverURL) Must

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

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

func (*DeleteDriverURL) SetBasePath

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

func (o *DeleteDriverURL) String() string

String returns the string representation of the path with query string

func (*DeleteDriverURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteDriverURL) WithBasePath

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

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 GetDriver

type GetDriver struct {
	Context *middleware.Context
	Handler GetDriverHandler
}

GetDriver swagger:route GET /drivers/{driverName} drivers getDriver

Find driver by Name

Returns a single driver

func NewGetDriver

func NewGetDriver(ctx *middleware.Context, handler GetDriverHandler) *GetDriver

NewGetDriver creates a new http.Handler for the get driver operation

func (*GetDriver) ServeHTTP

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

type GetDriverBadRequest

type GetDriverBadRequest struct {

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

GetDriverBadRequest Invalid Name supplied

swagger:response getDriverBadRequest

func NewGetDriverBadRequest

func NewGetDriverBadRequest() *GetDriverBadRequest

NewGetDriverBadRequest creates GetDriverBadRequest with default headers values

func (*GetDriverBadRequest) SetPayload

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

SetPayload sets the payload to the get driver bad request response

func (*GetDriverBadRequest) WithPayload

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

WithPayload adds the payload to the get driver bad request response

func (*GetDriverBadRequest) WriteResponse

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

WriteResponse to the client

type GetDriverDefault

type GetDriverDefault struct {

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

GetDriverDefault Unknown error

swagger:response getDriverDefault

func NewGetDriverDefault

func NewGetDriverDefault(code int) *GetDriverDefault

NewGetDriverDefault creates GetDriverDefault with default headers values

func (*GetDriverDefault) SetPayload

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

SetPayload sets the payload to the get driver default response

func (*GetDriverDefault) SetStatusCode

func (o *GetDriverDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get driver default response

func (*GetDriverDefault) WithPayload

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

WithPayload adds the payload to the get driver default response

func (*GetDriverDefault) WithStatusCode

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

WithStatusCode adds the status to the get driver default response

func (*GetDriverDefault) WriteResponse

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

WriteResponse to the client

type GetDriverHandler

type GetDriverHandler interface {
	Handle(GetDriverParams, interface{}) middleware.Responder
}

GetDriverHandler interface for that can handle valid get driver params

type GetDriverHandlerFunc

type GetDriverHandlerFunc func(GetDriverParams, interface{}) middleware.Responder

GetDriverHandlerFunc turns a function with the right signature into a get driver handler

func (GetDriverHandlerFunc) Handle

func (fn GetDriverHandlerFunc) Handle(params GetDriverParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetDriverInternalServerError

type GetDriverInternalServerError struct {

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

GetDriverInternalServerError Internal server error

swagger:response getDriverInternalServerError

func NewGetDriverInternalServerError

func NewGetDriverInternalServerError() *GetDriverInternalServerError

NewGetDriverInternalServerError creates GetDriverInternalServerError with default headers values

func (*GetDriverInternalServerError) SetPayload

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

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

func (*GetDriverInternalServerError) WithPayload

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

func (*GetDriverInternalServerError) WriteResponse

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

WriteResponse to the client

type GetDriverNotFound

type GetDriverNotFound struct {

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

GetDriverNotFound Driver not found

swagger:response getDriverNotFound

func NewGetDriverNotFound

func NewGetDriverNotFound() *GetDriverNotFound

NewGetDriverNotFound creates GetDriverNotFound with default headers values

func (*GetDriverNotFound) SetPayload

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

SetPayload sets the payload to the get driver not found response

func (*GetDriverNotFound) WithPayload

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

WithPayload adds the payload to the get driver not found response

func (*GetDriverNotFound) WriteResponse

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

WriteResponse to the client

type GetDriverOK

type GetDriverOK struct {

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

GetDriverOK Successful operation

swagger:response getDriverOK

func NewGetDriverOK

func NewGetDriverOK() *GetDriverOK

NewGetDriverOK creates GetDriverOK with default headers values

func (*GetDriverOK) SetPayload

func (o *GetDriverOK) SetPayload(payload *models.Driver)

SetPayload sets the payload to the get driver o k response

func (*GetDriverOK) WithPayload

func (o *GetDriverOK) WithPayload(payload *models.Driver) *GetDriverOK

WithPayload adds the payload to the get driver o k response

func (*GetDriverOK) WriteResponse

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

WriteResponse to the client

type GetDriverParams

type GetDriverParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Name of the subscription to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	DriverName string
}

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

swagger:parameters getDriver

func NewGetDriverParams

func NewGetDriverParams() GetDriverParams

NewGetDriverParams creates a new GetDriverParams object with the default values initialized.

func (*GetDriverParams) BindRequest

func (o *GetDriverParams) 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 GetDriverURL

type GetDriverURL struct {
	DriverName string
	// contains filtered or unexported fields
}

GetDriverURL generates an URL for the get driver operation

func (*GetDriverURL) Build

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

Build a url path and query string

func (*GetDriverURL) BuildFull

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

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

func (*GetDriverURL) Must

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

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

func (*GetDriverURL) SetBasePath

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

func (o *GetDriverURL) String() string

String returns the string representation of the path with query string

func (*GetDriverURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetDriverURL) WithBasePath

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

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 GetDrivers

type GetDrivers struct {
	Context *middleware.Context
	Handler GetDriversHandler
}

GetDrivers swagger:route GET /drivers drivers getDrivers

List all existing drivers

func NewGetDrivers

func NewGetDrivers(ctx *middleware.Context, handler GetDriversHandler) *GetDrivers

NewGetDrivers creates a new http.Handler for the get drivers operation

func (*GetDrivers) ServeHTTP

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

type GetDriversDefault

type GetDriversDefault struct {

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

GetDriversDefault Unknown error

swagger:response getDriversDefault

func NewGetDriversDefault

func NewGetDriversDefault(code int) *GetDriversDefault

NewGetDriversDefault creates GetDriversDefault with default headers values

func (*GetDriversDefault) SetPayload

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

SetPayload sets the payload to the get drivers default response

func (*GetDriversDefault) SetStatusCode

func (o *GetDriversDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get drivers default response

func (*GetDriversDefault) WithPayload

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

WithPayload adds the payload to the get drivers default response

func (*GetDriversDefault) WithStatusCode

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

WithStatusCode adds the status to the get drivers default response

func (*GetDriversDefault) WriteResponse

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

WriteResponse to the client

type GetDriversHandler

type GetDriversHandler interface {
	Handle(GetDriversParams, interface{}) middleware.Responder
}

GetDriversHandler interface for that can handle valid get drivers params

type GetDriversHandlerFunc

type GetDriversHandlerFunc func(GetDriversParams, interface{}) middleware.Responder

GetDriversHandlerFunc turns a function with the right signature into a get drivers handler

func (GetDriversHandlerFunc) Handle

func (fn GetDriversHandlerFunc) Handle(params GetDriversParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetDriversInternalServerError

type GetDriversInternalServerError struct {

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

GetDriversInternalServerError Internal server error

swagger:response getDriversInternalServerError

func NewGetDriversInternalServerError

func NewGetDriversInternalServerError() *GetDriversInternalServerError

NewGetDriversInternalServerError creates GetDriversInternalServerError with default headers values

func (*GetDriversInternalServerError) SetPayload

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

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

func (*GetDriversInternalServerError) WithPayload

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

func (*GetDriversInternalServerError) WriteResponse

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

WriteResponse to the client

type GetDriversOK

type GetDriversOK struct {

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

GetDriversOK Successful operation

swagger:response getDriversOK

func NewGetDriversOK

func NewGetDriversOK() *GetDriversOK

NewGetDriversOK creates GetDriversOK with default headers values

func (*GetDriversOK) SetPayload

func (o *GetDriversOK) SetPayload(payload models.GetDriversOKBody)

SetPayload sets the payload to the get drivers o k response

func (*GetDriversOK) WithPayload

func (o *GetDriversOK) WithPayload(payload models.GetDriversOKBody) *GetDriversOK

WithPayload adds the payload to the get drivers o k response

func (*GetDriversOK) WriteResponse

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

WriteResponse to the client

type GetDriversParams

type GetDriversParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Filter on driver tags
	  In: query
	  Collection Format: multi
	*/
	Tags []string
}

GetDriversParams contains all the bound params for the get drivers operation typically these are obtained from a http.Request

swagger:parameters getDrivers

func NewGetDriversParams

func NewGetDriversParams() GetDriversParams

NewGetDriversParams creates a new GetDriversParams object with the default values initialized.

func (*GetDriversParams) BindRequest

func (o *GetDriversParams) 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 GetDriversURL

type GetDriversURL struct {
	Tags []string
	// contains filtered or unexported fields
}

GetDriversURL generates an URL for the get drivers operation

func (*GetDriversURL) Build

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

Build a url path and query string

func (*GetDriversURL) BuildFull

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

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

func (*GetDriversURL) Must

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

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

func (*GetDriversURL) SetBasePath

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

func (o *GetDriversURL) String() string

String returns the string representation of the path with query string

func (*GetDriversURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetDriversURL) WithBasePath

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

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