box

package
v0.41.0-geaaru Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

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

func PivotRoot

func PivotRoot(newroot string) error

Types

type Box

type Box interface {
	Run() error
	Exec() error
}

func NewBox

func NewBox(cmd string, args, hostmounts, env []string,
	rootfs string, stdin, stdout, stderr bool,
	cfg *config.LuetConfig) Box

func NewFchrootBox

func NewFchrootBox(cmd string, args, hostmounts, env []string,
	rootfs string, stdin, stdout, stderr bool,
	cfg *config.LuetConfig) Box

type DefaultBox

type DefaultBox struct {
	Name                  string
	Root                  string
	Env                   []string
	Cmd                   string
	Args                  []string
	HostMounts            []string
	Stdin, Stdout, Stderr bool
}

func (*DefaultBox) Exec

func (b *DefaultBox) Exec() error

func (*DefaultBox) Run

func (b *DefaultBox) Run() error

type FchrootBox

type FchrootBox struct {
	*DefaultBox
	Config *config.LuetConfig
}

func (*FchrootBox) Exec

func (f *FchrootBox) Exec() error

func (*FchrootBox) Run

func (f *FchrootBox) Run() error

Jump to

Keyboard shortcuts

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