devcontainer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CONTAINER_COMMAND = "docker"

Variables

View Source
var DEVCONTAINRE_ARGS_PREFIX = []string{"up"}

Functions

func ExecuteDevcontainer

func ExecuteDevcontainer(args []string, devcontainerFilePath string, vimFilePath string)

func GetContainerId

func GetContainerId(upCommandResult string) (string, error)

Types

type UpCommandResult

type UpCommandResult struct {
	Outcome               string `json:"outcome"`
	ContainerId           string `json:"containerId"`
	ComposeProjectName    string `json:"composeProjectName"`
	RemoteUser            string `json:"remoteUser"`
	RemoteWorkspaceFolder string `json:"remoteWorkspaceFolder"`
}

`devcontainers up` コマンドの実行結果スキーマ

Example: {"outcome":"success","containerId":"7278c789a975c34177e0b77d00477d5518c4fae4e66e6f0f9196561d5f895740","composeProjectName":"oasiz-mqtt-client","remoteUser":"root","remoteWorkspaceFolder":"/work"}

func UnmarshalUpCommandResult

func UnmarshalUpCommandResult(data []byte) (UpCommandResult, error)

Jump to

Keyboard shortcuts

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