container

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	types.ContainerJSON
}

Container holds information about a container.

func (Container) HostnamesFromEnv

func (c Container) HostnamesFromEnv(envName string) []string

HostnamesFromEnv a container, return them as string slices.

func (Container) HostnamesFromLabel added in v0.0.71

func (c Container) HostnamesFromLabel(label string) []string

HostnamesFromLabel a container, return them as string slices.

func (Container) IPAddresses

func (c Container) IPAddresses() []string

IPAddresses returns a slice of the IPv4 addresses of the container.

func (Container) Name

func (c Container) Name() string

Name is the containers name without the leading '/'.

func (Container) Services

func (c Container) Services() map[string]uint16

Services from a container.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL