Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exec ¶
type Exec struct {
// contains filtered or unexported fields
}
Exec is an in-memory executable code unit.
func New ¶
New creates new memory execution object that can be used for executing commands on a memory based binary.
func (*Exec) Close ¶
Close closes Exec object.
Any further command will fail, it's client's responsibility to control the flow by using synchronization algorithms.
type Option ¶ added in v0.7.0
type Option func(e *Exec)
func WithCleanup ¶ added in v0.7.0
WithCleanup is executed right after Exec.Close.
func WithPrepare ¶ added in v0.7.0
WithPrepare configures cmd with default values such as Env, Dir, etc.
Click to show internal directories.
Click to hide internal directories.