Documentation
¶
Index ¶
- Constants
- Variables
- func Cp(tagForLog string, from string, containerId string, to string) error
- func GetContainerIdFromWorkspaceFolder(workspaceFolder string) (string, error)
- func GetId(psCommandResult string) (string, error)
- func Ps(filter string) (string, error)
- func Rm(containerId string) error
- func Run(args []string, vimFilePath string, cdrPath string, configDirForDocker string, ...)
- type PsCommandResult
Constants ¶
View Source
const CONTAINER_COMMAND = "docker"
Variables ¶
View Source
var DOCKER_RUN_ARGS_PREFIX = []string{"run", "-d", "--rm"}
View Source
var DOCKER_RUN_ARGS_SUFFIX = []string{"sh", "-c", "trap \"exit 0\" TERM; sleep infinity & wait"}
Functions ¶
func GetContainerIdFromWorkspaceFolder ¶
workspaceFolder で指定したディレクトリに対応するコンテナのコンテナ ID を返却する
Types ¶
type PsCommandResult ¶
type PsCommandResult struct {
Id string `json:"ID"`
}
`docker ps --format json` コマンドの実行結果スキーマ
Example:
{
}
func UnmarshalPsCommandResult ¶
func UnmarshalPsCommandResult(data []byte) (PsCommandResult, error)
Click to show internal directories.
Click to hide internal directories.