device

package
v0.6.16 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 7 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(topodevice.ID) (*topodevice.Device, error)

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

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

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

Store is a device store

func NewStore

func NewStore(client topodevice.DeviceServiceClient) (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