Documentation
¶
Index ¶
- Variables
- type Container
- type DockerCmd
- func Build(contextDir string, targetStage string, dockerFilePath string, ...) DockerCmd
- func Exec(containerId string, env []string, privileged bool, user string, workDir string, ...) DockerCmd
- func FromArgs(args []string) DockerCmd
- func FromArgsInput(args []string, in string) DockerCmd
- func Login(configDir string, user string, pw string, repo string) DockerCmd
- func LsContainers(format string) DockerCmd
- func Push(tag string) DockerCmd
- func Run(imageName string, volumes []string, dnsAddrs []string, env []string, ...) DockerCmd
- func Tag(src string, target string) DockerCmd
- func (cmd DockerCmd) Exec() error
- func (cmd DockerCmd) ExecV() error
- func (cmd DockerCmd) ExecVPanic()
- func (cmd DockerCmd) Output() (string, error)
- func (cmd DockerCmd) OutputPanic() string
- func (cmd DockerCmd) ToCliArgs() []string
- func (cmd DockerCmd) WithCfg(cfgDir string) DockerCmd
- func (cmd DockerCmd) WithInput(in string) DockerCmd
Constants ¶
This section is empty.
Variables ¶
View Source
var DatastaxDns = []string{"10.100.6.66", "10.100.6.67"}
Internal datastax DNS addresses to use for distros (like Alpine) that do not query DNS servers in order.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { Id string `json:"ID"` Image string `json:"Image"` Command string `json:"Command"` CreatedAt string `json:"CreatedAt"` RunningFor string `json:"RunningFor"` Status string `json:"Status"` Size string `json:"Size"` Names string `json:"Names"` Labels string `json:"Labels"` Mounts string `json:"Mounts"` Networks string `json:"Networks"` Ports string `json:"Ports"` LocalVolumes string `json:"LocalVolumes"` }
func GetAllContainersPanic ¶
func GetAllContainersPanic() []Container
type DockerCmd ¶
func FromArgsInput ¶
func LsContainers ¶
func (DockerCmd) ExecVPanic ¶
func (cmd DockerCmd) ExecVPanic()
func (DockerCmd) OutputPanic ¶
Click to show internal directories.
Click to hide internal directories.