solver

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package solver creates solutions from devices and topologies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Solve

func Solve(tb *opb.Testbed, topo *tpb.Topology) (*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