Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareCommand ¶
func PrepareCommand(p *PrepareCommandParams) (*exec.Cmd, error)
PrepareCommand will download necessary component and returns a *exec.Cmd
func RunComponent ¶
func RunComponent(env *environment.Environment, tag, spec, binPath string, args []string) error
RunComponent start a component and wait it
Types ¶
type PrepareCommandParams ¶ added in v1.2.0
type PrepareCommandParams struct { Ctx context.Context Component string Version pkgver.Version BinPath string Tag string InstanceDir string WD string Args []string SysProcAttr *syscall.SysProcAttr Env *environment.Environment CheckUpdate bool }
PrepareCommandParams for PrepareCommand.
Click to show internal directories.
Click to hide internal directories.