Documentation ¶
Index ¶
- func GetTimeoutSeconds() int
- func Init(socketPath string)
- func SetTimeoutSeconds(secs int)
- type CloseOnce
- type Cmd
- func (c *Cmd) CombinedOutput() ([]byte, error)
- func (c *Cmd) Connect(ctx context.Context, opts ...grpc.CallOption) error
- func (c *Cmd) Kill() error
- func (c *Cmd) Output() ([]byte, error)
- func (c *Cmd) Run() error
- func (c *Cmd) Start() error
- func (c *Cmd) StderrPipe() (io.ReadCloser, error)
- func (c *Cmd) StdinPipe() (io.WriteCloser, error)
- func (c *Cmd) StdoutPipe() (io.ReadCloser, error)
- func (c *Cmd) Wait() error
- type Executor
- type ExitError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTimeoutSeconds ¶
func GetTimeoutSeconds() int
func SetTimeoutSeconds ¶
func SetTimeoutSeconds(secs int)
Types ¶
type Cmd ¶
type Cmd struct { *Executor Path string Args []string Env []string Dir string Stdin io.Reader Stdout io.Writer Stderr io.Writer // contains filtered or unexported fields }
func (*Cmd) CombinedOutput ¶
func (*Cmd) StderrPipe ¶
func (c *Cmd) StderrPipe() (io.ReadCloser, error)
func (*Cmd) StdoutPipe ¶
func (c *Cmd) StdoutPipe() (io.ReadCloser, error)
Click to show internal directories.
Click to hide internal directories.