Documentation ¶
Overview ¶
Package knebind provides an Ondatra binding for KNE devices.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bind ¶
Bind implements the ondatra Binding interface for KNE
func (*Bind) Reserve ¶
func (b *Bind) Reserve(ctx context.Context, tb *opb.Testbed, runTime time.Duration, waitTime time.Duration, partial map[string]string) (*binding.Reservation, error)
Reserve implements the binding Reserve method by finding nodes and links in the topology specified in the config file that match the requested testbed.
type Config ¶
type Config struct { // TODO(team): Deprecate username and password fields. Username, Password string Credentials *creds.Credentials `yaml:"credentials"` Topology string `yaml:"topology"` Kubeconfig string `yaml:"kubecfg"` SkipReset bool `yaml:"skip_reset"` }
Config contains parameters to configure the KNE binding.
func ParseConfigFile ¶
ParseConfigFile parses a yaml file containing a serialized Config.
Directories ¶
Path | Synopsis |
---|---|
Package creds contains logic for KNE credentials.
|
Package creds contains logic for KNE credentials. |
Package init installs the Ondatra binding for testing with kne clusters.
|
Package init installs the Ondatra binding for testing with kne clusters. |
Package solver creates solutions from devices and topologies.
|
Package solver creates solutions from devices and topologies. |
Click to show internal directories.
Click to hide internal directories.