exec

package
v2.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

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

func New

func New() *Executor

func (*Executor) Exec

func (exe *Executor) Exec(ctx context.Context, exePath string, args []string) (int, error)

func (*Executor) ExecWithEnvs

func (exe *Executor) ExecWithEnvs(ctx context.Context, exePath string, args, envs []string) (int, error)

func (*Executor) ExecWithEnvsAndGetCombinedOutput

func (exe *Executor) ExecWithEnvsAndGetCombinedOutput(ctx context.Context, exePath string, args, envs []string) (string, int, error)

func (*Executor) ExecXSys

func (exe *Executor) ExecXSys(exePath string, args []string) error

func (*Executor) GoInstall

func (exe *Executor) GoInstall(ctx context.Context, path, gobin string) (int, error)

func (*Executor) HdiutilAttach

func (exe *Executor) HdiutilAttach(ctx context.Context, dmgPath, mountPoint string) (int, error)

func (*Executor) HdiutilDetach

func (exe *Executor) HdiutilDetach(ctx context.Context, mountPath string) (int, error)

type Mock

type Mock struct {
	ExitCode int
	Err      error
	Output   string
}

func (*Mock) Exec

func (exe *Mock) Exec(ctx context.Context, exePath string, args []string) (int, error)

func (*Mock) ExecWithEnvs

func (exe *Mock) ExecWithEnvs(ctx context.Context, exePath string, args, envs []string) (int, error)

func (*Mock) ExecWithEnvsAndGetCombinedOutput

func (exe *Mock) ExecWithEnvsAndGetCombinedOutput(ctx context.Context, exePath string, args, envs []string) (string, int, error)

func (*Mock) ExecXSys

func (exe *Mock) ExecXSys(exePath string, args []string) error

func (*Mock) GoInstall

func (exe *Mock) GoInstall(ctx context.Context, path, gobin string) (int, error)

func (*Mock) HdiutilAttach

func (exe *Mock) HdiutilAttach(ctx context.Context, dmgPath, mountPoint string) (int, error)

func (*Mock) HdiutilDetach

func (exe *Mock) HdiutilDetach(ctx context.Context, mountPath string) (int, error)

Jump to

Keyboard shortcuts

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