Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckProfileNotUsed ¶
Types ¶
type DeviceCache ¶
type DeviceCache interface {
ForName(name string) (models.Device, bool)
ForId(id string) (models.Device, bool)
All() []models.Device
Add(device models.Device) errors.EdgeX
Update(device models.Device) errors.EdgeX
RemoveById(id string) errors.EdgeX
RemoveByName(name string) errors.EdgeX
UpdateAdminState(id string, state models.AdminState) errors.EdgeX
}
func Devices ¶
func Devices() DeviceCache
type ProfileCache ¶
type ProfileCache interface {
ForName(name string) (models.DeviceProfile, bool)
ForId(id string) (models.DeviceProfile, bool)
All() []models.DeviceProfile
Add(profile models.DeviceProfile) errors.EdgeX
Update(profile models.DeviceProfile) errors.EdgeX
RemoveById(id string) errors.EdgeX
RemoveByName(name string) errors.EdgeX
DeviceResource(profileName string, resourceName string) (models.DeviceResource, bool)
CommandExists(profileName string, cmd string, method string) (bool, errors.EdgeX)
ResourceOperations(profileName string, cmd string, method string) ([]models.ResourceOperation, errors.EdgeX)
ResourceOperation(profileName string, deviceResource string, method string) (models.ResourceOperation, errors.EdgeX)
}
func Profiles ¶
func Profiles() ProfileCache
type ProvisionWatcherCache ¶
type ProvisionWatcherCache interface {
ForName(name string) (models.ProvisionWatcher, bool)
ForId(id string) (models.ProvisionWatcher, bool)
All() []models.ProvisionWatcher
Add(device models.ProvisionWatcher) error
Update(device models.ProvisionWatcher) error
RemoveById(id string) error
RemoveByName(name string) error
UpdateAdminState(id string, state models.AdminState) error
}
func ProvisionWatchers ¶
func ProvisionWatchers() ProvisionWatcherCache
Click to show internal directories.
Click to hide internal directories.