solver

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: 13 Imported by: 0

Documentation

Overview

Package solver creates solutions from devices and topologies.

Index

Constants

View Source
const (
	// KNEServiceMapKey is the key to look up the service map in the custom data of a ServiceDUT.
	KNEServiceMapKey = "$KEY_SERVICE_MAP"
)

Variables

This section is empty.

Functions

func Solve

func Solve(ctx context.Context, tb *opb.Testbed, topo *tpb.Topology, partial map[string]string) (*binding.Reservation, error)

Solve creates a new Reservation from a desired testbed and an available topology.

Types

type ServiceATE

type ServiceATE struct {
	*binding.AbstractATE
	Services   map[string]*tpb.Service
	Cert       *tpb.CertificateCfg
	NodeVendor tpb.Vendor
}

ServiceATE is an ATE that contains a service map.

func (*ServiceATE) Service

func (a *ServiceATE) Service(service string) (*tpb.Service, error)

Service returns the KNE service details for a given service name.

type ServiceDUT

type ServiceDUT struct {
	*binding.AbstractDUT
	Services   map[string]*tpb.Service
	Cert       *tpb.CertificateCfg
	NodeVendor tpb.Vendor
}

ServiceDUT is a DUT that contains a service map.

func (*ServiceDUT) Service

func (d *ServiceDUT) Service(service string) (*tpb.Service, error)

Service returns the KNE service details for a given service name.

Jump to

Keyboard shortcuts

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