runner

package
v0.0.0-...-710c5b5 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProcessGroup

func NewProcessGroup(consumer *state.Consumer, cmd *exec.Cmd, ctx context.Context) (*processGroup, error)

func PathLooksLikeAppBundle

func PathLooksLikeAppBundle(dir string) bool

Types

type AttachParams

type AttachParams struct {
	BringWindowToForeground func(hwnd int64)
}

type FirejailParams

type FirejailParams struct {
	BinaryPath string
}

type FujiParams

type FujiParams struct {
	Settings             *fuji.Settings
	PerformElevatedSetup func() error
}

type MacLaunchTarget

type MacLaunchTarget struct {
	Path        string
	IsAppBundle bool
}

func PrepareMacLaunchTarget

func PrepareMacLaunchTarget(params RunnerParams) (*MacLaunchTarget, error)

PrepareMacLaunchTarget looks at a path and tries to figure out if it's a mac app bundle, an executable inside of a mac app bundle, or just as naked executable.

func (*MacLaunchTarget) String

func (t *MacLaunchTarget) String() string

type Runner

type Runner interface {
	Prepare() error
	Run() error
}

func GetRunner

func GetRunner(params RunnerParams) (Runner, error)

type RunnerParams

type RunnerParams struct {
	Consumer *state.Consumer
	Ctx      context.Context

	Sandbox bool
	Console bool

	FullTargetPath string

	Name   string
	Dir    string
	Args   []string
	Env    []string
	Stdout io.Writer
	Stderr io.Writer

	InstallFolder string
	TempDir       string
	Runtime       ox.Runtime

	FirejailParams FirejailParams
	FujiParams     FujiParams
	AttachParams   AttachParams
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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