procx

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcX

type ProcX struct {
	DriverName      drivers.DriverName `json:"driverName"`
	Driver          drivers.Driver     `json:"driver"`
	PassWorkAsArg   bool               `json:"passWorkAsArg"`
	PassWorkAsStdin bool               `json:"passWorkAsStdin"`
	PayloadFile     string             `json:"payloadFile"`
	KeepPayloadFile bool               `json:"KeepPayloadFile"`
	HostEnv         bool               `json:"hostEnv"`
	Bin             string             `json:"bin"`
	Args            []string           `json:"args"`
	// contains filtered or unexported fields
}

func (*ProcX) DoWork

func (j *ProcX) DoWork() error

func (*ProcX) Exec

func (j *ProcX) Exec(stdout, stderr io.Writer) error

Exec will execute the given script, streaming the output to the provided io.Writers. If the script exits with a non-zero exit code, an error will be returned. If the script exits with a zero exit code, no error will be returned.

func (*ProcX) Init added in v0.0.16

func (j *ProcX) Init(envKeyPrefix string) error

func (*ProcX) ParseArgs

func (j *ProcX) ParseArgs(args []string)

func (*ProcX) PayloadString added in v0.0.22

func (j *ProcX) PayloadString() string

Jump to

Keyboard shortcuts

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