app

package
v0.0.0-...-7f3e7ba Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

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 represents an executable.

func NewExec

func NewExec(name string, args ...string) (*Exec, error)

NewExec creates a new executable from one or more arguments.

func (*Exec) AgentData

func (exec *Exec) AgentData() io.ReadWriter

AgentData returns a raw data stream from the agent.

func (*Exec) AgentVersion

func (exec *Exec) AgentVersion() string

AgentVersion returns the agent version running in the process. It may be called only after getAgentVersion succeeds.

func (*Exec) CheckSum

func (exec *Exec) CheckSum() string

CheckSum returns the executable file's SHA512/224 sum.

func (*Exec) Connect

func (exec *Exec) Connect() error

Connect adds sockets, starts, and gets the agent version of exec.

func (*Exec) DataPoints

func (exec *Exec) DataPoints() io.Reader

DataPoints returns a raw stream of data points from the child process.

func (*Exec) Decoder

func (exec *Exec) Decoder() *json.Decoder

Decoder returns a JSON decoder reading from AgentData.

func (*Exec) ExitStatus

func (exec *Exec) ExitStatus() int

ExitStatus returns the process's exit status.

func (*Exec) Run

func (exec *Exec) Run() error

Run runs exec and waits for it to stop.

func (*Exec) Signal

func (exec *Exec) Signal() string

Signal returns the text description of the signal that killed the process, if any.

func (*Exec) Start

func (exec *Exec) Start() error

Start starts the OS process.

func (*Exec) String

func (exec *Exec) String() string

String returns the exectuable path and agent version as a formatted string.

func (*Exec) Wait

func (exec *Exec) Wait()

Wait waits for the process to exit.

Jump to

Keyboard shortcuts

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