Documentation ¶
Index ¶
- func Configure()
- func DumpToFile(c *AppConfig, path string) error
- func InitLogger()
- func SetDefaultBool(p **bool, val bool)
- func SetDefaultInt(p **int, val int)
- func SetDefaultString(p **string, val string)
- type AppConfig
- type CmdConfig
- type Dut
- type Endpoint
- type EndpointKind
- type IxiaC
- type Node
- type Topology
- type TopologyPlatform
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpToFile ¶
func InitLogger ¶
func InitLogger()
func SetDefaultBool ¶
func SetDefaultInt ¶
func SetDefaultString ¶
Types ¶
type AppConfig ¶
type AppConfig struct { Topologies *[]*Topology `yaml:"topologies"` Endpoints *[]*Endpoint `yaml:"endpoints"` Nodes *[]*Node `yaml:"nodes"` }
func GetAppConfig ¶
func GetAppConfig() *AppConfig
func LoadFromBytes ¶
func LoadFromFile ¶
func (*AppConfig) SetDefaults ¶
func (v *AppConfig) SetDefaults()
type CmdConfig ¶
type CmdConfig struct { Home string `yaml:"home"` Debug bool `yaml:"debug"` Quiet bool `yaml:"quiet"` Config string `yaml:"config"` }
func GetCmdConfig ¶
func GetCmdConfig() *CmdConfig
type Dut ¶
type Dut struct {
Image *string `yaml:"image"`
}
func (*Dut) SetDefaults ¶
func (v *Dut) SetDefaults()
type Endpoint ¶
type Endpoint struct { Name *string `yaml:"name"` Kind *EndpointKind `yaml:"kind"` IxiaC *IxiaC `yaml:"ixia_c"` Dut *Dut `yaml:"dut"` }
func (*Endpoint) SetDefaults ¶
func (v *Endpoint) SetDefaults()
type EndpointKind ¶
type EndpointKind string
const ( EndpointKindIxiaC EndpointKind = "ixia_c" EndpointKindDut EndpointKind = "dut" )
func (*EndpointKind) IsValid ¶
func (t *EndpointKind) IsValid() bool
type IxiaC ¶
type IxiaC struct { Release *string `yaml:"release"` Free *bool `yaml:"free"` Controller *string `yaml:"controller"` TrafficEngine *string `yaml:"traffic_engine"` }
func (*IxiaC) SetDefaults ¶
func (v *IxiaC) SetDefaults()
type Node ¶
type Node struct { Host *string `yaml:"host"` Port *int `yaml:"port"` User *string `yaml:"user"` Master *bool `yaml:"master"` }
func (*Node) DockerHost ¶
func (*Node) SetDefaults ¶
func (v *Node) SetDefaults()
type Topology ¶
type Topology struct { Name *string `yaml:"name"` CreateLinks *bool `yaml:"create_links"` Platform *TopologyPlatform `yaml:"platform"` Links *[]string `yaml:"links"` }
func (*Topology) SetDefaults ¶
func (v *Topology) SetDefaults()
type TopologyPlatform ¶
type TopologyPlatform string
const ( TopologyPlatformDocker TopologyPlatform = "docker" TopologyPlatformKind TopologyPlatform = "kind" )
func (*TopologyPlatform) IsValid ¶
func (t *TopologyPlatform) IsValid() bool
Click to show internal directories.
Click to hide internal directories.