devices

package
v0.0.0-...-36aec5d Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevicesManager

type DevicesManager struct {
	managers.Manager
	StateProvider states.IStateProvider
}

func (*DevicesManager) DeleteState

func (t *DevicesManager) DeleteState(ctx context.Context, name string, namespace string) error

func (*DevicesManager) GetState

func (t *DevicesManager) GetState(ctx context.Context, name string, namespace string) (model.DeviceState, error)

func (*DevicesManager) Init

func (s *DevicesManager) Init(context *contexts.VendorContext, config managers.ManagerConfig, providers map[string]providers.IProvider) error

func (*DevicesManager) ListState

func (t *DevicesManager) ListState(ctx context.Context, namespace string) ([]model.DeviceState, error)

func (*DevicesManager) UpsertState

func (t *DevicesManager) UpsertState(ctx context.Context, name string, state model.DeviceState) error

Jump to

Keyboard shortcuts

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