Versions in this module Expand all Collapse all v1 v1.4.0 Mar 2, 2019 Changes in this version + func AlreadyInitCheck(dir string, force bool) error + func NodesFromSpecs(specs []*NodeSpec) ([]testbedi.Core, error) + func RegisterPlugin(plg IptbPlugin, force bool) (bool, error) + func WriteNodeSpecs(dir string, specs []*NodeSpec) error + type BasicTestbed struct + func NewTestbed(dir string) BasicTestbed + func (tb *BasicTestbed) Dir() string + func (tb *BasicTestbed) Node(n int) (testbedi.Core, error) + func (tb *BasicTestbed) Nodes() ([]testbedi.Core, error) + func (tb *BasicTestbed) Spec(n int) (*NodeSpec, error) + func (tb *BasicTestbed) Specs() ([]*NodeSpec, error) + func (tb BasicTestbed) Name() string + type IptbPlugin struct + BuiltIn bool + From string + GetAttrDesc testbedi.GetAttrDescFunc + GetAttrList testbedi.GetAttrListFunc + NewNode testbedi.NewNodeFunc + PluginName string + func GetPlugin(name string) (IptbPlugin, bool) + func LoadPlugin(path string) (*IptbPlugin, error) + type NodeSpec struct + Attrs map[string]string + Dir string + Type string + func BuildSpecs(base string, count int, typ string, attrs map[string]string) ([]*NodeSpec, error) + func ReadNodeSpecs(dir string) ([]*NodeSpec, error) + func (ns *NodeSpec) GetAttr(attr string) (string, error) + func (ns *NodeSpec) Load() (testbedi.Core, error) + func (ns *NodeSpec) SetAttr(attr string, val string) + type Testbed interface + Name func() string + Node func(n int) (testbedi.Core, error) + Nodes func() ([]testbedi.Core, error) + Spec func(n int) (*NodeSpec, error) + Specs func() ([]*NodeSpec, error)