{"modulePath":"github.com/macaroni-os/mark-devkit","version":"v0.36.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package executor\n\nCopyright © 2024-2026 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.\n\nCopyright © 2024-2026 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.\n\nCopyright © 2024-2026 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.\n\n## Types\n\n```go\ntype ExecutorWriter struct {\n\tType  string\n\tQuiet bool\n}\n```\n\n```go\nfunc NewExecutorWriter(t string, q bool) *ExecutorWriter\n```\n\n```go\nfunc (w *ExecutorWriter) Close() error\n```\n\n```go\nfunc (w *ExecutorWriter) Write(p []byte) (int, error)\n```\n\n```go\ntype FchrootExecutor struct {\n\tConfig *specs.MarkDevkitConfig\n\tLogger *log.MarkDevkitLogger\n\n\tOpts       *FchrootOpts\n\tQuiet      bool\n\tEntrypoint []string\n}\n```\n\n```go\nfunc NewFchrootExecutor(c *specs.MarkDevkitConfig, o *FchrootOpts) *FchrootExecutor\n```\n\n```go\nfunc (f *FchrootExecutor) RunCommandWithOutput(\n\tcommand string, envs map[string]string,\n\toutBuffer, errBuffer io.WriteCloser,\n\tentrypoint []string,\n\trootfsdir string,\n\tbinds map[string]string) (int, error)\n```\n\n```go\ntype FchrootOpts struct {\n\tVerbose     bool\n\tDebug       bool\n\tPreserveEnv bool\n\tCpu         string\n\tNoBind      bool\n}\n```\n\n```go\nfunc NewFchrootOpts() *FchrootOpts\n```\n\n```go\nfunc (o *FchrootOpts) GetFlags(binds map[string]string) []string\n```\n\n```go\ntype HostExecutor struct {\n\tConfig *specs.MarkDevkitConfig\n\tLogger *log.MarkDevkitLogger\n\n\tEntrypoint []string\n\tQuiet      bool\n}\n```\n\n```go\nfunc NewHostExecutor(c *specs.MarkDevkitConfig) *HostExecutor\n```\n\n```go\nfunc (h *HostExecutor) RunCommandWithOutput(\n\tcommand string, envs map[string]string,\n\toutBuffer, errBuffer io.WriteCloser,\n\tentryPoint []string) (int, error)\n```\n\n","path":"github.com/macaroni-os/mark-devkit/pkg/executor","name":"executor","synopsis":"","isRedistributable":true}
