testbed

package
v0.14.3 Latest Latest
Warning

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

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

Documentation

Overview

Package testbed implements Testing API for a testbed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ATE

func ATE(res *binding.Reservation, id string) (binding.ATE, error)

ATE returns the ATE in the specified reservation with the specified ID.

func DUT

func DUT(res *binding.Reservation, id string) (binding.DUT, error)

DUT returns the DUT in the specified reservation with the specified ID.

func Device

func Device(res *binding.Reservation, id string) (binding.Device, error)

Device returns the Device in the specified reservation with the specified ID.

func Port

func Port(rd binding.Device, id string) (*binding.Port, error)

Port returns the port in the specified dimensions with the specified ID.

func Release

func Release(ctx context.Context) error

Release releases the testbed. This is a noop if the reservation is not currently reserved or if the reservation was fetched and not created or if skipRelease is true.

func Reservation

func Reservation() (*binding.Reservation, error)

Reservation returns the current reservation.

func Reserve

func Reserve(ctx context.Context, fv *flags.Values) error

Reserve reserves the testbed.

func SetBinding

func SetBinding(b binding.Binding)

SetBinding sets the Ondatra binding.

func SetReservationForTesting

func SetReservationForTesting(r *binding.Reservation)

SetReservationForTesting sets Ondatra to a state in which the specified reservation has been reserved. A nil reservation argument sets Ondatra to an unreserved state. This is only called by fakebind for testing purposes.

func SkipReservationRelease added in v0.14.3

func SkipReservationRelease()

SkipReservationRelease prevents the reservation from being released.

Types

This section is empty.

Jump to

Keyboard shortcuts

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