v1

package
v0.0.0-...-1768917 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1 implements the version v1 client for communicating with CloudVision.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewV1Client

func NewV1Client(gc gnmi.GNMIClient, deviceID string, isMgmtSystem bool) cvclient.CVClient

NewV1Client returns a new v1client object.

Types

type Metadata

type Metadata struct {
	DeviceID string
	// TypeCheck indicates whether the gNMI server should perform OpenConfig type-checking.
	TypeCheck bool
	// OpenConfig indicates whether transmitted gNMI data is OpenConfig-modeled.
	OpenConfig       bool
	DeviceType       *string
	Alive            *bool
	CollectorVersion string
}

Metadata represents all grpc metadata about a device.

func NewMetadataFromIncoming

func NewMetadataFromIncoming(ctx context.Context) (Metadata, error)

NewMetadataFromIncoming returns a metadata from an incoming context.

func NewMetadataFromOutgoing

func NewMetadataFromOutgoing(ctx context.Context) (Metadata, error)

NewMetadataFromOutgoing returns a metadata from an outgoing context.

Jump to

Keyboard shortcuts

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