raw

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 8 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 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) GNSI added in v0.2.1

func (r *DUTAPIs) GNSI() *GNSIAPI

GNSI provides access to creating raw gNSI 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 GNSI added in v0.2.1

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

GNSI stores APIs to GNSI services.

type GNSIAPI added in v0.2.1

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

GNSIAPI provides access to creating raw gNSI client for the DUT.

func (*GNSIAPI) Default added in v0.2.1

func (g *GNSIAPI) Default(t testing.TB) GNSI

Default returns the default gNSI client for the dut.

func (*GNSIAPI) New added in v0.2.1

func (g *GNSIAPI) New(t testing.TB) GNSI

New returns a new gNSI 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