Documentation ¶
Index ¶
- Constants
- type AddDriver
- type AddDriverBadRequest
- type AddDriverCreated
- type AddDriverDefault
- func (o *AddDriverDefault) SetPayload(payload *models.Error)
- func (o *AddDriverDefault) SetStatusCode(code int)
- func (o *AddDriverDefault) WithPayload(payload *models.Error) *AddDriverDefault
- func (o *AddDriverDefault) WithStatusCode(code int) *AddDriverDefault
- func (o *AddDriverDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AddDriverHandler
- type AddDriverHandlerFunc
- type AddDriverInternalServerError
- type AddDriverParams
- type AddDriverURL
- func (o *AddDriverURL) Build() (*url.URL, error)
- func (o *AddDriverURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddDriverURL) Must(u *url.URL, err error) *url.URL
- func (o *AddDriverURL) SetBasePath(bp string)
- func (o *AddDriverURL) String() string
- func (o *AddDriverURL) StringFull(scheme, host string) string
- func (o *AddDriverURL) WithBasePath(bp string) *AddDriverURL
- type AddDriverUnauthorized
- type DeleteDriver
- type DeleteDriverBadRequest
- type DeleteDriverDefault
- func (o *DeleteDriverDefault) SetPayload(payload *models.Error)
- func (o *DeleteDriverDefault) SetStatusCode(code int)
- func (o *DeleteDriverDefault) WithPayload(payload *models.Error) *DeleteDriverDefault
- func (o *DeleteDriverDefault) WithStatusCode(code int) *DeleteDriverDefault
- func (o *DeleteDriverDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteDriverHandler
- type DeleteDriverHandlerFunc
- type DeleteDriverInternalServerError
- type DeleteDriverNotFound
- type DeleteDriverOK
- type DeleteDriverParams
- type DeleteDriverURL
- func (o *DeleteDriverURL) Build() (*url.URL, error)
- func (o *DeleteDriverURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteDriverURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteDriverURL) SetBasePath(bp string)
- func (o *DeleteDriverURL) String() string
- func (o *DeleteDriverURL) StringFull(scheme, host string) string
- func (o *DeleteDriverURL) WithBasePath(bp string) *DeleteDriverURL
- type GetDriver
- type GetDriverBadRequest
- type GetDriverDefault
- func (o *GetDriverDefault) SetPayload(payload *models.Error)
- func (o *GetDriverDefault) SetStatusCode(code int)
- func (o *GetDriverDefault) WithPayload(payload *models.Error) *GetDriverDefault
- func (o *GetDriverDefault) WithStatusCode(code int) *GetDriverDefault
- func (o *GetDriverDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetDriverHandler
- type GetDriverHandlerFunc
- type GetDriverInternalServerError
- type GetDriverNotFound
- type GetDriverOK
- type GetDriverParams
- type GetDriverURL
- func (o *GetDriverURL) Build() (*url.URL, error)
- func (o *GetDriverURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetDriverURL) Must(u *url.URL, err error) *url.URL
- func (o *GetDriverURL) SetBasePath(bp string)
- func (o *GetDriverURL) String() string
- func (o *GetDriverURL) StringFull(scheme, host string) string
- func (o *GetDriverURL) WithBasePath(bp string) *GetDriverURL
- type GetDrivers
- type GetDriversDefault
- func (o *GetDriversDefault) SetPayload(payload *models.Error)
- func (o *GetDriversDefault) SetStatusCode(code int)
- func (o *GetDriversDefault) WithPayload(payload *models.Error) *GetDriversDefault
- func (o *GetDriversDefault) WithStatusCode(code int) *GetDriversDefault
- func (o *GetDriversDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetDriversHandler
- type GetDriversHandlerFunc
- type GetDriversInternalServerError
- type GetDriversOK
- type GetDriversParams
- type GetDriversURL
- func (o *GetDriversURL) Build() (*url.URL, error)
- func (o *GetDriversURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetDriversURL) Must(u *url.URL, err error) *url.URL
- func (o *GetDriversURL) SetBasePath(bp string)
- func (o *GetDriversURL) String() string
- func (o *GetDriversURL) StringFull(scheme, host string) string
- func (o *GetDriversURL) WithBasePath(bp string) *GetDriversURL
Constants ¶
const AddDriverBadRequestCode int = 400
AddDriverBadRequestCode is the HTTP code returned for type AddDriverBadRequest
const AddDriverCreatedCode int = 201
AddDriverCreatedCode is the HTTP code returned for type AddDriverCreated
const AddDriverInternalServerErrorCode int = 500
AddDriverInternalServerErrorCode is the HTTP code returned for type AddDriverInternalServerError
AddDriverUnauthorizedCode is the HTTP code returned for type AddDriverUnauthorized
const DeleteDriverBadRequestCode int = 400
DeleteDriverBadRequestCode is the HTTP code returned for type DeleteDriverBadRequest
const DeleteDriverInternalServerErrorCode int = 500
DeleteDriverInternalServerErrorCode is the HTTP code returned for type DeleteDriverInternalServerError
const DeleteDriverNotFoundCode int = 404
DeleteDriverNotFoundCode is the HTTP code returned for type DeleteDriverNotFound
const DeleteDriverOKCode int = 200
DeleteDriverOKCode is the HTTP code returned for type DeleteDriverOK
const GetDriverBadRequestCode int = 400
GetDriverBadRequestCode is the HTTP code returned for type GetDriverBadRequest
const GetDriverInternalServerErrorCode int = 500
GetDriverInternalServerErrorCode is the HTTP code returned for type GetDriverInternalServerError
const GetDriverNotFoundCode int = 404
GetDriverNotFoundCode is the HTTP code returned for type GetDriverNotFound
const GetDriverOKCode int = 200
GetDriverOKCode is the HTTP code returned for type GetDriverOK
const GetDriversInternalServerErrorCode int = 500
GetDriversInternalServerErrorCode is the HTTP code returned for type GetDriversInternalServerError
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
type AddDriverBadRequest ¶
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 ¶
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 ¶
func (o *AddDriverInternalServerError) WithPayload(payload *models.Error) *AddDriverInternalServerError
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 ¶
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 ¶
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 ¶
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 ¶
func (o *DeleteDriverInternalServerError) WithPayload(payload *models.Error) *DeleteDriverInternalServerError
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 ¶
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 ¶
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 ¶
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
type GetDriverBadRequest ¶
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 ¶
func (o *GetDriverInternalServerError) WithPayload(payload *models.Error) *GetDriverInternalServerError
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 ¶
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 ¶
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 ¶
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 ¶
func (o *GetDriversInternalServerError) WithPayload(payload *models.Error) *GetDriversInternalServerError
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 ¶
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
Source Files ¶
- add_driver.go
- add_driver_parameters.go
- add_driver_responses.go
- add_driver_urlbuilder.go
- delete_driver.go
- delete_driver_parameters.go
- delete_driver_responses.go
- delete_driver_urlbuilder.go
- get_driver.go
- get_driver_parameters.go
- get_driver_responses.go
- get_driver_urlbuilder.go
- get_drivers.go
- get_drivers_parameters.go
- get_drivers_responses.go
- get_drivers_urlbuilder.go