executor

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutorWriter

type ExecutorWriter struct {
	Type  string
	Quiet bool
}

func NewExecutorWriter

func NewExecutorWriter(t string, q bool) *ExecutorWriter

func (*ExecutorWriter) Close

func (w *ExecutorWriter) Close() error

func (*ExecutorWriter) Write

func (w *ExecutorWriter) Write(p []byte) (int, error)

type FchrootExecutor

type FchrootExecutor struct {
	Config *specs.MarkDevkitConfig
	Logger *log.MarkDevkitLogger

	Opts       *FchrootOpts
	Quiet      bool
	Entrypoint []string
}

func NewFchrootExecutor

func NewFchrootExecutor(c *specs.MarkDevkitConfig, o *FchrootOpts) *FchrootExecutor

func (*FchrootExecutor) RunCommandWithOutput

func (f *FchrootExecutor) RunCommandWithOutput(
	command string, envs map[string]string,
	outBuffer, errBuffer io.WriteCloser,
	entrypoint []string,
	rootfsdir string,
	binds map[string]string) (int, error)

type FchrootOpts

type FchrootOpts struct {
	Verbose     bool
	Debug       bool
	PreserveEnv bool
	Cpu         string
	NoBind      bool
}

func NewFchrootOpts

func NewFchrootOpts() *FchrootOpts

func (*FchrootOpts) GetFlags

func (o *FchrootOpts) GetFlags(binds map[string]string) []string

type HostExecutor

type HostExecutor struct {
	Config *specs.MarkDevkitConfig
	Logger *log.MarkDevkitLogger

	Entrypoint []string
	Quiet      bool
}

func NewHostExecutor

func NewHostExecutor(c *specs.MarkDevkitConfig) *HostExecutor

func (*HostExecutor) RunCommandWithOutput

func (h *HostExecutor) RunCommandWithOutput(
	command string, envs map[string]string,
	outBuffer, errBuffer io.WriteCloser,
	entryPoint []string) (int, error)

Jump to

Keyboard shortcuts

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