Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeviceAlarmCache ¶
type DeviceAlarmCache interface { ForNameAndMessage(name string, message string) (models.DeviceAlarm, bool) All() []models.DeviceAlarm Add(device models.DeviceAlarm) errors.EdgeX Update(device models.DeviceAlarm) errors.EdgeX RemoveByNameAndMessage(name string, message string) errors.EdgeX }
func DeviceAlarms ¶
func DeviceAlarms() DeviceAlarmCache
type DeviceCache ¶
type DeviceCache interface { ForName(name string) (models.Device, bool) All() []models.Device Add(device models.Device) errors.EdgeX Update(device models.Device) errors.EdgeX RemoveByName(name string) errors.EdgeX UpdateAdminState(name string, state models.AdminState) errors.EdgeX SetLastConnectedByName(name string) GetLastConnectedByName(name string) int64 }
func Devices ¶
func Devices() DeviceCache
type ProfileCache ¶
type ProfileCache interface { ForName(name string) (models.DeviceProfile, bool) All() []models.DeviceProfile Add(profile models.DeviceProfile) errors.EdgeX Update(profile models.DeviceProfile) errors.EdgeX RemoveByName(name string) errors.EdgeX DeviceResource(profileName string, resourceName string) (models.DeviceResource, bool) DeviceResourcesByRegex(profileName string, regex *regexp.Regexp) ([]models.DeviceResource, bool) DeviceCommand(profileName string, commandName string) (models.DeviceCommand, bool) ResourceOperation(profileName string, deviceResource string) (models.ResourceOperation, errors.EdgeX) }
func Profiles ¶
func Profiles() ProfileCache
type ProvisionWatcherCache ¶
type ProvisionWatcherCache interface { ForName(name string) (models.ProvisionWatcher, bool) All() []models.ProvisionWatcher Add(device models.ProvisionWatcher) errors.EdgeX Update(device models.ProvisionWatcher) errors.EdgeX RemoveByName(name string) errors.EdgeX UpdateAdminState(name string, state models.AdminState) errors.EdgeX }
func ProvisionWatchers ¶
func ProvisionWatchers() ProvisionWatcherCache
Click to show internal directories.
Click to hide internal directories.