Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Runner ¶
type Runner interface {
Run(cmd string, args ...string) ([]byte, error)
RunEnv(cmd string, env []string, args ...string) ([]byte, error)
RunContext(ctx context.Context, cmd string, args ...string) ([]byte, error)
RunContextParseOutput(ctx context.Context, stdoutH, stderrH func(line string), cmd string, args ...string) error
}
type System ¶
type System struct {
// contains filtered or unexported fields
}
func NewSystem ¶
func NewSystem(opts ...SystemOpts) (*System, error)
type SystemOpts ¶
func WithFS ¶
func WithFS(fs vfs.FS) SystemOpts
func WithLogger ¶
func WithLogger(logger log.Logger) SystemOpts
func WithMounter ¶
func WithMounter(mounter mounter.Interface) SystemOpts
func WithPlatform ¶
func WithPlatform(pf string) SystemOpts
func WithRunner ¶
func WithRunner(runner Runner) SystemOpts
func WithSyscall ¶
func WithSyscall(syscall Syscall) SystemOpts
Click to show internal directories.
Click to hide internal directories.