Documentation ¶
Index ¶
- Constants
- Variables
- func FindPidWithName(name string) int
- type Cmd
- func (this *Cmd) Process() *os.Process
- func (this *Cmd) RawStderr() string
- func (this *Cmd) RawStdout() string
- func (this *Cmd) Run() error
- func (this *Cmd) Start() error
- func (this *Cmd) Stderr() string
- func (this *Cmd) Stdout() string
- func (this *Cmd) String() string
- func (this *Cmd) Wait() error
- func (this *Cmd) WithDir(dir string) *Cmd
- func (this *Cmd) WithEnv(env []string) *Cmd
- func (this *Cmd) WithStderr() *Cmd
- func (this *Cmd) WithStdout() *Cmd
- func (this *Cmd) WithTimeout(timeout time.Duration) *Cmd
- type Logger
- type ProgressWriter
Constants ¶
View Source
const (
ProcDir = "/proc"
)
Variables ¶
Functions ¶
func FindPidWithName ¶
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
func (*Cmd) WithStderr ¶
func (*Cmd) WithStdout ¶
type ProgressWriter ¶
type ProgressWriter struct {
// contains filtered or unexported fields
}
func NewProgressWriter ¶
func NewProgressWriter(rawWriter io.Writer, total int64) *ProgressWriter
func (*ProgressWriter) Progress ¶
func (this *ProgressWriter) Progress() float32
Click to show internal directories.
Click to hide internal directories.