Documentation ¶
Index ¶
- func CreateExitCommandArgs(storageConfig storageTypes.StoreOptions, config *config.Config, ...) ([]string, error)
- func CreateExpose(expose []string) (map[uint16]string, error)
- func CreatePortBindings(ports []string) ([]types.PortMapping, error)
- func FillOutSpecGen(s *specgen.SpecGenerator, c *entities.ContainerCreateOptions, args []string) error
- func ReadPodIDFile(path string) (string, error)
- func ReadPodIDFiles(files []string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateExitCommandArgs ¶
func CreateExitCommandArgs(storageConfig storageTypes.StoreOptions, config *config.Config, syslog, rm, exec bool) ([]string, error)
func CreateExpose ¶
CreateExpose parses user-provided exposed port definitions and converts them into SpecGen format. TODO: The SpecGen format should really handle ranges more sanely - we could be massively inflating what is sent over the wire with a large range.
func CreatePortBindings ¶
func CreatePortBindings(ports []string) ([]types.PortMapping, error)
CreatePortBindings iterates ports mappings into SpecGen format.
func FillOutSpecGen ¶
func FillOutSpecGen(s *specgen.SpecGenerator, c *entities.ContainerCreateOptions, args []string) error
func ReadPodIDFile ¶
ReadPodIDFile reads the specified file and returns its content (i.e., first line).
func ReadPodIDFiles ¶
ReadPodIDFiles reads the specified files and returns their content (i.e., first line).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.