exec

package
v2.10.2-1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 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) 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)

func (*Executor) UnarchivePkg added in v2.7.0

func (exe *Executor) UnarchivePkg(ctx context.Context, pkgFilePath, dest 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) 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)

func (*Mock) UnarchivePkg added in v2.7.0

func (exe *Mock) UnarchivePkg(ctx context.Context, pkgFilePath, dest string) (int, error)

Jump to

Keyboard shortcuts

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