Documentation ¶
Index ¶
- Constants
- Variables
- func BuildImage(cfg *config.DevContainer, env config.Env, stdout, stderr io.Writer) error
- func HasDocker() bool
- type Container
- func (c *Container) AddScript(name string, dstPath string, templatedContent string) error
- func (c *Container) Exec(env config.Env, stdin io.Reader, stdout, stderr io.Writer) error
- func (c *Container) Exists(name string) (string, error)
- func (c *Container) Rm() error
- func (c *Container) RunCommand(cmd []string) error
- func (c *Container) RunScript(cmd string, args ...string) error
- func (c *Container) Setup() error
- func (c *Container) Start() error
- func (c *Container) Stop() error
- type TemplateScriptParams
Constants ¶
View Source
const ( DefaultContainerEntrypoint = "/bin/sh" DefaultContainerCommand = "echo Container started ; trap \"exit 0\" 15; while sleep 1 & wait $!; do :; done" DefaultContainerHostname = "localpod" )
Variables ¶
View Source
var (
ErrExistsButDifferent = fmt.Errorf("container exists, but does not match configuration")
)
Functions ¶
func BuildImage ¶ added in v0.0.3
Types ¶
type Container ¶
type Container struct { ID string Name string Config *config.DevContainer }
func CreateContainer ¶
func (*Container) RunCommand ¶
type TemplateScriptParams ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.