Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Status ¶
func Bootstrap ¶
func Bootstrap( ctx context.Context, listener net.Listener, cmd *exec.Cmd, config *Config, ) (*Status, runtime.Stopper, error)
Bootstrap starts a VM as a subprocess after initialization completes and pipes the IO to the appropriate writers.
The subprocess is expected to be stopped by the caller if a non-nil error is returned. If piping the IO fails then the subprocess will be stopped.
TODO: create the listener inside this method once we refactor the tests
Click to show internal directories.
Click to hide internal directories.