exec

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 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
	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 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