Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentContainerID ¶
GetCurrentContainerID attempts to extract the current container ID from the provided file paths. If no files paths are provided, it will default to /proc/1/cpuset, /proc/self/cgroup and /proc/self/mountinfo. It attempts to match the HOSTNAME first then use the fallback method, and returns with the first valid match.
func SetDockerEnv ¶
func SetServerInfo ¶
func SetServerInfo(d *docker.DockerInfo)
Types ¶
type Address ¶
type Address struct { IP string IP6LinkLocal string IP6Global string Port string HostPort string Proto string HostIP string }
func GetContainerAddresses ¶
type Context ¶
type Context []*RuntimeContainer
type DockerImage ¶
func (*DockerImage) String ¶
func (i *DockerImage) String() string
type RuntimeContainer ¶
type RuntimeContainer struct { ID string Created time.Time Addresses []Address Networks []Network Gateway string Name string Hostname string NetworkMode string Image DockerImage Env map[string]string Volumes map[string]Volume Node SwarmNode Labels map[string]string IP string IP6LinkLocal string IP6Global string Mounts []Mount State State }
func (*RuntimeContainer) Equals ¶
func (r *RuntimeContainer) Equals(o RuntimeContainer) bool
func (*RuntimeContainer) PublishedAddresses ¶
func (r *RuntimeContainer) PublishedAddresses() []Address
Click to show internal directories.
Click to hide internal directories.