Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Host ¶
type Host struct { NodeType string Name string VethName string IfName string Sandbox string IP string MAC string }
Host is a host instance
func AddHost ¶
AddHost will add a host to topology. set docker to true can enable docker container as a host
func AddHostWithConf ¶
func AddHostWithConf(hc HostConfig) (*Host, error)
AddHostWithConf will add a host to topology.
func NewContainer ¶
NewContainer for creating a docker container
type HostConfig ¶
type HostConfig struct {
// contains filtered or unexported fields
}
HostConfig is a host network configuration
func NewHostConfig ¶
func NewHostConfig(name, addr, ifaceName string, mtu int, docker bool, imageRef string) HostConfig
NewHostConfig is a constructor to initial host network configuration.
Click to show internal directories.
Click to hide internal directories.