Documentation
¶
Index ¶
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.