introspect

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package introspect provides an API to introspect grpc binding connections.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnDetails

type ConnDetails struct {
	DevicePort      int
	DefaultDial     func(context.Context, string, ...grpc.DialOption) (*grpc.ClientConn, error)
	DefaultTarget   string
	DefaultDialOpts []grpc.DialOption
}

ConnDetails provides details of a grpc binding connection.

func Introspect

func Introspect(t testing.TB, dut *ondatra.DUTDevice, service Service) *ConnDetails

Introspect returns the grpc connection details for the specified service. It fails if the device does not meet the Introspector interface or if the connection details cannot be retrieved.

type Introspector

type Introspector interface {
	ConnDetails(Service) (*ConnDetails, error)
}

Introspector is an interface to introspect grpc binding connections.

type Service

type Service string

Service is an enum of provided services.

const (
	GNMI  Service = "gnmi"
	GNOI  Service = "gnoi"
	GNSI  Service = "gnsi"
	GRIBI Service = "gribi"
	P4RT  Service = "p4rt"
)

Enums of provided services.

Jump to

Keyboard shortcuts

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