Versions in this module Expand all Collapse all v1 v1.0.0 May 23, 2023 Changes in this version + var SupportedRuntimes []RuntimeType = []RuntimeType + func BootCmdForScript(bootNames []string) string + func PrependEnvsPrefix(cmd string, env map[string]string, soft bool) (string, error) + type AllCmdConfigs struct + func (c *AllCmdConfigs) Add(pkgName string, cmdConfig *CmdConfig) + func (c *AllCmdConfigs) Persist(mpmDir string) error + type CmdConfig struct + ConfigSetDefault string + ConfigSets map[string]Runtime + RuntimeType RuntimeType + func ParsePackageRunManifestData(cmdConfigData []byte) (*CmdConfig, error) + type CommonRuntime struct + Base string + Env map[string]string + func (r CommonRuntime) BuildBootCmd(bootCmd string, cmdConfs map[string]*CmdConfig, env map[string]string) (string, error) + func (r CommonRuntime) GetYamlTemplate() string + func (r CommonRuntime) Validate() error + type RunConfig struct + Bridge string + Cmd string + Cpus int + GCEUploadDir string + Hypervisor string + ImageName string + InstanceName string + MAC string + Memory string + NatRules []nat.Rule + Networking string + Persist bool + Verbose bool + Volumes []string + type Runtime interface + GetBootCmd func(cmdConfs map[string]*CmdConfig, env map[string]string) (string, error) + GetDependencies func() []string + GetRuntimeDescription func() string + GetRuntimeName func() string + GetYamlTemplate func() string + Validate func() error + func PackageRunManifestGeneral(cmdConfigFile string) (Runtime, error) + func PickRuntime(runtimeName RuntimeType) (Runtime, error) + type RuntimeType string + const Java + const Native + const NodeJS + const Python