device_service

package
v1.2.2-dev.52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

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

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL