Documentation ¶
Index ¶
- Constants
- type EnrolDevice
- type EnrolDeviceCreated
- type EnrolDeviceDefault
- func (o *EnrolDeviceDefault) SetPayload(payload *models.Error)
- func (o *EnrolDeviceDefault) SetStatusCode(code int)
- func (o *EnrolDeviceDefault) WithPayload(payload *models.Error) *EnrolDeviceDefault
- func (o *EnrolDeviceDefault) WithStatusCode(code int) *EnrolDeviceDefault
- func (o *EnrolDeviceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type EnrolDeviceForbidden
- type EnrolDeviceHandler
- type EnrolDeviceHandlerFunc
- type EnrolDeviceOK
- type EnrolDeviceParams
- type EnrolDeviceURL
- func (o *EnrolDeviceURL) Build() (*url.URL, error)
- func (o *EnrolDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *EnrolDeviceURL) Must(u *url.URL, err error) *url.URL
- func (o *EnrolDeviceURL) SetBasePath(bp string)
- func (o *EnrolDeviceURL) String() string
- func (o *EnrolDeviceURL) StringFull(scheme, host string) string
- func (o *EnrolDeviceURL) WithBasePath(bp string) *EnrolDeviceURL
- type EnrolDeviceUnauthorized
- type GetDeviceConfiguration
- type GetDeviceConfigurationDefault
- func (o *GetDeviceConfigurationDefault) SetPayload(payload *models.DeviceConfigurationResponse)
- func (o *GetDeviceConfigurationDefault) SetStatusCode(code int)
- func (o *GetDeviceConfigurationDefault) WithPayload(payload *models.DeviceConfigurationResponse) *GetDeviceConfigurationDefault
- func (o *GetDeviceConfigurationDefault) WithStatusCode(code int) *GetDeviceConfigurationDefault
- func (o *GetDeviceConfigurationDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetDeviceConfigurationForbidden
- type GetDeviceConfigurationHandler
- type GetDeviceConfigurationHandlerFunc
- type GetDeviceConfigurationOK
- func (o *GetDeviceConfigurationOK) SetPayload(payload *models.DeviceConfigurationResponse)
- func (o *GetDeviceConfigurationOK) WithPayload(payload *models.DeviceConfigurationResponse) *GetDeviceConfigurationOK
- func (o *GetDeviceConfigurationOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetDeviceConfigurationParams
- type GetDeviceConfigurationURL
- func (o *GetDeviceConfigurationURL) Build() (*url.URL, error)
- func (o *GetDeviceConfigurationURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetDeviceConfigurationURL) Must(u *url.URL, err error) *url.URL
- func (o *GetDeviceConfigurationURL) SetBasePath(bp string)
- func (o *GetDeviceConfigurationURL) String() string
- func (o *GetDeviceConfigurationURL) StringFull(scheme, host string) string
- func (o *GetDeviceConfigurationURL) WithBasePath(bp string) *GetDeviceConfigurationURL
- type GetDeviceConfigurationUnauthorized
- type GetRegistrationStatus
- type GetRegistrationStatusDefault
- func (o *GetRegistrationStatusDefault) SetPayload(payload *models.DeviceRegistrationStatusResponse)
- func (o *GetRegistrationStatusDefault) SetStatusCode(code int)
- func (o *GetRegistrationStatusDefault) WithPayload(payload *models.DeviceRegistrationStatusResponse) *GetRegistrationStatusDefault
- func (o *GetRegistrationStatusDefault) WithStatusCode(code int) *GetRegistrationStatusDefault
- func (o *GetRegistrationStatusDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRegistrationStatusForbidden
- type GetRegistrationStatusHandler
- type GetRegistrationStatusHandlerFunc
- type GetRegistrationStatusOK
- func (o *GetRegistrationStatusOK) SetPayload(payload *models.DeviceRegistrationStatusResponse)
- func (o *GetRegistrationStatusOK) WithPayload(payload *models.DeviceRegistrationStatusResponse) *GetRegistrationStatusOK
- func (o *GetRegistrationStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRegistrationStatusParams
- type GetRegistrationStatusURL
- func (o *GetRegistrationStatusURL) Build() (*url.URL, error)
- func (o *GetRegistrationStatusURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRegistrationStatusURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRegistrationStatusURL) SetBasePath(bp string)
- func (o *GetRegistrationStatusURL) String() string
- func (o *GetRegistrationStatusURL) StringFull(scheme, host string) string
- func (o *GetRegistrationStatusURL) WithBasePath(bp string) *GetRegistrationStatusURL
- type GetRegistrationStatusUnauthorized
- type RegisterDevice
- type RegisterDeviceDefault
- func (o *RegisterDeviceDefault) SetPayload(payload *models.Error)
- func (o *RegisterDeviceDefault) SetStatusCode(code int)
- func (o *RegisterDeviceDefault) WithPayload(payload *models.Error) *RegisterDeviceDefault
- func (o *RegisterDeviceDefault) WithStatusCode(code int) *RegisterDeviceDefault
- func (o *RegisterDeviceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RegisterDeviceForbidden
- type RegisterDeviceHandler
- type RegisterDeviceHandlerFunc
- type RegisterDeviceOK
- type RegisterDeviceParams
- type RegisterDeviceURL
- func (o *RegisterDeviceURL) Build() (*url.URL, error)
- func (o *RegisterDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RegisterDeviceURL) Must(u *url.URL, err error) *url.URL
- func (o *RegisterDeviceURL) SetBasePath(bp string)
- func (o *RegisterDeviceURL) String() string
- func (o *RegisterDeviceURL) StringFull(scheme, host string) string
- func (o *RegisterDeviceURL) WithBasePath(bp string) *RegisterDeviceURL
- type RegisterDeviceUnauthorized
- type UpdateHeartBeat
- type UpdateHeartBeatDefault
- func (o *UpdateHeartBeatDefault) SetPayload(payload *models.Error)
- func (o *UpdateHeartBeatDefault) SetStatusCode(code int)
- func (o *UpdateHeartBeatDefault) WithPayload(payload *models.Error) *UpdateHeartBeatDefault
- func (o *UpdateHeartBeatDefault) WithStatusCode(code int) *UpdateHeartBeatDefault
- func (o *UpdateHeartBeatDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateHeartBeatForbidden
- type UpdateHeartBeatHandler
- type UpdateHeartBeatHandlerFunc
- type UpdateHeartBeatOK
- type UpdateHeartBeatParams
- type UpdateHeartBeatURL
- func (o *UpdateHeartBeatURL) Build() (*url.URL, error)
- func (o *UpdateHeartBeatURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateHeartBeatURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateHeartBeatURL) SetBasePath(bp string)
- func (o *UpdateHeartBeatURL) String() string
- func (o *UpdateHeartBeatURL) StringFull(scheme, host string) string
- func (o *UpdateHeartBeatURL) WithBasePath(bp string) *UpdateHeartBeatURL
- type UpdateHeartBeatUnauthorized
Constants ¶
const EnrolDeviceCreatedCode int = 201
EnrolDeviceCreatedCode is the HTTP code returned for type EnrolDeviceCreated
const EnrolDeviceForbiddenCode int = 403
EnrolDeviceForbiddenCode is the HTTP code returned for type EnrolDeviceForbidden
const EnrolDeviceOKCode int = 200
EnrolDeviceOKCode is the HTTP code returned for type EnrolDeviceOK
EnrolDeviceUnauthorizedCode is the HTTP code returned for type EnrolDeviceUnauthorized
const GetDeviceConfigurationForbiddenCode int = 403
GetDeviceConfigurationForbiddenCode is the HTTP code returned for type GetDeviceConfigurationForbidden
const GetDeviceConfigurationOKCode int = 200
GetDeviceConfigurationOKCode is the HTTP code returned for type GetDeviceConfigurationOK
GetDeviceConfigurationUnauthorizedCode is the HTTP code returned for type GetDeviceConfigurationUnauthorized
const GetRegistrationStatusForbiddenCode int = 403
GetRegistrationStatusForbiddenCode is the HTTP code returned for type GetRegistrationStatusForbidden
const GetRegistrationStatusOKCode int = 200
GetRegistrationStatusOKCode is the HTTP code returned for type GetRegistrationStatusOK
GetRegistrationStatusUnauthorizedCode is the HTTP code returned for type GetRegistrationStatusUnauthorized
const RegisterDeviceForbiddenCode int = 403
RegisterDeviceForbiddenCode is the HTTP code returned for type RegisterDeviceForbidden
const RegisterDeviceOKCode int = 200
RegisterDeviceOKCode is the HTTP code returned for type RegisterDeviceOK
RegisterDeviceUnauthorizedCode is the HTTP code returned for type RegisterDeviceUnauthorized
const UpdateHeartBeatForbiddenCode int = 403
UpdateHeartBeatForbiddenCode is the HTTP code returned for type UpdateHeartBeatForbidden
const UpdateHeartBeatOKCode int = 200
UpdateHeartBeatOKCode is the HTTP code returned for type UpdateHeartBeatOK
UpdateHeartBeatUnauthorizedCode is the HTTP code returned for type UpdateHeartBeatUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnrolDevice ¶
type EnrolDevice struct { Context *middleware.Context Handler EnrolDeviceHandler }
EnrolDevice swagger:route POST /namespaces/{namespace}/devices/{device-id}/enrolment backend enrolDevice
Initiates the process of enrolling the device
func NewEnrolDevice ¶
func NewEnrolDevice(ctx *middleware.Context, handler EnrolDeviceHandler) *EnrolDevice
NewEnrolDevice creates a new http.Handler for the enrol device operation
func (*EnrolDevice) ServeHTTP ¶
func (o *EnrolDevice) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type EnrolDeviceCreated ¶
type EnrolDeviceCreated struct { }
EnrolDeviceCreated Created
swagger:response enrolDeviceCreated
func NewEnrolDeviceCreated ¶
func NewEnrolDeviceCreated() *EnrolDeviceCreated
NewEnrolDeviceCreated creates EnrolDeviceCreated with default headers values
func (*EnrolDeviceCreated) WriteResponse ¶
func (o *EnrolDeviceCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type EnrolDeviceDefault ¶
type EnrolDeviceDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
EnrolDeviceDefault Error
swagger:response enrolDeviceDefault
func NewEnrolDeviceDefault ¶
func NewEnrolDeviceDefault(code int) *EnrolDeviceDefault
NewEnrolDeviceDefault creates EnrolDeviceDefault with default headers values
func (*EnrolDeviceDefault) SetPayload ¶
func (o *EnrolDeviceDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the enrol device default response
func (*EnrolDeviceDefault) SetStatusCode ¶
func (o *EnrolDeviceDefault) SetStatusCode(code int)
SetStatusCode sets the status to the enrol device default response
func (*EnrolDeviceDefault) WithPayload ¶
func (o *EnrolDeviceDefault) WithPayload(payload *models.Error) *EnrolDeviceDefault
WithPayload adds the payload to the enrol device default response
func (*EnrolDeviceDefault) WithStatusCode ¶
func (o *EnrolDeviceDefault) WithStatusCode(code int) *EnrolDeviceDefault
WithStatusCode adds the status to the enrol device default response
func (*EnrolDeviceDefault) WriteResponse ¶
func (o *EnrolDeviceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type EnrolDeviceForbidden ¶
type EnrolDeviceForbidden struct { }
EnrolDeviceForbidden Forbidden
swagger:response enrolDeviceForbidden
func NewEnrolDeviceForbidden ¶
func NewEnrolDeviceForbidden() *EnrolDeviceForbidden
NewEnrolDeviceForbidden creates EnrolDeviceForbidden with default headers values
func (*EnrolDeviceForbidden) WriteResponse ¶
func (o *EnrolDeviceForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type EnrolDeviceHandler ¶
type EnrolDeviceHandler interface {
Handle(EnrolDeviceParams) middleware.Responder
}
EnrolDeviceHandler interface for that can handle valid enrol device params
type EnrolDeviceHandlerFunc ¶
type EnrolDeviceHandlerFunc func(EnrolDeviceParams) middleware.Responder
EnrolDeviceHandlerFunc turns a function with the right signature into a enrol device handler
func (EnrolDeviceHandlerFunc) Handle ¶
func (fn EnrolDeviceHandlerFunc) Handle(params EnrolDeviceParams) middleware.Responder
Handle executing the request and returning a response
type EnrolDeviceOK ¶
type EnrolDeviceOK struct { }
EnrolDeviceOK OK
swagger:response enrolDeviceOK
func NewEnrolDeviceOK ¶
func NewEnrolDeviceOK() *EnrolDeviceOK
NewEnrolDeviceOK creates EnrolDeviceOK with default headers values
func (*EnrolDeviceOK) WriteResponse ¶
func (o *EnrolDeviceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type EnrolDeviceParams ¶
type EnrolDeviceParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Device ID Required: true In: path */ DeviceID string /* Required: true In: body */ EnrolmentInfo commonmodel.EnrolmentInfo /*Namespace where the device resides Required: true In: path */ Namespace string }
EnrolDeviceParams contains all the bound params for the enrol device operation typically these are obtained from a http.Request
swagger:parameters EnrolDevice
func NewEnrolDeviceParams ¶
func NewEnrolDeviceParams() EnrolDeviceParams
NewEnrolDeviceParams creates a new EnrolDeviceParams object
There are no default values defined in the spec.
func (*EnrolDeviceParams) BindRequest ¶
func (o *EnrolDeviceParams) 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.
To ensure default values, the struct must have been initialized with NewEnrolDeviceParams() beforehand.
type EnrolDeviceURL ¶
type EnrolDeviceURL struct { DeviceID string Namespace string // contains filtered or unexported fields }
EnrolDeviceURL generates an URL for the enrol device operation
func (*EnrolDeviceURL) Build ¶
func (o *EnrolDeviceURL) Build() (*url.URL, error)
Build a url path and query string
func (*EnrolDeviceURL) BuildFull ¶
func (o *EnrolDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*EnrolDeviceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*EnrolDeviceURL) SetBasePath ¶
func (o *EnrolDeviceURL) 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 (*EnrolDeviceURL) String ¶
func (o *EnrolDeviceURL) String() string
String returns the string representation of the path with query string
func (*EnrolDeviceURL) StringFull ¶
func (o *EnrolDeviceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*EnrolDeviceURL) WithBasePath ¶
func (o *EnrolDeviceURL) WithBasePath(bp string) *EnrolDeviceURL
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 EnrolDeviceUnauthorized ¶
type EnrolDeviceUnauthorized struct { }
EnrolDeviceUnauthorized Unauthorized
swagger:response enrolDeviceUnauthorized
func NewEnrolDeviceUnauthorized ¶
func NewEnrolDeviceUnauthorized() *EnrolDeviceUnauthorized
NewEnrolDeviceUnauthorized creates EnrolDeviceUnauthorized with default headers values
func (*EnrolDeviceUnauthorized) WriteResponse ¶
func (o *EnrolDeviceUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetDeviceConfiguration ¶
type GetDeviceConfiguration struct { Context *middleware.Context Handler GetDeviceConfigurationHandler }
GetDeviceConfiguration swagger:route GET /namespaces/{namespace}/devices/{device-id}/configuration backend getDeviceConfiguration
Returns the device configuration
func NewGetDeviceConfiguration ¶
func NewGetDeviceConfiguration(ctx *middleware.Context, handler GetDeviceConfigurationHandler) *GetDeviceConfiguration
NewGetDeviceConfiguration creates a new http.Handler for the get device configuration operation
func (*GetDeviceConfiguration) ServeHTTP ¶
func (o *GetDeviceConfiguration) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetDeviceConfigurationDefault ¶
type GetDeviceConfigurationDefault struct { /* In: Body */ Payload *models.DeviceConfigurationResponse `json:"body,omitempty"` // contains filtered or unexported fields }
GetDeviceConfigurationDefault Error
swagger:response getDeviceConfigurationDefault
func NewGetDeviceConfigurationDefault ¶
func NewGetDeviceConfigurationDefault(code int) *GetDeviceConfigurationDefault
NewGetDeviceConfigurationDefault creates GetDeviceConfigurationDefault with default headers values
func (*GetDeviceConfigurationDefault) SetPayload ¶
func (o *GetDeviceConfigurationDefault) SetPayload(payload *models.DeviceConfigurationResponse)
SetPayload sets the payload to the get device configuration default response
func (*GetDeviceConfigurationDefault) SetStatusCode ¶
func (o *GetDeviceConfigurationDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get device configuration default response
func (*GetDeviceConfigurationDefault) WithPayload ¶
func (o *GetDeviceConfigurationDefault) WithPayload(payload *models.DeviceConfigurationResponse) *GetDeviceConfigurationDefault
WithPayload adds the payload to the get device configuration default response
func (*GetDeviceConfigurationDefault) WithStatusCode ¶
func (o *GetDeviceConfigurationDefault) WithStatusCode(code int) *GetDeviceConfigurationDefault
WithStatusCode adds the status to the get device configuration default response
func (*GetDeviceConfigurationDefault) WriteResponse ¶
func (o *GetDeviceConfigurationDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetDeviceConfigurationForbidden ¶
type GetDeviceConfigurationForbidden struct { }
GetDeviceConfigurationForbidden Forbidden
swagger:response getDeviceConfigurationForbidden
func NewGetDeviceConfigurationForbidden ¶
func NewGetDeviceConfigurationForbidden() *GetDeviceConfigurationForbidden
NewGetDeviceConfigurationForbidden creates GetDeviceConfigurationForbidden with default headers values
func (*GetDeviceConfigurationForbidden) WriteResponse ¶
func (o *GetDeviceConfigurationForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetDeviceConfigurationHandler ¶
type GetDeviceConfigurationHandler interface {
Handle(GetDeviceConfigurationParams) middleware.Responder
}
GetDeviceConfigurationHandler interface for that can handle valid get device configuration params
type GetDeviceConfigurationHandlerFunc ¶
type GetDeviceConfigurationHandlerFunc func(GetDeviceConfigurationParams) middleware.Responder
GetDeviceConfigurationHandlerFunc turns a function with the right signature into a get device configuration handler
func (GetDeviceConfigurationHandlerFunc) Handle ¶
func (fn GetDeviceConfigurationHandlerFunc) Handle(params GetDeviceConfigurationParams) middleware.Responder
Handle executing the request and returning a response
type GetDeviceConfigurationOK ¶
type GetDeviceConfigurationOK struct { /* In: Body */ Payload *models.DeviceConfigurationResponse `json:"body,omitempty"` }
GetDeviceConfigurationOK Success
swagger:response getDeviceConfigurationOK
func NewGetDeviceConfigurationOK ¶
func NewGetDeviceConfigurationOK() *GetDeviceConfigurationOK
NewGetDeviceConfigurationOK creates GetDeviceConfigurationOK with default headers values
func (*GetDeviceConfigurationOK) SetPayload ¶
func (o *GetDeviceConfigurationOK) SetPayload(payload *models.DeviceConfigurationResponse)
SetPayload sets the payload to the get device configuration o k response
func (*GetDeviceConfigurationOK) WithPayload ¶
func (o *GetDeviceConfigurationOK) WithPayload(payload *models.DeviceConfigurationResponse) *GetDeviceConfigurationOK
WithPayload adds the payload to the get device configuration o k response
func (*GetDeviceConfigurationOK) WriteResponse ¶
func (o *GetDeviceConfigurationOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetDeviceConfigurationParams ¶
type GetDeviceConfigurationParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Device ID Required: true In: path */ DeviceID string /*Namespace where the device resides Required: true In: path */ Namespace string }
GetDeviceConfigurationParams contains all the bound params for the get device configuration operation typically these are obtained from a http.Request
swagger:parameters GetDeviceConfiguration
func NewGetDeviceConfigurationParams ¶
func NewGetDeviceConfigurationParams() GetDeviceConfigurationParams
NewGetDeviceConfigurationParams creates a new GetDeviceConfigurationParams object
There are no default values defined in the spec.
func (*GetDeviceConfigurationParams) BindRequest ¶
func (o *GetDeviceConfigurationParams) 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.
To ensure default values, the struct must have been initialized with NewGetDeviceConfigurationParams() beforehand.
type GetDeviceConfigurationURL ¶
type GetDeviceConfigurationURL struct { DeviceID string Namespace string // contains filtered or unexported fields }
GetDeviceConfigurationURL generates an URL for the get device configuration operation
func (*GetDeviceConfigurationURL) Build ¶
func (o *GetDeviceConfigurationURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetDeviceConfigurationURL) BuildFull ¶
func (o *GetDeviceConfigurationURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetDeviceConfigurationURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetDeviceConfigurationURL) SetBasePath ¶
func (o *GetDeviceConfigurationURL) 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 (*GetDeviceConfigurationURL) String ¶
func (o *GetDeviceConfigurationURL) String() string
String returns the string representation of the path with query string
func (*GetDeviceConfigurationURL) StringFull ¶
func (o *GetDeviceConfigurationURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetDeviceConfigurationURL) WithBasePath ¶
func (o *GetDeviceConfigurationURL) WithBasePath(bp string) *GetDeviceConfigurationURL
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 GetDeviceConfigurationUnauthorized ¶
type GetDeviceConfigurationUnauthorized struct { }
GetDeviceConfigurationUnauthorized Unauthorized
swagger:response getDeviceConfigurationUnauthorized
func NewGetDeviceConfigurationUnauthorized ¶
func NewGetDeviceConfigurationUnauthorized() *GetDeviceConfigurationUnauthorized
NewGetDeviceConfigurationUnauthorized creates GetDeviceConfigurationUnauthorized with default headers values
func (*GetDeviceConfigurationUnauthorized) WriteResponse ¶
func (o *GetDeviceConfigurationUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRegistrationStatus ¶
type GetRegistrationStatus struct { Context *middleware.Context Handler GetRegistrationStatusHandler }
GetRegistrationStatus swagger:route GET /namespaces/{namespace}/devices/{device-id}/registration backend getRegistrationStatus
Returns a device registration status, which can be registered, unregistered or unknown.
func NewGetRegistrationStatus ¶
func NewGetRegistrationStatus(ctx *middleware.Context, handler GetRegistrationStatusHandler) *GetRegistrationStatus
NewGetRegistrationStatus creates a new http.Handler for the get registration status operation
func (*GetRegistrationStatus) ServeHTTP ¶
func (o *GetRegistrationStatus) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetRegistrationStatusDefault ¶
type GetRegistrationStatusDefault struct { /* In: Body */ Payload *models.DeviceRegistrationStatusResponse `json:"body,omitempty"` // contains filtered or unexported fields }
GetRegistrationStatusDefault Error
swagger:response getRegistrationStatusDefault
func NewGetRegistrationStatusDefault ¶
func NewGetRegistrationStatusDefault(code int) *GetRegistrationStatusDefault
NewGetRegistrationStatusDefault creates GetRegistrationStatusDefault with default headers values
func (*GetRegistrationStatusDefault) SetPayload ¶
func (o *GetRegistrationStatusDefault) SetPayload(payload *models.DeviceRegistrationStatusResponse)
SetPayload sets the payload to the get registration status default response
func (*GetRegistrationStatusDefault) SetStatusCode ¶
func (o *GetRegistrationStatusDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get registration status default response
func (*GetRegistrationStatusDefault) WithPayload ¶
func (o *GetRegistrationStatusDefault) WithPayload(payload *models.DeviceRegistrationStatusResponse) *GetRegistrationStatusDefault
WithPayload adds the payload to the get registration status default response
func (*GetRegistrationStatusDefault) WithStatusCode ¶
func (o *GetRegistrationStatusDefault) WithStatusCode(code int) *GetRegistrationStatusDefault
WithStatusCode adds the status to the get registration status default response
func (*GetRegistrationStatusDefault) WriteResponse ¶
func (o *GetRegistrationStatusDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRegistrationStatusForbidden ¶
type GetRegistrationStatusForbidden struct { }
GetRegistrationStatusForbidden Forbidden
swagger:response getRegistrationStatusForbidden
func NewGetRegistrationStatusForbidden ¶
func NewGetRegistrationStatusForbidden() *GetRegistrationStatusForbidden
NewGetRegistrationStatusForbidden creates GetRegistrationStatusForbidden with default headers values
func (*GetRegistrationStatusForbidden) WriteResponse ¶
func (o *GetRegistrationStatusForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRegistrationStatusHandler ¶
type GetRegistrationStatusHandler interface {
Handle(GetRegistrationStatusParams) middleware.Responder
}
GetRegistrationStatusHandler interface for that can handle valid get registration status params
type GetRegistrationStatusHandlerFunc ¶
type GetRegistrationStatusHandlerFunc func(GetRegistrationStatusParams) middleware.Responder
GetRegistrationStatusHandlerFunc turns a function with the right signature into a get registration status handler
func (GetRegistrationStatusHandlerFunc) Handle ¶
func (fn GetRegistrationStatusHandlerFunc) Handle(params GetRegistrationStatusParams) middleware.Responder
Handle executing the request and returning a response
type GetRegistrationStatusOK ¶
type GetRegistrationStatusOK struct { /* In: Body */ Payload *models.DeviceRegistrationStatusResponse `json:"body,omitempty"` }
GetRegistrationStatusOK OK
swagger:response getRegistrationStatusOK
func NewGetRegistrationStatusOK ¶
func NewGetRegistrationStatusOK() *GetRegistrationStatusOK
NewGetRegistrationStatusOK creates GetRegistrationStatusOK with default headers values
func (*GetRegistrationStatusOK) SetPayload ¶
func (o *GetRegistrationStatusOK) SetPayload(payload *models.DeviceRegistrationStatusResponse)
SetPayload sets the payload to the get registration status o k response
func (*GetRegistrationStatusOK) WithPayload ¶
func (o *GetRegistrationStatusOK) WithPayload(payload *models.DeviceRegistrationStatusResponse) *GetRegistrationStatusOK
WithPayload adds the payload to the get registration status o k response
func (*GetRegistrationStatusOK) WriteResponse ¶
func (o *GetRegistrationStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRegistrationStatusParams ¶
type GetRegistrationStatusParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Device ID Required: true In: path */ DeviceID string /*Namespace where the device resides Required: true In: path */ Namespace string }
GetRegistrationStatusParams contains all the bound params for the get registration status operation typically these are obtained from a http.Request
swagger:parameters GetRegistrationStatus
func NewGetRegistrationStatusParams ¶
func NewGetRegistrationStatusParams() GetRegistrationStatusParams
NewGetRegistrationStatusParams creates a new GetRegistrationStatusParams object
There are no default values defined in the spec.
func (*GetRegistrationStatusParams) BindRequest ¶
func (o *GetRegistrationStatusParams) 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.
To ensure default values, the struct must have been initialized with NewGetRegistrationStatusParams() beforehand.
type GetRegistrationStatusURL ¶
type GetRegistrationStatusURL struct { DeviceID string Namespace string // contains filtered or unexported fields }
GetRegistrationStatusURL generates an URL for the get registration status operation
func (*GetRegistrationStatusURL) Build ¶
func (o *GetRegistrationStatusURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetRegistrationStatusURL) BuildFull ¶
func (o *GetRegistrationStatusURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetRegistrationStatusURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetRegistrationStatusURL) SetBasePath ¶
func (o *GetRegistrationStatusURL) 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 (*GetRegistrationStatusURL) String ¶
func (o *GetRegistrationStatusURL) String() string
String returns the string representation of the path with query string
func (*GetRegistrationStatusURL) StringFull ¶
func (o *GetRegistrationStatusURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetRegistrationStatusURL) WithBasePath ¶
func (o *GetRegistrationStatusURL) WithBasePath(bp string) *GetRegistrationStatusURL
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 GetRegistrationStatusUnauthorized ¶
type GetRegistrationStatusUnauthorized struct { }
GetRegistrationStatusUnauthorized Unauthorized
swagger:response getRegistrationStatusUnauthorized
func NewGetRegistrationStatusUnauthorized ¶
func NewGetRegistrationStatusUnauthorized() *GetRegistrationStatusUnauthorized
NewGetRegistrationStatusUnauthorized creates GetRegistrationStatusUnauthorized with default headers values
func (*GetRegistrationStatusUnauthorized) WriteResponse ¶
func (o *GetRegistrationStatusUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RegisterDevice ¶
type RegisterDevice struct { Context *middleware.Context Handler RegisterDeviceHandler }
RegisterDevice swagger:route PUT /namespaces/{namespace}/devices/{device-id}/registration backend registerDevice
Registers the device by providing its hardware configuration
func NewRegisterDevice ¶
func NewRegisterDevice(ctx *middleware.Context, handler RegisterDeviceHandler) *RegisterDevice
NewRegisterDevice creates a new http.Handler for the register device operation
func (*RegisterDevice) ServeHTTP ¶
func (o *RegisterDevice) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RegisterDeviceDefault ¶
type RegisterDeviceDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
RegisterDeviceDefault Error
swagger:response registerDeviceDefault
func NewRegisterDeviceDefault ¶
func NewRegisterDeviceDefault(code int) *RegisterDeviceDefault
NewRegisterDeviceDefault creates RegisterDeviceDefault with default headers values
func (*RegisterDeviceDefault) SetPayload ¶
func (o *RegisterDeviceDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the register device default response
func (*RegisterDeviceDefault) SetStatusCode ¶
func (o *RegisterDeviceDefault) SetStatusCode(code int)
SetStatusCode sets the status to the register device default response
func (*RegisterDeviceDefault) WithPayload ¶
func (o *RegisterDeviceDefault) WithPayload(payload *models.Error) *RegisterDeviceDefault
WithPayload adds the payload to the register device default response
func (*RegisterDeviceDefault) WithStatusCode ¶
func (o *RegisterDeviceDefault) WithStatusCode(code int) *RegisterDeviceDefault
WithStatusCode adds the status to the register device default response
func (*RegisterDeviceDefault) WriteResponse ¶
func (o *RegisterDeviceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RegisterDeviceForbidden ¶
type RegisterDeviceForbidden struct { }
RegisterDeviceForbidden Forbidden
swagger:response registerDeviceForbidden
func NewRegisterDeviceForbidden ¶
func NewRegisterDeviceForbidden() *RegisterDeviceForbidden
NewRegisterDeviceForbidden creates RegisterDeviceForbidden with default headers values
func (*RegisterDeviceForbidden) WriteResponse ¶
func (o *RegisterDeviceForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RegisterDeviceHandler ¶
type RegisterDeviceHandler interface {
Handle(RegisterDeviceParams) middleware.Responder
}
RegisterDeviceHandler interface for that can handle valid register device params
type RegisterDeviceHandlerFunc ¶
type RegisterDeviceHandlerFunc func(RegisterDeviceParams) middleware.Responder
RegisterDeviceHandlerFunc turns a function with the right signature into a register device handler
func (RegisterDeviceHandlerFunc) Handle ¶
func (fn RegisterDeviceHandlerFunc) Handle(params RegisterDeviceParams) middleware.Responder
Handle executing the request and returning a response
type RegisterDeviceOK ¶
type RegisterDeviceOK struct { }
RegisterDeviceOK Updated
swagger:response registerDeviceOK
func NewRegisterDeviceOK ¶
func NewRegisterDeviceOK() *RegisterDeviceOK
NewRegisterDeviceOK creates RegisterDeviceOK with default headers values
func (*RegisterDeviceOK) WriteResponse ¶
func (o *RegisterDeviceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RegisterDeviceParams ¶
type RegisterDeviceParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Device ID Required: true In: path */ DeviceID string /*Namespace where the device resides Required: true In: path */ Namespace string /* Required: true In: body */ RegistrationInfo commonmodel.RegistrationInfo }
RegisterDeviceParams contains all the bound params for the register device operation typically these are obtained from a http.Request
swagger:parameters RegisterDevice
func NewRegisterDeviceParams ¶
func NewRegisterDeviceParams() RegisterDeviceParams
NewRegisterDeviceParams creates a new RegisterDeviceParams object
There are no default values defined in the spec.
func (*RegisterDeviceParams) BindRequest ¶
func (o *RegisterDeviceParams) 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.
To ensure default values, the struct must have been initialized with NewRegisterDeviceParams() beforehand.
type RegisterDeviceURL ¶
type RegisterDeviceURL struct { DeviceID string Namespace string // contains filtered or unexported fields }
RegisterDeviceURL generates an URL for the register device operation
func (*RegisterDeviceURL) Build ¶
func (o *RegisterDeviceURL) Build() (*url.URL, error)
Build a url path and query string
func (*RegisterDeviceURL) BuildFull ¶
func (o *RegisterDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RegisterDeviceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RegisterDeviceURL) SetBasePath ¶
func (o *RegisterDeviceURL) 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 (*RegisterDeviceURL) String ¶
func (o *RegisterDeviceURL) String() string
String returns the string representation of the path with query string
func (*RegisterDeviceURL) StringFull ¶
func (o *RegisterDeviceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RegisterDeviceURL) WithBasePath ¶
func (o *RegisterDeviceURL) WithBasePath(bp string) *RegisterDeviceURL
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 RegisterDeviceUnauthorized ¶
type RegisterDeviceUnauthorized struct { }
RegisterDeviceUnauthorized Unauthorized
swagger:response registerDeviceUnauthorized
func NewRegisterDeviceUnauthorized ¶
func NewRegisterDeviceUnauthorized() *RegisterDeviceUnauthorized
NewRegisterDeviceUnauthorized creates RegisterDeviceUnauthorized with default headers values
func (*RegisterDeviceUnauthorized) WriteResponse ¶
func (o *RegisterDeviceUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateHeartBeat ¶
type UpdateHeartBeat struct { Context *middleware.Context Handler UpdateHeartBeatHandler }
UpdateHeartBeat swagger:route PUT /namespaces/{namespace}/devices/{device-id}/heartbeat backend updateHeartBeat
Updates the heartbeat information of the device.
func NewUpdateHeartBeat ¶
func NewUpdateHeartBeat(ctx *middleware.Context, handler UpdateHeartBeatHandler) *UpdateHeartBeat
NewUpdateHeartBeat creates a new http.Handler for the update heart beat operation
func (*UpdateHeartBeat) ServeHTTP ¶
func (o *UpdateHeartBeat) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateHeartBeatDefault ¶
type UpdateHeartBeatDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
UpdateHeartBeatDefault Error
swagger:response updateHeartBeatDefault
func NewUpdateHeartBeatDefault ¶
func NewUpdateHeartBeatDefault(code int) *UpdateHeartBeatDefault
NewUpdateHeartBeatDefault creates UpdateHeartBeatDefault with default headers values
func (*UpdateHeartBeatDefault) SetPayload ¶
func (o *UpdateHeartBeatDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the update heart beat default response
func (*UpdateHeartBeatDefault) SetStatusCode ¶
func (o *UpdateHeartBeatDefault) SetStatusCode(code int)
SetStatusCode sets the status to the update heart beat default response
func (*UpdateHeartBeatDefault) WithPayload ¶
func (o *UpdateHeartBeatDefault) WithPayload(payload *models.Error) *UpdateHeartBeatDefault
WithPayload adds the payload to the update heart beat default response
func (*UpdateHeartBeatDefault) WithStatusCode ¶
func (o *UpdateHeartBeatDefault) WithStatusCode(code int) *UpdateHeartBeatDefault
WithStatusCode adds the status to the update heart beat default response
func (*UpdateHeartBeatDefault) WriteResponse ¶
func (o *UpdateHeartBeatDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateHeartBeatForbidden ¶
type UpdateHeartBeatForbidden struct { }
UpdateHeartBeatForbidden Forbidden
swagger:response updateHeartBeatForbidden
func NewUpdateHeartBeatForbidden ¶
func NewUpdateHeartBeatForbidden() *UpdateHeartBeatForbidden
NewUpdateHeartBeatForbidden creates UpdateHeartBeatForbidden with default headers values
func (*UpdateHeartBeatForbidden) WriteResponse ¶
func (o *UpdateHeartBeatForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateHeartBeatHandler ¶
type UpdateHeartBeatHandler interface {
Handle(UpdateHeartBeatParams) middleware.Responder
}
UpdateHeartBeatHandler interface for that can handle valid update heart beat params
type UpdateHeartBeatHandlerFunc ¶
type UpdateHeartBeatHandlerFunc func(UpdateHeartBeatParams) middleware.Responder
UpdateHeartBeatHandlerFunc turns a function with the right signature into a update heart beat handler
func (UpdateHeartBeatHandlerFunc) Handle ¶
func (fn UpdateHeartBeatHandlerFunc) Handle(params UpdateHeartBeatParams) middleware.Responder
Handle executing the request and returning a response
type UpdateHeartBeatOK ¶
type UpdateHeartBeatOK struct { }
UpdateHeartBeatOK Success
swagger:response updateHeartBeatOK
func NewUpdateHeartBeatOK ¶
func NewUpdateHeartBeatOK() *UpdateHeartBeatOK
NewUpdateHeartBeatOK creates UpdateHeartBeatOK with default headers values
func (*UpdateHeartBeatOK) WriteResponse ¶
func (o *UpdateHeartBeatOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateHeartBeatParams ¶
type UpdateHeartBeatParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Device ID Required: true In: path */ DeviceID string /* Required: true In: body */ Heartbeat commonmodel.Heartbeat /*Namespace where the device resides Required: true In: path */ Namespace string }
UpdateHeartBeatParams contains all the bound params for the update heart beat operation typically these are obtained from a http.Request
swagger:parameters UpdateHeartBeat
func NewUpdateHeartBeatParams ¶
func NewUpdateHeartBeatParams() UpdateHeartBeatParams
NewUpdateHeartBeatParams creates a new UpdateHeartBeatParams object
There are no default values defined in the spec.
func (*UpdateHeartBeatParams) BindRequest ¶
func (o *UpdateHeartBeatParams) 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.
To ensure default values, the struct must have been initialized with NewUpdateHeartBeatParams() beforehand.
type UpdateHeartBeatURL ¶
type UpdateHeartBeatURL struct { DeviceID string Namespace string // contains filtered or unexported fields }
UpdateHeartBeatURL generates an URL for the update heart beat operation
func (*UpdateHeartBeatURL) Build ¶
func (o *UpdateHeartBeatURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateHeartBeatURL) BuildFull ¶
func (o *UpdateHeartBeatURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateHeartBeatURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateHeartBeatURL) SetBasePath ¶
func (o *UpdateHeartBeatURL) 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 (*UpdateHeartBeatURL) String ¶
func (o *UpdateHeartBeatURL) String() string
String returns the string representation of the path with query string
func (*UpdateHeartBeatURL) StringFull ¶
func (o *UpdateHeartBeatURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateHeartBeatURL) WithBasePath ¶
func (o *UpdateHeartBeatURL) WithBasePath(bp string) *UpdateHeartBeatURL
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 UpdateHeartBeatUnauthorized ¶
type UpdateHeartBeatUnauthorized struct { }
UpdateHeartBeatUnauthorized Unauthorized
swagger:response updateHeartBeatUnauthorized
func NewUpdateHeartBeatUnauthorized ¶
func NewUpdateHeartBeatUnauthorized() *UpdateHeartBeatUnauthorized
NewUpdateHeartBeatUnauthorized creates UpdateHeartBeatUnauthorized with default headers values
func (*UpdateHeartBeatUnauthorized) WriteResponse ¶
func (o *UpdateHeartBeatUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- enrol_device.go
- enrol_device_parameters.go
- enrol_device_responses.go
- enrol_device_urlbuilder.go
- get_device_configuration.go
- get_device_configuration_parameters.go
- get_device_configuration_responses.go
- get_device_configuration_urlbuilder.go
- get_registration_status.go
- get_registration_status_parameters.go
- get_registration_status_responses.go
- get_registration_status_urlbuilder.go
- register_device.go
- register_device_parameters.go
- register_device_responses.go
- register_device_urlbuilder.go
- update_heart_beat.go
- update_heart_beat_parameters.go
- update_heart_beat_responses.go
- update_heart_beat_urlbuilder.go