Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment interface {
//Executes a command within the environment.
Execute(cmd string, args []string) (stdOut []byte, err error)
//Executes a command within the environment and immediately return
ExecuteAsync(cmd string, args []string) (err error)
//Sends a string to the StdIn of the main program process
ExecuteInMainProcess(cmd string) (err error)
//Kills the main process, but leaves the environment running.
Kill() (err error)
//Creates the environment setting needed to run programs.
Create() (err error)
//Deletes the environment.
Delete() (err error)
Update() (err error)
IsRunning() (isRunning bool)
WaitForMainProcess() (err error)
WaitForMainProcessFor(timeout int) (err error)
GetRootDirectory() string
GetConsole() (console []string, epoch int64)
GetConsoleFrom(time int64) (console []string, epoch int64)
AddListener(ws *websocket.Conn)
GetStats() (map[string]interface{}, error)
DisplayToConsole(msg string)
}
func LoadEnvironment ¶
func LoadEnvironment(environmentType, folder, id string, environmentSection map[string]interface{}) Environment
Click to show internal directories.
Click to hide internal directories.