Documentation ¶
Index ¶
- func AddApplicationReqToApplicationModels(addRequests AddApplicationRequest) (Application models.Application)
- func AddDeviceHistoryReqToDeviceHistoryModels(addRequests []AddDeviceHistoryRequest) (DevicesHistory []models.DeviceHistory)
- func AddDeviceModelReqToModel(addRequest []AddDeviceModelRequest) (deviceModels []models.DeviceModel)
- func AddDeviceReqToDeviceModels(addRequests []AddDeviceRequest) (Devices []models.Device)
- func AddDeviceServiceReqToDeviceServiceModels(addRequests []AddDeviceServiceRequest) (DeviceServices []models.DeviceService)
- func AddEventReqToEventModel(addEventReq AddEventRequest) (event models.Event)
- func AddIntervalActionReqToIntervalActionModels(addRequests []AddIntervalActionRequest) (actions []models.IntervalAction)
- func AddIntervalReqToIntervalModels(addRequests []AddIntervalRequest) (intervals []models.Interval)
- func AddManufacturerReqToModel(addRequest []AddManufacturerRequest) (manufacturers []models.Manufacturer)
- func AddNotificationReqToNotificationModels(reqs []AddNotificationRequest) (n []models.Notification)
- func AddOrganizationReqToOrganizationModels(addRequests AddOrganizationRequest) (Organization models.Organization)
- func AddProvisionWatcherReqToProvisionWatcherModels(addRequests []AddProvisionWatcherRequest) (ProvisionWatchers []models.ProvisionWatcher)
- func AddSubscriptionReqToSubscriptionModels(reqs []AddSubscriptionRequest) (s []models.Subscription)
- func BulkOperationReqToModel(request BulkOperationRequest) models.BulkOperation
- func DeviceModelReplaceModelFieldsWithDTO(deviceModel *models.DeviceModel, patch dtos.UpdateDeviceModel)
- func DeviceProfileReqToDeviceProfileModel(addReq DeviceProfileRequest) (DeviceProfiles models.DeviceProfile)
- func DeviceProfileReqToDeviceProfileModels(addRequests []DeviceProfileRequest) (DeviceProfiles []models.DeviceProfile)
- func LinkDeviceReqToLinkModels(addRequests LinkDeviceRequest) (Link models.Link)
- func ReplaceApplicationModelFieldsWithDTO(application *models.Application, patch dtos.PatchApplication) errors.EdgeX
- func ReplaceDeviceCommandModelFieldsWithDTO(dc *models.DeviceCommand, patch dtos.UpdateDeviceCommand)
- func ReplaceDeviceHistoryModelFieldsWithDTO(deviceHistory *models.DeviceHistory, patch dtos.UpdateDeviceHistory)
- func ReplaceDeviceModelFieldsWithDTO(device *models.Device, patch dtos.UpdateDevice)
- func ReplaceDeviceProfileModelBasicInfoFieldsWithDTO(dp *models.DeviceProfile, patch dtos.UpdateDeviceProfileBasicInfo)
- func ReplaceDeviceResourceModelFieldsWithDTO(dr *models.DeviceResource, patch dtos.UpdateDeviceResource)
- func ReplaceDeviceServiceModelFieldsWithDTO(ds *models.DeviceService, patch dtos.UpdateDeviceService)
- func ReplaceDeviceStatusModelFieldsWithDTO(device *models.DeviceStatus, patch dtos.DeviceStatusUpdate)
- func ReplaceIntervalActionModelFieldsWithDTO(action *models.IntervalAction, patch dtos.UpdateIntervalAction)
- func ReplaceIntervalModelFieldsWithDTO(interval *models.Interval, patch dtos.UpdateInterval)
- func ReplaceLinkModelFieldsWithDTO(link *models.Link, patch dtos.UpdateLink)
- func ReplaceManufacturerModelFieldsWithDTO(manufacturer *models.Manufacturer, patch dtos.UpdateManufacturer)
- func ReplaceOrganizationModelFieldsWithDTO(device *models.Organization, patch dtos.UpdateOrganization)
- func ReplaceProvisionWatcherModelFieldsWithDTO(pw *models.ProvisionWatcher, patch dtos.UpdateProvisionWatcher)
- func ReplaceSubscriptionModelFieldsWithDTO(s *models.Subscription, patch dtos.UpdateSubscription)
- type AddApplicationRequest
- type AddDeviceCommandRequest
- type AddDeviceHistoryRequest
- type AddDeviceModelRequest
- type AddDeviceRequest
- type AddDeviceResourceRequest
- type AddDeviceServiceRequest
- type AddDevicesToApplication
- type AddEventRequest
- type AddIntervalActionRequest
- type AddIntervalRequest
- type AddManufacturerRequest
- type AddNotificationRequest
- type AddOrganizationRequest
- type AddProvisionWatcherRequest
- type AddSubscriptionRequest
- type BulkOperationRequest
- type DeleteDevicesToApplication
- type DeviceProfileBasicInfoRequest
- type DeviceProfileRequest
- type DeviceStatusRequest
- type LinkDeviceRequest
- type OperationRequest
- type UpdateApplicationRequest
- type UpdateDeviceCommandRequest
- type UpdateDeviceHistoryRequest
- type UpdateDeviceModelRequest
- type UpdateDeviceRequest
- type UpdateDeviceResourceRequest
- type UpdateDeviceServiceRequest
- type UpdateIntervalActionRequest
- type UpdateIntervalRequest
- type UpdateLinkRequest
- type UpdateManufacturerRequest
- type UpdateOrganizationRequest
- type UpdateProvisionWatcherRequest
- type UpdateSubscriptionRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddApplicationReqToApplicationModels ¶
func AddApplicationReqToApplicationModels(addRequests AddApplicationRequest) (Application models.Application)
AddDeviceReqToDeviceModels transforms the AddDeviceRequest DTO array to the Device model array
func AddDeviceHistoryReqToDeviceHistoryModels ¶
func AddDeviceHistoryReqToDeviceHistoryModels(addRequests []AddDeviceHistoryRequest) (DevicesHistory []models.DeviceHistory)
AddDeviceReqToDeviceHistoryModels transforms the AddDeviceHistoryRequest DTO array to the Device model array
func AddDeviceModelReqToModel ¶
func AddDeviceModelReqToModel(addRequest []AddDeviceModelRequest) (deviceModels []models.DeviceModel)
func AddDeviceReqToDeviceModels ¶
func AddDeviceReqToDeviceModels(addRequests []AddDeviceRequest) (Devices []models.Device)
AddDeviceReqToDeviceModels transforms the AddDeviceRequest DTO array to the Device model array
func AddDeviceServiceReqToDeviceServiceModels ¶
func AddDeviceServiceReqToDeviceServiceModels(addRequests []AddDeviceServiceRequest) (DeviceServices []models.DeviceService)
AddDeviceServiceReqToDeviceServiceModels transforms the AddDeviceServiceRequest DTO array to the DeviceService model array
func AddEventReqToEventModel ¶
func AddEventReqToEventModel(addEventReq AddEventRequest) (event models.Event)
AddEventReqToEventModel transforms the AddEventRequest DTO to the Event model
func AddIntervalActionReqToIntervalActionModels ¶
func AddIntervalActionReqToIntervalActionModels(addRequests []AddIntervalActionRequest) (actions []models.IntervalAction)
AddIntervalActionReqToIntervalActionModels transforms the AddIntervalActionRequest DTO array to the IntervalAction model array
func AddIntervalReqToIntervalModels ¶
func AddIntervalReqToIntervalModels(addRequests []AddIntervalRequest) (intervals []models.Interval)
AddIntervalReqToIntervalModels transforms the AddIntervalRequest DTO array to the Interval model array
func AddManufacturerReqToModel ¶
func AddManufacturerReqToModel(addRequest []AddManufacturerRequest) (manufacturers []models.Manufacturer)
func AddNotificationReqToNotificationModels ¶
func AddNotificationReqToNotificationModels(reqs []AddNotificationRequest) (n []models.Notification)
AddNotificationReqToNotificationModels transforms the AddNotificationRequest DTO array to the AddNotificationRequest model array
func AddOrganizationReqToOrganizationModels ¶
func AddOrganizationReqToOrganizationModels(addRequests AddOrganizationRequest) (Organization models.Organization)
AddDeviceReqToDeviceModels transforms the AddDeviceRequest DTO array to the Device model array
func AddProvisionWatcherReqToProvisionWatcherModels ¶
func AddProvisionWatcherReqToProvisionWatcherModels(addRequests []AddProvisionWatcherRequest) (ProvisionWatchers []models.ProvisionWatcher)
AddProvisionWatcherReqToProvisionWatcherModels transforms the AddProvisionWatcherRequest DTO array to the ProvisionWatcher model array
func AddSubscriptionReqToSubscriptionModels ¶
func AddSubscriptionReqToSubscriptionModels(reqs []AddSubscriptionRequest) (s []models.Subscription)
AddSubscriptionReqToSubscriptionModels transforms the AddSubscriptionRequest DTO array to the AddSubscriptionRequest model array
func BulkOperationReqToModel ¶
func BulkOperationReqToModel(request BulkOperationRequest) models.BulkOperation
func DeviceModelReplaceModelFieldsWithDTO ¶
func DeviceModelReplaceModelFieldsWithDTO(deviceModel *models.DeviceModel, patch dtos.UpdateDeviceModel)
func DeviceProfileReqToDeviceProfileModel ¶
func DeviceProfileReqToDeviceProfileModel(addReq DeviceProfileRequest) (DeviceProfiles models.DeviceProfile)
DeviceProfileReqToDeviceProfileModel transforms the DeviceProfileRequest DTO to the DeviceProfile model
func DeviceProfileReqToDeviceProfileModels ¶
func DeviceProfileReqToDeviceProfileModels(addRequests []DeviceProfileRequest) (DeviceProfiles []models.DeviceProfile)
DeviceProfileReqToDeviceProfileModels transforms the DeviceProfileRequest DTO array to the DeviceProfile model array
func LinkDeviceReqToLinkModels ¶
func LinkDeviceReqToLinkModels(addRequests LinkDeviceRequest) (Link models.Link)
AddDeviceReqToDeviceModels transforms the AddDeviceRequest DTO array to the Device model array
func ReplaceApplicationModelFieldsWithDTO ¶
func ReplaceApplicationModelFieldsWithDTO(application *models.Application, patch dtos.PatchApplication) errors.EdgeX
func ReplaceDeviceCommandModelFieldsWithDTO ¶
func ReplaceDeviceCommandModelFieldsWithDTO(dc *models.DeviceCommand, patch dtos.UpdateDeviceCommand)
ReplaceDeviceCommandModelFieldsWithDTO replace existing DeviceCommand's fields with DTO patch
func ReplaceDeviceHistoryModelFieldsWithDTO ¶
func ReplaceDeviceHistoryModelFieldsWithDTO(deviceHistory *models.DeviceHistory, patch dtos.UpdateDeviceHistory)
TODO: add missing patch fields (Tags) ReplaceDeviceModelFieldsWithDTO replace existing Device's fields with DTO patch
func ReplaceDeviceModelFieldsWithDTO ¶
func ReplaceDeviceModelFieldsWithDTO(device *models.Device, patch dtos.UpdateDevice)
ReplaceDeviceModelFieldsWithDTO replace existing Device's fields with DTO patch
func ReplaceDeviceProfileModelBasicInfoFieldsWithDTO ¶
func ReplaceDeviceProfileModelBasicInfoFieldsWithDTO(dp *models.DeviceProfile, patch dtos.UpdateDeviceProfileBasicInfo)
ReplaceDeviceProfileModelBasicInfoFieldsWithDTO replace existing DeviceProfile's basic info fields with DTO patch
func ReplaceDeviceResourceModelFieldsWithDTO ¶
func ReplaceDeviceResourceModelFieldsWithDTO(dr *models.DeviceResource, patch dtos.UpdateDeviceResource)
ReplaceDeviceResourceModelFieldsWithDTO replace existing DeviceResource's fields with DTO patch
func ReplaceDeviceServiceModelFieldsWithDTO ¶
func ReplaceDeviceServiceModelFieldsWithDTO(ds *models.DeviceService, patch dtos.UpdateDeviceService)
ReplaceDeviceServiceModelFieldsWithDTO replace existing DeviceService's fields with DTO patch
func ReplaceDeviceStatusModelFieldsWithDTO ¶
func ReplaceDeviceStatusModelFieldsWithDTO(device *models.DeviceStatus, patch dtos.DeviceStatusUpdate)
func ReplaceIntervalActionModelFieldsWithDTO ¶
func ReplaceIntervalActionModelFieldsWithDTO(action *models.IntervalAction, patch dtos.UpdateIntervalAction)
ReplaceIntervalActionModelFieldsWithDTO replace existing IntervalAction's fields with DTO patch
func ReplaceIntervalModelFieldsWithDTO ¶
func ReplaceIntervalModelFieldsWithDTO(interval *models.Interval, patch dtos.UpdateInterval)
ReplaceIntervalModelFieldsWithDTO replace existing Interval's fields with DTO patch
func ReplaceLinkModelFieldsWithDTO ¶
func ReplaceLinkModelFieldsWithDTO(link *models.Link, patch dtos.UpdateLink)
func ReplaceManufacturerModelFieldsWithDTO ¶
func ReplaceManufacturerModelFieldsWithDTO(manufacturer *models.Manufacturer, patch dtos.UpdateManufacturer)
func ReplaceOrganizationModelFieldsWithDTO ¶
func ReplaceOrganizationModelFieldsWithDTO(device *models.Organization, patch dtos.UpdateOrganization)
func ReplaceProvisionWatcherModelFieldsWithDTO ¶
func ReplaceProvisionWatcherModelFieldsWithDTO(pw *models.ProvisionWatcher, patch dtos.UpdateProvisionWatcher)
ReplaceProvisionWatcherModelFieldsWithDTO replace existing ProvisionWatcher's fields with DTO patch
func ReplaceSubscriptionModelFieldsWithDTO ¶
func ReplaceSubscriptionModelFieldsWithDTO(s *models.Subscription, patch dtos.UpdateSubscription)
ReplaceSubscriptionModelFieldsWithDTO replace existing Subscription's fields with DTO patch
Types ¶
type AddApplicationRequest ¶
type AddApplicationRequest struct { commonDtos.BaseRequest `json:",inline"` Application dtos.Application `json:"application"` }
AddDeviceRequest defines the Request Content for POST Device DTO. This object and its properties correspond to the AddDeviceRequest object in the APIv2 specification: https://app.swaggerhub.com/apis-docs/EdgeXFoundry1/core-metadata/2.1.0#/AddDeviceRequest
func (*AddApplicationRequest) UnmarshalJSON ¶
func (d *AddApplicationRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the AddDeviceRequest type
func (AddApplicationRequest) Validate ¶
func (d AddApplicationRequest) Validate() error
Validate satisfies the Validator interface
type AddDeviceCommandRequest ¶
type AddDeviceCommandRequest struct { dtoCommon.BaseRequest `json:",inline"` ProfileName string `json:"profileName" validate:"required,edgex-dto-none-empty-string"` DeviceCommand dtos.DeviceCommand `json:"deviceCommand"` }
AddDeviceCommandRequest defines the Request Content for POST DeviceCommand DTO.
func (*AddDeviceCommandRequest) UnmarshalJSON ¶
func (dc *AddDeviceCommandRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the AddDeviceCommandRequest type
func (AddDeviceCommandRequest) Validate ¶
func (request AddDeviceCommandRequest) Validate() error
Validate satisfies the Validator interface
type AddDeviceHistoryRequest ¶
type AddDeviceHistoryRequest struct { dtoCommon.BaseRequest `json:",inline"` DeviceHistory dtos.DeviceHistory `json:"deviceHistory"` }
func NewAddDeviceHistoryRequest ¶
func NewAddDeviceHistoryRequest(dto dtos.DeviceHistory) AddDeviceHistoryRequest
func (*AddDeviceHistoryRequest) UnmarshalJSON ¶
func (d *AddDeviceHistoryRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the AddDeviceHistoryRequest type
func (AddDeviceHistoryRequest) Validate ¶
func (d AddDeviceHistoryRequest) Validate() error
Validate satisfies the Validator interface
type AddDeviceModelRequest ¶
type AddDeviceModelRequest struct { dtoCommon.BaseRequest `json:",inline"` DeviceModel dtos.DeviceModel `json:"deviceModel"` }
func (*AddDeviceModelRequest) UnmarshalJSON ¶
func (dm *AddDeviceModelRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the AddDeviceModelRequest type
func (AddDeviceModelRequest) Validate ¶
func (dm AddDeviceModelRequest) Validate() error
type AddDeviceRequest ¶
type AddDeviceRequest struct { dtoCommon.BaseRequest `json:",inline"` Device dtos.Device `json:"device"` }
AddDeviceRequest defines the Request Content for POST Device DTO.
func NewAddDeviceRequest ¶
func NewAddDeviceRequest(dto dtos.Device) AddDeviceRequest
func (*AddDeviceRequest) UnmarshalJSON ¶
func (d *AddDeviceRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the AddDeviceRequest type
func (AddDeviceRequest) Validate ¶
func (d AddDeviceRequest) Validate() error
Validate satisfies the Validator interface
type AddDeviceResourceRequest ¶
type AddDeviceResourceRequest struct { dtoCommon.BaseRequest `json:",inline"` ProfileName string `json:"profileName" validate:"required,edgex-dto-none-empty-string"` Resource dtos.DeviceResource `json:"resource"` }
AddDeviceResourceRequest defines the Request Content for POST DeviceResource DTO.
func (*AddDeviceResourceRequest) UnmarshalJSON ¶
func (dr *AddDeviceResourceRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the AddDeviceResourceReques type
func (AddDeviceResourceRequest) Validate ¶
func (request AddDeviceResourceRequest) Validate() error
type AddDeviceServiceRequest ¶
type AddDeviceServiceRequest struct { dtoCommon.BaseRequest `json:",inline"` Service dtos.DeviceService `json:"service"` }
AddDeviceServiceRequest defines the Request Content for POST DeviceService DTO.
func NewAddDeviceServiceRequest ¶
func NewAddDeviceServiceRequest(dto dtos.DeviceService) AddDeviceServiceRequest
func (*AddDeviceServiceRequest) UnmarshalJSON ¶
func (ds *AddDeviceServiceRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the AddDeviceServiceRequest type
func (AddDeviceServiceRequest) Validate ¶
func (ds AddDeviceServiceRequest) Validate() error
Validate satisfies the Validator interface
type AddDevicesToApplication ¶
type AddDevicesToApplication struct { commonDtos.BaseRequest `json:",inline"` Devices []string `json:"devices"` }
type AddEventRequest ¶
type AddEventRequest struct { dtoCommon.BaseRequest `json:",inline"` Event dtos.Event `json:"event" validate:"required"` }
AddEventRequest defines the Request Content for POST event DTO.
func NewAddEventRequest ¶
func NewAddEventRequest(event dtos.Event) AddEventRequest
NewAddEventRequest creates, initializes and returns an AddEventRequests
func (*AddEventRequest) Encode ¶
func (a *AddEventRequest) Encode() ([]byte, string, error)
func (*AddEventRequest) Unmarshal ¶
func (a *AddEventRequest) Unmarshal(b []byte, f unmarshal) error
func (*AddEventRequest) UnmarshalCBOR ¶
func (a *AddEventRequest) UnmarshalCBOR(b []byte) error
func (*AddEventRequest) UnmarshalJSON ¶
func (a *AddEventRequest) UnmarshalJSON(b []byte) error
func (AddEventRequest) Validate ¶
func (a AddEventRequest) Validate() error
Validate satisfies the Validator interface
type AddIntervalActionRequest ¶
type AddIntervalActionRequest struct { dtoCommon.BaseRequest `json:",inline"` Action dtos.IntervalAction `json:"action"` }
AddIntervalActionRequest defines the Request Content for POST Interval DTO.
func NewAddIntervalActionRequest ¶
func NewAddIntervalActionRequest(dto dtos.IntervalAction) AddIntervalActionRequest
func (*AddIntervalActionRequest) UnmarshalJSON ¶
func (request *AddIntervalActionRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the AddIntervalActionRequest type
func (AddIntervalActionRequest) Validate ¶
func (request AddIntervalActionRequest) Validate() error
Validate satisfies the Validator interface
type AddIntervalRequest ¶
type AddIntervalRequest struct { dtoCommon.BaseRequest `json:",inline"` Interval dtos.Interval `json:"interval"` }
AddIntervalRequest defines the Request Content for POST Interval DTO.
func NewAddIntervalRequest ¶
func NewAddIntervalRequest(dto dtos.Interval) AddIntervalRequest
func (*AddIntervalRequest) UnmarshalJSON ¶
func (request *AddIntervalRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the AddIntervalRequest type
func (AddIntervalRequest) Validate ¶
func (request AddIntervalRequest) Validate() error
Validate satisfies the Validator interface
type AddManufacturerRequest ¶
type AddManufacturerRequest struct { dtoCommon.BaseRequest `json:",inline"` Manufacturer dtos.Manufacturer `json:"manufacturer"` }
func (*AddManufacturerRequest) UnmarshalJSON ¶
func (m *AddManufacturerRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the AddManufacturerRequest type
func (AddManufacturerRequest) Validate ¶
func (dm AddManufacturerRequest) Validate() error
type AddNotificationRequest ¶
type AddNotificationRequest struct { dtoCommon.BaseRequest `json:",inline"` Notification dtos.Notification `json:"notification"` }
AddNotificationRequest defines the Request Content for POST Notification DTO.
func NewAddNotificationRequest ¶
func NewAddNotificationRequest(dto dtos.Notification) AddNotificationRequest
func (*AddNotificationRequest) UnmarshalJSON ¶
func (request *AddNotificationRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the AddNotificationRequest type
func (AddNotificationRequest) Validate ¶
func (request AddNotificationRequest) Validate() error
Validate satisfies the Validator interface
type AddOrganizationRequest ¶
type AddOrganizationRequest struct { dtoCommon.BaseRequest `json:",inline"` Organization dtos.Organization `json:"organization"` }
AddDeviceRequest defines the Request Content for POST Device DTO. This object and its properties correspond to the AddDeviceRequest object in the APIv2 specification: https://app.swaggerhub.com/apis-docs/EdgeXFoundry1/core-metadata/2.1.0#/AddDeviceRequest
func (*AddOrganizationRequest) UnmarshalJSON ¶
func (d *AddOrganizationRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the AddDeviceRequest type
func (AddOrganizationRequest) Validate ¶
func (d AddOrganizationRequest) Validate() error
Validate satisfies the Validator interface
type AddProvisionWatcherRequest ¶
type AddProvisionWatcherRequest struct { dtoCommon.BaseRequest `json:",inline"` ProvisionWatcher dtos.ProvisionWatcher `json:"provisionWatcher"` }
AddProvisionWatcherRequest defines the Request Content for POST ProvisionWatcher DTO.
func NewAddProvisionWatcherRequest ¶
func NewAddProvisionWatcherRequest(dto dtos.ProvisionWatcher) AddProvisionWatcherRequest
func (*AddProvisionWatcherRequest) UnmarshalJSON ¶
func (pw *AddProvisionWatcherRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the AddProvisionWatcherRequest type
func (*AddProvisionWatcherRequest) Validate ¶
func (pw *AddProvisionWatcherRequest) Validate() error
Validate satisfies the Validator interface
type AddSubscriptionRequest ¶
type AddSubscriptionRequest struct { dtoCommon.BaseRequest `json:",inline"` Subscription dtos.Subscription `json:"subscription"` }
AddSubscriptionRequest defines the Request Content for POST Subscription DTO.
func NewAddSubscriptionRequest ¶
func NewAddSubscriptionRequest(dto dtos.Subscription) AddSubscriptionRequest
func (*AddSubscriptionRequest) UnmarshalJSON ¶
func (request *AddSubscriptionRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the AddSubscriptionRequest type
func (AddSubscriptionRequest) Validate ¶
func (request AddSubscriptionRequest) Validate() error
Validate satisfies the Validator interface
type BulkOperationRequest ¶
type BulkOperationRequest struct { dtoCommon.BaseRequest `json:",inline"` Data dtos.BulkOperation `json:"data"` }
func (*BulkOperationRequest) UnmarshalJSON ¶
func (b *BulkOperationRequest) UnmarshalJSON(by []byte) error
UnmarshalJSON implements the Unmarshaler interface for the AddDeviceRequest type
func (BulkOperationRequest) Validate ¶
func (b BulkOperationRequest) Validate() error
Validate satisfies the Validator interface
type DeleteDevicesToApplication ¶
type DeleteDevicesToApplication struct { commonDtos.BaseRequest `json:",inline"` Devices []string `json:"devices"` }
type DeviceProfileBasicInfoRequest ¶
type DeviceProfileBasicInfoRequest struct { dtoCommon.BaseRequest `json:",inline"` BasicInfo dtos.UpdateDeviceProfileBasicInfo `json:"basicinfo"` }
DeviceProfileBasicInfoRequest defines the Request Content for PATCH UpdateDeviceProfileBasicInfo DTO.
func (*DeviceProfileBasicInfoRequest) UnmarshalJSON ¶
func (d *DeviceProfileBasicInfoRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the UpdateDeviceRequest type
func (DeviceProfileBasicInfoRequest) Validate ¶
func (d DeviceProfileBasicInfoRequest) Validate() error
Validate satisfies the Validator interface
type DeviceProfileRequest ¶
type DeviceProfileRequest struct { dtoCommon.BaseRequest `json:",inline"` Profile dtos.DeviceProfile `json:"profile"` }
DeviceProfileRequest defines the Request Content for POST DeviceProfile DTO.
func NewDeviceProfileRequest ¶
func NewDeviceProfileRequest(dto dtos.DeviceProfile) DeviceProfileRequest
func (*DeviceProfileRequest) UnmarshalJSON ¶
func (dp *DeviceProfileRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the DeviceProfileRequest type
func (DeviceProfileRequest) Validate ¶
func (dp DeviceProfileRequest) Validate() error
Validate satisfies the Validator interface
type DeviceStatusRequest ¶
type DeviceStatusRequest struct { dtoCommon.BaseRequest `json:",inline"` Status dtos.DeviceStatusUpdate `json:"status" validate:"required"` // The silent status of the device. }
func NewDeviceStatusRequest ¶
func NewDeviceStatusRequest(deviceName string, status dtos.DeviceStatusUpdate) DeviceStatusRequest
func (*DeviceStatusRequest) Encode ¶
func (a *DeviceStatusRequest) Encode() ([]byte, error)
func (*DeviceStatusRequest) UnmarshalJSON ¶
func (a *DeviceStatusRequest) UnmarshalJSON(b []byte) error
func (DeviceStatusRequest) Validate ¶
func (a DeviceStatusRequest) Validate() error
Validate satisfies the Validator interface
type LinkDeviceRequest ¶
type LinkDeviceRequest struct { dtoCommon.BaseRequest `json:",inline"` Link dtos.Link `json:"link"` }
type OperationRequest ¶
type OperationRequest struct { dtoCommon.BaseRequest `json:",inline"` ServiceName string `json:"serviceName" validate:"required"` Action string `json:"action" validate:"oneof='start' 'stop' 'restart'"` }
OperationRequest defines the Request Content for SMA POST Operation.
func (*OperationRequest) UnmarshalJSON ¶
func (o *OperationRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the OperationRequest type
func (*OperationRequest) Validate ¶
func (o *OperationRequest) Validate() error
Validate satisfies the Validator interface
type UpdateApplicationRequest ¶
type UpdateApplicationRequest struct { commonDtos.BaseRequest `json:",inline"` Application dtos.PatchApplication `json:"application"` }
func (*UpdateApplicationRequest) UnmarshalJSON ¶
func (d *UpdateApplicationRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the AddDeviceRequest type
func (UpdateApplicationRequest) Validate ¶
func (d UpdateApplicationRequest) Validate() error
Validate satisfies the Validator interface
type UpdateDeviceCommandRequest ¶
type UpdateDeviceCommandRequest struct { dtoCommon.BaseRequest `json:",inline"` ProfileName string `json:"profileName" validate:"required,edgex-dto-none-empty-string"` DeviceCommand dtos.UpdateDeviceCommand `json:"deviceCommand"` }
UpdateDeviceCommandRequest defines the Request Content for PATCH DeviceCommand DTO.
func (*UpdateDeviceCommandRequest) UnmarshalJSON ¶
func (dc *UpdateDeviceCommandRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the UpdateDeviceCommandRequest type
func (UpdateDeviceCommandRequest) Validate ¶
func (request UpdateDeviceCommandRequest) Validate() error
Validate satisfies the Validator interface
type UpdateDeviceHistoryRequest ¶
type UpdateDeviceHistoryRequest struct { dtoCommon.BaseRequest `json:",inline"` DeviceHistory dtos.UpdateDeviceHistory `json:"deviceHistory"` }
UpdateDeviceHistoryRequest defines the Request Content for PUT event as pushed DTO. This object and its properties correspond to the UpdateDeviceHistoryRequest object in the APIv2 specification: https://app.swaggerhub.com/apis-docs/EdgeXFoundry1/core-metadata/2.1.0#/UpdateDeviceHistoryRequest
func NewUpdateDeviceHistoryRequest ¶
func NewUpdateDeviceHistoryRequest(dto dtos.UpdateDeviceHistory) UpdateDeviceHistoryRequest
func (*UpdateDeviceHistoryRequest) UnmarshalJSON ¶
func (d *UpdateDeviceHistoryRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the UpdateDeviceHistoryRequest type
func (UpdateDeviceHistoryRequest) Validate ¶
func (d UpdateDeviceHistoryRequest) Validate() error
Validate satisfies the Validator interface
type UpdateDeviceModelRequest ¶
type UpdateDeviceModelRequest struct { dtoCommon.BaseRequest `json:",inline"` DeviceModel dtos.UpdateDeviceModel `json:"deviceModel"` }
func (*UpdateDeviceModelRequest) UnmarshalJSON ¶
func (dm *UpdateDeviceModelRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the AddDeviceModelRequest type
func (UpdateDeviceModelRequest) Validate ¶
func (dm UpdateDeviceModelRequest) Validate() error
type UpdateDeviceRequest ¶
type UpdateDeviceRequest struct { dtoCommon.BaseRequest `json:",inline"` Device dtos.UpdateDevice `json:"device"` }
UpdateDeviceRequest defines the Request Content for PUT event as pushed DTO.
func NewUpdateDeviceRequest ¶
func NewUpdateDeviceRequest(dto dtos.UpdateDevice) UpdateDeviceRequest
func (*UpdateDeviceRequest) UnmarshalJSON ¶
func (d *UpdateDeviceRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the UpdateDeviceRequest type
func (UpdateDeviceRequest) Validate ¶
func (d UpdateDeviceRequest) Validate() error
Validate satisfies the Validator interface
type UpdateDeviceResourceRequest ¶
type UpdateDeviceResourceRequest struct { dtoCommon.BaseRequest `json:",inline"` ProfileName string `json:"profileName" validate:"required,edgex-dto-none-empty-string"` Resource dtos.UpdateDeviceResource `json:"resource"` }
UpdateDeviceResourceRequest defines the Request Content for PATCH DeviceResource DTO.
func (*UpdateDeviceResourceRequest) UnmarshalJSON ¶
func (dr *UpdateDeviceResourceRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the UpdateDeviceResourceRequest type
func (UpdateDeviceResourceRequest) Validate ¶
func (request UpdateDeviceResourceRequest) Validate() error
type UpdateDeviceServiceRequest ¶
type UpdateDeviceServiceRequest struct { dtoCommon.BaseRequest `json:",inline"` Service dtos.UpdateDeviceService `json:"service"` }
UpdateDeviceServiceRequest defines the Request Content for PUT event as pushed DTO.
func NewUpdateDeviceServiceRequest ¶
func NewUpdateDeviceServiceRequest(dto dtos.UpdateDeviceService) UpdateDeviceServiceRequest
func (*UpdateDeviceServiceRequest) UnmarshalJSON ¶
func (ds *UpdateDeviceServiceRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the UpdateDeviceServiceRequest type
func (UpdateDeviceServiceRequest) Validate ¶
func (ds UpdateDeviceServiceRequest) Validate() error
Validate satisfies the Validator interface
type UpdateIntervalActionRequest ¶
type UpdateIntervalActionRequest struct { dtoCommon.BaseRequest `json:",inline"` Action dtos.UpdateIntervalAction `json:"action"` }
UpdateIntervalActionRequest defines the Request Content for PUT event as pushed DTO.
func NewUpdateIntervalActionRequest ¶
func NewUpdateIntervalActionRequest(dto dtos.UpdateIntervalAction) UpdateIntervalActionRequest
func (*UpdateIntervalActionRequest) UnmarshalJSON ¶
func (request *UpdateIntervalActionRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the UpdateIntervalActionRequest type
func (UpdateIntervalActionRequest) Validate ¶
func (request UpdateIntervalActionRequest) Validate() error
Validate satisfies the Validator interface
type UpdateIntervalRequest ¶
type UpdateIntervalRequest struct { dtoCommon.BaseRequest `json:",inline"` Interval dtos.UpdateInterval `json:"interval"` }
UpdateIntervalRequest defines the Request Content for PUT event as pushed DTO.
func NewUpdateIntervalRequest ¶
func NewUpdateIntervalRequest(dto dtos.UpdateInterval) UpdateIntervalRequest
func (*UpdateIntervalRequest) UnmarshalJSON ¶
func (request *UpdateIntervalRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the UpdateIntervalRequest type
func (UpdateIntervalRequest) Validate ¶
func (request UpdateIntervalRequest) Validate() error
Validate satisfies the Validator interface
type UpdateLinkRequest ¶
type UpdateLinkRequest struct { dtoCommon.BaseRequest `json:",inline"` Link dtos.UpdateLink `json:"link"` }
type UpdateManufacturerRequest ¶
type UpdateManufacturerRequest struct { dtoCommon.BaseRequest `json:",inline"` Manufacturer dtos.UpdateManufacturer `json:"manufacturer"` }
func (*UpdateManufacturerRequest) UnmarshalJSON ¶
func (m *UpdateManufacturerRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the AddManufacturerRequest type
func (UpdateManufacturerRequest) Validate ¶
func (dm UpdateManufacturerRequest) Validate() error
type UpdateOrganizationRequest ¶
type UpdateOrganizationRequest struct { dtoCommon.BaseRequest `json:",inline"` Organization dtos.UpdateOrganization `json:"organization"` }
func (*UpdateOrganizationRequest) UnmarshalJSON ¶
func (d *UpdateOrganizationRequest) UnmarshalJSON(b []byte) error
func (UpdateOrganizationRequest) Validate ¶
func (d UpdateOrganizationRequest) Validate() error
type UpdateProvisionWatcherRequest ¶
type UpdateProvisionWatcherRequest struct { dtoCommon.BaseRequest `json:",inline"` ProvisionWatcher dtos.UpdateProvisionWatcher `json:"provisionWatcher"` }
UpdateProvisionWatcherRequest defines the Request Content for PUT event as pushed DTO.
func NewUpdateProvisionWatcherRequest ¶
func NewUpdateProvisionWatcherRequest(dto dtos.UpdateProvisionWatcher) UpdateProvisionWatcherRequest
func (*UpdateProvisionWatcherRequest) UnmarshalJSON ¶
func (pw *UpdateProvisionWatcherRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the UpdateProvisionWatcherRequest type
func (*UpdateProvisionWatcherRequest) Validate ¶
func (pw *UpdateProvisionWatcherRequest) Validate() error
Validate satisfies the Validator interface
type UpdateSubscriptionRequest ¶
type UpdateSubscriptionRequest struct { dtoCommon.BaseRequest `json:",inline"` Subscription dtos.UpdateSubscription `json:"subscription"` }
UpdateSubscriptionRequest defines the Request Content for PUT event as pushed DTO.
func NewUpdateSubscriptionRequest ¶
func NewUpdateSubscriptionRequest(dto dtos.UpdateSubscription) UpdateSubscriptionRequest
func (*UpdateSubscriptionRequest) UnmarshalJSON ¶
func (request *UpdateSubscriptionRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the Unmarshaler interface for the UpdateSubscriptionRequest type
func (UpdateSubscriptionRequest) Validate ¶
func (request UpdateSubscriptionRequest) Validate() error
Validate satisfies the Validator interface
Source Files ¶
- application.go
- bulkoperation.go
- device.go
- device_history.go
- device_model.go
- devicecommand.go
- deviceprofile.go
- deviceprofilebasicinfo.go
- deviceresource.go
- deviceservice.go
- devicestatus.go
- event.go
- interval.go
- intervalaction.go
- link.go
- manufacturer.go
- notification.go
- operation.go
- organization.go
- provisionwatcher.go
- subscription.go