Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { Config *openvpn.Config ID string DockerID string Name string RouteTableID int IPAddress string }
func NewContainer ¶
func NewContainerFromID ¶
type ContainerInspectOutput ¶
type ContainerInspectOutput struct { ID string `json:"Id"` Args []string `json:"Args"` State struct { Status string `json:"Status"` Running bool `json:"Running"` Paused bool `json:"Paused"` Restarting bool `json:"Restarting"` OOMKilled bool `json:"OOMKilled"` Dead bool `json:"Dead"` Pid int `json:"Pid"` ExitCode int `json:"ExitCode"` Error string `json:"Error"` } `json:"State"` Image string `json:"Image"` Name string `json:"Name"` Config struct { Labels map[string]string `json:"Labels"` } `json:"Config"` NetworkSettings struct { Networks map[string]struct { Gateway string `json:"Gateway"` IPAddress string `json:"IPAddress"` IPPrefixLen int `json:"IPPrefixLen"` MacAddress string `json:"MacAddress"` } `json:"Networks"` } `json:"NetworkSettings"` }
type DNSRouter ¶
func NewDNSRouter ¶
TODO: how to prevent multiple creation? It only seems possible to use
iptables -C if the mark value is known, but what if someone else instantiated us with a different mark?
Click to show internal directories.
Click to hide internal directories.