Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arg ¶
type Arg string
Arg appends a single argument to the list of arguments
This option can be specified multiple times to provide multiple arguments. Please keep in mind that the order is maintained.
func (Arg) ApplyExecCmd ¶
type Arguments ¶
type Arguments []string
Arguments appends multiple arguments to the list of arguments
func (Arguments) ApplyExecCmd ¶
type CombinedWriter ¶
CombinedWriter allows passing an io.Writer to which all outputs of the standard and error output of the sub-process are written.
func Combined ¶
func Combined(wr io.Writer) CombinedWriter
func (CombinedWriter) ApplyCmd ¶
func (s CombinedWriter) ApplyCmd(c *g.Cmd)
type DisableASLR ¶
type DisableASLR bool
DisableASLR will start the sub-process with Address Space Layout Randomization disabled
See: https://en.wikipedia.org/wiki/Address_space_layout_randomization
func (DisableASLR) ApplyCmd ¶
func (da DisableASLR) ApplyCmd(d *g.Cmd)
type Envs ¶
type Envs []string
Envs appends additional environment variables.
func (Envs) ApplyExecCmd ¶
type ExtraFile ¶
ExtraFile appends an additional file to the list of file descriptors which are passed on to the sub-process.
func (*ExtraFile) ApplyExecCmd ¶
type PreserveEnv ¶ added in v2.6.0
type PreserveEnv string
A name of an environment variable which should be preserved from the parent process. If not provided PATH will be preserved by default. See gont.DefaultPreserveEnvVars
func (PreserveEnv) ApplyCmd ¶ added in v2.6.0
func (e PreserveEnv) ApplyCmd(c *g.Cmd)
type Scope ¶ added in v2.10.0
type Scope string
Scope sets the name of the systemd scope / CGroup in which the command should be started.
type StderrWriter ¶
StderrWriter allows passing an io.Writer to which all outputs of the standard error output of the sub-process are written.
func Stderr ¶
func Stderr(wr io.Writer) StderrWriter
func (StderrWriter) ApplyCmd ¶
func (s StderrWriter) ApplyCmd(c *g.Cmd)
type StdinReader ¶
Stdin set the standard input reader
func Stdin ¶
func Stdin(rd io.Reader) StdinReader
func (StdinReader) ApplyExecCmd ¶
func (s StdinReader) ApplyExecCmd(c *exec.Cmd)
type StdoutWriter ¶
StdoutWriter allows passing an io.Writer to which all outputs of the standard output of the sub-process are written.
func Stdout ¶
func Stdout(wr io.Writer) StdoutWriter
func (StdoutWriter) ApplyCmd ¶
func (s StdoutWriter) ApplyCmd(c *g.Cmd)
type SysProcAttr ¶
type SysProcAttr syscall.SysProcAttr
SysProcAttr allows to set system specific process attributes.
func (*SysProcAttr) ApplyExecCmd ¶
func (s *SysProcAttr) ApplyExecCmd(c *exec.Cmd)