processes

package
v0.0.0-...-d02b2c3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPath = "PATH=/usr/local/bin:/usr/bin:/bin"
View Source
const DefaultRootPath = "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

Variables

This section is empty.

Functions

func UnixEnvFor

func UnixEnvFor(bndl goci.Bndl, spec garden.ProcessSpec, containerUID int) []string

func WindowsEnvFor

func WindowsEnvFor(bndl goci.Bndl, spec garden.ProcessSpec, _ int) []string

Types

type EnvDeterminer

type EnvDeterminer interface {
	EnvFor(bndl goci.Bndl, spec garden.ProcessSpec, containerUID int) []string
}

type EnvFunc

type EnvFunc func(bndl goci.Bndl, spec garden.ProcessSpec, containerUID int) []string

func (EnvFunc) EnvFor

func (fn EnvFunc) EnvFor(bndl goci.Bndl, spec garden.ProcessSpec, containerUID int) []string

type ProcBuilder

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

func NewBuilder

func NewBuilder(envDeterminer EnvDeterminer, nonRootMaxCaps []string) *ProcBuilder

func (*ProcBuilder) BuildProcess

func (p *ProcBuilder) BuildProcess(bndl goci.Bndl, spec garden.ProcessSpec, user *users.ExecUser) *specs.Process

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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