_exec

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

* Copyright (c) 2025 System233 * * This software is released under the MIT License. * https://opensource.org/licenses/MIT

Index

Constants

View Source
const ExecCommandHelp = `` /* 2640-byte string literal not displayed */

Variables

View Source
var ExecFlag struct {
	Mounts []string
	// UidMappings   []string
	// GidMappings   []string
	UID               int
	GID               int
	Args              []string
	RootFS            string
	Socket            string
	SocketTimeout     time.Duration
	AutoExit          bool
	Root              bool
	Wait              bool
	WaitTimeout       time.Duration
	NoFail            bool
	NoBindRootFS      bool
	NsEnter           bool
	NsType            []string
	FuseOverlayFS     string
	FuseOverlayFSArgs string
}

Functions

func CreateExecCommand

func CreateExecCommand() *cobra.Command

func ExecMain

func ExecMain(cmd *cobra.Command, args []string) error

func ExecShell

func ExecShell() error

func ExecSystem

func ExecSystem() error

func GetExecArgs

func GetExecArgs() []string

func MountFileSystem

func MountFileSystem() error

func NewPtyFromFlags

func NewPtyFromFlags() *pty.Pty

func PivotRootSystem

func PivotRootSystem() error

func StartMountFileSystem

func StartMountFileSystem() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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