cvclient

package
v0.0.0-...-6419794 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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