solver

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 13 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 ServiceName added in v0.4.8

func ServiceName(svc introspect.Service) (string, bool)

ServiceName returns the name of the specified service in KNE.

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