shell

package
v0.19.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultUid = "-"
	DefaultGid = "-"
)

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 Runtime

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

func NewShellRuntime

func NewShellRuntime(cfg Config) *Runtime

func (*Runtime) HealthCheck

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

func (*Runtime) Run

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

func (*Runtime) Stop

func (r *Runtime) 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