shell

package
v0.0.0-...-d323686 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_UID = "-"
	DEFAULT_GID = "-"
)

Variables

This section is empty.

Functions

func SetGID

func SetGID(gid string)

func SetUID

func SetUID(uid string)

Types

type Config

type Config struct {
	CMD   []string
	UID   string
	GID   string
	Rexec Rexec
}

type Rexec

type Rexec func(args ...string) *exec.Cmd

type ShellRuntime

type ShellRuntime struct {
	// contains filtered or unexported fields
}

func NewShellRuntime

func NewShellRuntime(cfg Config) *ShellRuntime

func (*ShellRuntime) HealthCheck

func (r *ShellRuntime) HealthCheck(_ context.Context) error

func (*ShellRuntime) Run

func (r *ShellRuntime) Run(ctx context.Context, t *types.Task) error

func (*ShellRuntime) Stop

func (r *ShellRuntime) Stop(_ context.Context, t *types.Task) error

Jump to

Keyboard shortcuts

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