shell

package
v0.1.96 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 18 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
	Broker mq.Broker
}

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(ctx context.Context) error

func (*ShellRuntime) Run

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

func (*ShellRuntime) Stop

func (r *ShellRuntime) Stop(ctx context.Context, t *tork.Task) error

Jump to

Keyboard shortcuts

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