shell

package
v1.27.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetShell

func GetShell(userName string) ([]string, error)

func PrepareProviderShellForeground

func PrepareProviderShellForeground(parentPID int) (cleanup func(), err error)

func ProviderExecHandler

func ProviderExecHandler() interp.ExecHandlerFunc

func RunEmulatedShell

func RunEmulatedShell(
	ctx context.Context,
	runner *CommandRunner,
) error

func RunProviderShell

func RunProviderShell(ctx context.Context, invocation ProviderShellInvocation) error

Types

type CommandRunner added in v1.16.0

type CommandRunner struct {
	Command     string
	Environ     []string
	Stdin       io.Reader
	Stdout      io.Writer
	Stderr      io.Writer
	ExecHandler interp.ExecHandlerFunc
}

type ProviderShellInvocation

type ProviderShellInvocation struct {
	ScriptPath string
	ForcePath  string
	AckPath    string
	ParentPID  int
}

Jump to

Keyboard shortcuts

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