package links
import "github.com/docker/cli/components/engine/daemon/links"
Index ¶
Types ¶
type Link ¶
type Link struct { // Parent container IP address ParentIP string // Child container IP address ChildIP string // Link name Name string // Child environments variables ChildEnvironment []string // Child exposed ports Ports []nat.Port }
Link struct holds informations about parent/child linked container
func NewLink ¶
func NewLink(parentIP, childIP, name string, env []string, exposedPorts map[nat.Port]struct{}) *Link
NewLink initializes a new Link struct with the provided options.
func (*Link) ToEnv ¶
ToEnv creates a string's slice containing child container informations in the form of environment variables which will be later exported on container startup.
Source Files ¶
- Version
- v17.10.0-ce-rc1+incompatible
- Published
- Oct 4, 2017
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 5 minutes ago –
Tools for package owners.