package links
import "github.com/docker/docker/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
- v1.10.3
- Published
- Mar 9, 2016
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 44 minutes ago –
Tools for package owners.