cvd

package
v0.0.0-...-cbd771f Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CVDBin      = "/usr/bin/cvd"
	FetchCVDBin = "/usr/bin/fetch_cvd"
)

Variables

This section is empty.

Functions

func Exec

func Exec(ctx CVDExecContext, name string, args ...string) error

func LogCombinedStdoutStderr

func LogCombinedStdoutStderr(cmd *exec.Cmd, val string)

func LogStderr

func LogStderr(cmd *exec.Cmd, val string)

func OutputLogMessage

func OutputLogMessage(output string) string

Types

type CVDExecContext

type CVDExecContext = func(ctx context.Context, env []string, name string, arg ...string) *exec.Cmd

type Command

type Command struct {
	// contains filtered or unexported fields
}

func NewCommand

func NewCommand(execContext CVDExecContext, args []string, opts CommandOpts) *Command

func (*Command) Run

func (c *Command) Run() error

type CommandExecErr

type CommandExecErr struct {
	// contains filtered or unexported fields
}

func (*CommandExecErr) Error

func (e *CommandExecErr) Error() string

func (*CommandExecErr) Unwrap

func (e *CommandExecErr) Unwrap() error

type CommandOpts

type CommandOpts struct {
	AndroidHostOut string
	Home           string
	Stdout         io.Writer
}

Jump to

Keyboard shortcuts

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