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
Click to show internal directories.
Click to hide internal directories.