Documentation ¶
Overview ¶
Package cvclient defines an interface for connecting to and communicating with CloudVision.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CVClient ¶
type CVClient interface { // Clients will usually communicate with CloudVision using gNMI // but can use some other protocol as well, all they need to do // is to implement the GNMIClient interface. gnmi.GNMIClient // SendDeviceMetadata sends metadata for the device to CV. SendDeviceMetadata(ctx context.Context) error // SendPeriodicUpdate sends information about device liveness to CV. SendHeartbeat(ctx context.Context, alive bool) error // ForProvider returns a new client instance for the same device but // customized for a specific provider. ForProvider(p provider.GNMIProvider) CVClient // SetManagedDevices sets the current list of managed device IDs. The list // is pushed in the next heartbeat cycle. SetManagedDevices([]string) }
CVClient defines the interface that needs to be implemented for communicating with CloudVision.
Directories ¶
Path | Synopsis |
---|---|
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
Package v1 implements the version v1 client for communicating with CloudVision.
|
Package v1 implements the version v1 client for communicating with CloudVision. |
Package v2 implements the v2 protocol for communicating with CloudVision.
|
Package v2 implements the v2 protocol for communicating with CloudVision. |
Click to show internal directories.
Click to hide internal directories.