docker

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyResults

func CopyResults(ctx context.Context, cli *client.Client, container string, destinationPath string) error

func CopySnapshot

func CopySnapshot(ctx context.Context, cli *client.Client, container string, destinationPath string) error

func CreateContainerDir

func CreateContainerDir(ctx context.Context, cli *client.Client, container string, dirName string, uid int, gid int, mode int64) error

func GetMasterConfig

func GetMasterConfig(ctx context.Context, cli *client.Client, container string, containerConfigPath string) ([]byte, error)

func GetMasterInfo

func GetMasterInfo(ctx context.Context, cli *client.Client) (string, uint16, error)

GetMasterInfo returns the container id and the internal qmstr port of the master container configured via QMSTR_MASTER environment variable

func RunClientContainer

func RunClientContainer(ctx context.Context, cli *client.Client, clientConfig *ClientContainer) error

func WriteContainerFile

func WriteContainerFile(ctx context.Context, cli *client.Client, data []byte, container string, destination string) error

Types

type ClientContainer

type ClientContainer struct {
	Image             string
	MasterContainerID string
	QmstrInternalPort uint16
	Cmd               []string
	Env               []string
	Mount             []mount.Mount
}

Jump to

Keyboard shortcuts

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