exec

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 5 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 {
	WorkDir  string
	UseProot bool
	UseQemu  string
	Log      *log.Logger
	// contains filtered or unexported fields
}

func New

func New(workDir string, logger *log.Logger, opts ...Option) (*Executor, error)

func (*Executor) Execute

func (e *Executor) Execute(name string, arg ...string) error

Execute executes the named program with the given arguments.

func (*Executor) ExecuteChroot

func (e *Executor) ExecuteChroot(name string, arg ...string) error

ExecuteChroot executes the named program with the given arguments inside a chroot. TODO(kaniini): Add support for using qemu-binfmt here for multiarch.

func (*Executor) SetImplementation added in v0.3.0

func (e *Executor) SetImplementation(i executorImplementation)

type Option

type Option func(*Executor) error

func WithProot

func WithProot(proot bool) Option

func WithQemu

func WithQemu(qemuArch string) Option

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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