Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericContainer ¶
type GenericContainer struct { Names []string ID string Image string State string Status string Labels map[string]string Pid int NetworkSettings *GenericMgmtIPs }
Data struct storing generic container data
type GenericMgmtIPs ¶
type MgmtNet ¶
type MgmtNet struct { Network string `yaml:"network,omitempty"` // docker network name Bridge string // linux bridge backing the docker network IPv4Subnet string `yaml:"ipv4_subnet,omitempty"` IPv6Subnet string `yaml:"ipv6_subnet,omitempty"` MTU string `yaml:"mtu,omitempty"` }
mgmtNet struct defines the management network options it is provided via docker network object
type Node ¶
type Node struct { ShortName string LongName string Fqdn string LabDir string // LabDir is a directory related to the node, it contains config items and/or other persistent state Index int Group string Kind string // path to config template file that is used for config generation Config string ResConfig string // path to config file that is actually mounted to the container and is a result of templation NodeType string Position string License string Image string Topology string Sysctls map[string]string User string Entrypoint string Cmd string Env map[string]string Binds []string // Bind mounts strings (src:dest:options) PortBindings nat.PortMap // PortBindings define the bindings between the container ports and host ports PortSet nat.PortSet // PortSet define the ports that should be exposed on a container // container networking mode. if set to `host` the host networking will be used for this node, else bridged network NetworkMode string MgmtNet string // name of the docker network this node is connected to with its first interface MgmtIPv4Address string MgmtIPv4PrefixLength int MgmtIPv6Address string MgmtIPv6PrefixLength int MacAddress string ContainerID string TLSCert string TLSKey string TLSAnchor string NSPath string // network namespace path for this node Publish []string //list of ports to publish with mysocketctl // container labels Labels map[string]string // Slice of pointers to local endpoints Endpoints []*Endpoint }
Node is a struct that contains the information of a container element
func (*Node) GenerateConfig ¶
GenerateConfig generates configuration for the nodes
Click to show internal directories.
Click to hide internal directories.