exec

package
v1.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareBinary added in v1.9.0

func PrepareBinary(component string, version utils.Version, binPath string) (string, error)

PrepareBinary use given binpath or download from tiup mirror

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 {
	Component   string
	Version     utils.Version
	BinPath     string
	Tag         string
	InstanceDir string
	Args        []string
	Env         *environment.Environment
}

PrepareCommandParams for PrepareCommand.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL