Documentation ¶
Index ¶
- type DeviceServiceGetExecutor
- type DeviceServiceGetListExecutor
- func NewDeviceServiceLoadAll(cfg bootstrapConfig.ServiceInfo, db DeviceServiceLoader, ...) DeviceServiceGetListExecutor
- func NewDeviceServiceLoadByAddressableID(id string, db DeviceServiceLoader) DeviceServiceGetListExecutor
- func NewDeviceServiceLoadByAddressableName(name string, db DeviceServiceLoader) DeviceServiceGetListExecutor
- type DeviceServiceLoader
- type DeviceServiceUpdater
- type UpdateAdminOrOperatingStateExecutor
- func NewUpdateAdminStateByIdExecutor(id string, as contract.AdminState, db DeviceServiceUpdater) UpdateAdminOrOperatingStateExecutor
- func NewUpdateAdminStateByNameExecutor(name string, as contract.AdminState, db DeviceServiceUpdater) UpdateAdminOrOperatingStateExecutor
- func NewUpdateOpStateByIdExecutor(id string, os contract.OperatingState, db DeviceServiceUpdater) UpdateAdminOrOperatingStateExecutor
- func NewUpdateOpStateByNameExecutor(name string, os contract.OperatingState, db DeviceServiceUpdater) UpdateAdminOrOperatingStateExecutor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceServiceGetExecutor ¶
type DeviceServiceGetExecutor interface {
Execute() (contract.DeviceService, error)
}
DeviceServiceGetExecutor retrieves DeviceService according to parameters defined by the implementation.
func NewDeviceServiceLoadById ¶
func NewDeviceServiceLoadById(id string, db DeviceServiceLoader) DeviceServiceGetExecutor
NewDeviceServiceLoadById creates a new Executor that retrieves the DeviceService associated with a given ID.
func NewDeviceServiceLoadByName ¶
func NewDeviceServiceLoadByName(name string, db DeviceServiceLoader) DeviceServiceGetExecutor
NewDeviceServiceLoadByName creates a new Executor that retrieves the DeviceService associated with a given name.
type DeviceServiceGetListExecutor ¶
type DeviceServiceGetListExecutor interface {
Execute() ([]contract.DeviceService, error)
}
DeviceServiceGetListExecutor retrieves DeviceServices according to parameters defined by the implementation.
func NewDeviceServiceLoadAll ¶
func NewDeviceServiceLoadAll(cfg bootstrapConfig.ServiceInfo, db DeviceServiceLoader, log logger.LoggingClient) DeviceServiceGetListExecutor
NewDeviceServiceLoadAll creates a new Executor that retrieves all DeviceService registered.
func NewDeviceServiceLoadByAddressableID ¶
func NewDeviceServiceLoadByAddressableID(id string, db DeviceServiceLoader) DeviceServiceGetListExecutor
NewDeviceServiceLoadByAddressableID creates a new Executor that retrieves all DeviceService associated with a given Addressable ID.
func NewDeviceServiceLoadByAddressableName ¶
func NewDeviceServiceLoadByAddressableName(name string, db DeviceServiceLoader) DeviceServiceGetListExecutor
NewDeviceServiceLoadByAddressableName creates a new Executor that retrieves all DeviceService associated with a given Addressable name.
type DeviceServiceLoader ¶
type DeviceServiceLoader interface { GetAllDeviceServices() ([]contract.DeviceService, error) GetDeviceServiceByName(n string) (contract.DeviceService, error) GetDeviceServiceById(id string) (contract.DeviceService, error) GetDeviceServicesByAddressableId(id string) ([]contract.DeviceService, error) GetAddressableById(id string) (contract.Addressable, error) GetAddressableByName(name string) (contract.Addressable, error) }
type DeviceServiceUpdater ¶
type DeviceServiceUpdater interface { UpdateDeviceService(ds contract.DeviceService) error DeviceServiceLoader }
type UpdateAdminOrOperatingStateExecutor ¶
type UpdateAdminOrOperatingStateExecutor interface {
Execute() error
}
UpdateAdminOrOperatingStateExecutor updates a device service's AdminState or OperatingState fields.
func NewUpdateAdminStateByIdExecutor ¶
func NewUpdateAdminStateByIdExecutor(id string, as contract.AdminState, db DeviceServiceUpdater) UpdateAdminOrOperatingStateExecutor
NewUpdateAdminStateByIdExecutor updates a device service's AdminState, referencing the DeviceService by ID.
func NewUpdateAdminStateByNameExecutor ¶
func NewUpdateAdminStateByNameExecutor(name string, as contract.AdminState, db DeviceServiceUpdater) UpdateAdminOrOperatingStateExecutor
NewUpdateAdminStateByNameExecutor updates a device service's AdminState, referencing the DeviceService by name.
func NewUpdateOpStateByIdExecutor ¶
func NewUpdateOpStateByIdExecutor(id string, os contract.OperatingState, db DeviceServiceUpdater) UpdateAdminOrOperatingStateExecutor
NewUpdateOpStateByIdExecutor updates a device service's OperatingState, referencing the DeviceService by ID.
func NewUpdateOpStateByNameExecutor ¶
func NewUpdateOpStateByNameExecutor(name string, os contract.OperatingState, db DeviceServiceUpdater) UpdateAdminOrOperatingStateExecutor
NewUpdateOpStateByNameExecutor updates a device service's OperatingState, referencing the DeviceService by name.