device

package
v0.10.12 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	// Get gets a device by ID
	Get(device.ID) (*device.Device, error)

	// Update updates a given device
	Update(*device.Device) (*device.Device, error)

	// List lists the devices in the store
	List(chan<- *device.Device) error

	// Watch watches the device store for changes
	Watch(chan<- *device.ListResponse) error
}

Store is a device store

func NewStore

func NewStore(client topo.TopoClient) (Store, error)

NewStore returns a new device store for the given client

func NewTopoStore

func NewTopoStore(topoEndpoint string, opts ...grpc.DialOption) (Store, error)

NewTopoStore returns a new topo-based device store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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