raw

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Package raw provides raw client APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ATEAPIs

type ATEAPIs struct {
	// contains filtered or unexported fields
}

ATEAPIs provides access to raw DUT protocol APIs.

func NewATEAPIs

func NewATEAPIs(ate binding.ATE) *ATEAPIs

NewATEAPIs returns a new instance of raw ATE APIs. Tests must not call this directly.

func (*ATEAPIs) GNMI

func (r *ATEAPIs) GNMI() *GNMIAPI

GNMI provides access to creating raw gNMI clients for the dut.

func (*ATEAPIs) IxNetwork

func (r *ATEAPIs) IxNetwork(t testing.TB) *ixweb.Session

IxNetwork returns the raw IxNetwork session for the ATE. TODO(team): Add unit tests once raw APIs is factored out into its own package.

type DUTAPIs

type DUTAPIs struct {
	// contains filtered or unexported fields
}

DUTAPIs provides access to raw DUT protocol APIs.

func NewDUTAPIs

func NewDUTAPIs(dut binding.DUT) *DUTAPIs

NewDUTAPIs returns a new instance of raw DUT APIs. Tests must not call this directly.

func (*DUTAPIs) CLI

func (r *DUTAPIs) CLI(t testing.TB) StreamClient

CLI returns a new streaming CLI client for the DUT.

func (*DUTAPIs) Console

func (r *DUTAPIs) Console(t testing.TB) StreamClient

Console returns a new Console client for the DUT.

func (*DUTAPIs) GNMI

func (r *DUTAPIs) GNMI() *GNMIAPI

GNMI provides access to creating raw gNMI clients for the dut.

func (*DUTAPIs) GNOI

func (r *DUTAPIs) GNOI() *GNOIAPI

GNOI provides access to creating raw gNOI clients for the dut.

func (*DUTAPIs) GRIBI

func (r *DUTAPIs) GRIBI() *GRIBIAPI

GRIBI provides access to createing raw gRIBI clients for the dut.

func (*DUTAPIs) P4RT

func (r *DUTAPIs) P4RT() *P4RTAPI

P4RT provides access to creating raw P4RT clients for the dut.

type GNMIAPI

type GNMIAPI struct {
	// contains filtered or unexported fields
}

GNMIAPI provides access for creating a default or new gNMI client on the DUT.

func (*GNMIAPI) Default

func (g *GNMIAPI) Default(t testing.TB) gpb.GNMIClient

Default returns the default gNMI client for the DUT.

func (*GNMIAPI) New

func (g *GNMIAPI) New(t testing.TB) gpb.GNMIClient

New returns a new gNMI client for the dut.

type GNOI

type GNOI interface {
	// contains filtered or unexported methods
}

GNOI stores APIs to GNOI services.

type GNOIAPI

type GNOIAPI struct {
	// contains filtered or unexported fields
}

GNOIAPI provides access to creating raw gNOI clients for the dut.

func (*GNOIAPI) Default

func (g *GNOIAPI) Default(t testing.TB) GNOI

Default returns the default gNOI client for the dut.

func (*GNOIAPI) New

func (g *GNOIAPI) New(t testing.TB) GNOI

New returns a new gNOI client for the dut.

type GRIBIAPI

type GRIBIAPI struct {
	// contains filtered or unexported fields
}

GRIBIAPI provides access to creating raw gRIBI clients for the DUT.

func (*GRIBIAPI) Default

func (g *GRIBIAPI) Default(t testing.TB) grpb.GRIBIClient

Default returns the default gRIBI client for the dut.

func (*GRIBIAPI) New

func (g *GRIBIAPI) New(t testing.TB) grpb.GRIBIClient

New returns a new gRIBI client for the dut.

type P4RTAPI

type P4RTAPI struct {
	// contains filtered or unexported fields
}

P4RTAPI provides access for creating a default or new GRIBI client on the DUT.

func (*P4RTAPI) Default

func (p *P4RTAPI) Default(t testing.TB) p4pb.P4RuntimeClient

Default returns the default P4RT client on the DUT.

func (*P4RTAPI) New

New returns a P4RT client on the DUT.

type StreamClient

type StreamClient interface {
	// contains filtered or unexported methods
}

StreamClient provides the interface for streaming IO to DUT.

Jump to

Keyboard shortcuts

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