Documentation
¶
Overview ¶
Package run launches an agent under a budget and turns its usage into rows.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Argv []string
Budget decimal.Decimal
// BillingAccount fills BillingAccountId. Empty reads unknown.
BillingAccount string
// Credential fills SubAccountId. Empty reads null.
Credential string
// CI is what the CI system says about the run. Its tags are claims: the
// rows stay unverified and unattributed until a server checks them.
CI cicontext.Context
Rows io.Writer
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
Catalog *catalog.Catalog
// Now is the clock. Nil means time.Now.
Now func() time.Time
// Grace is how long a stopped agent has before SIGKILL.
Grace time.Duration
}
Options describes one run.
type Result ¶
type Result struct {
Agent string
AgentExit int
Stopped bool
Enforcement adapter.Enforcement
Report adapter.Report
Rows int
ListTotal decimal.Decimal
}
Result is what the run came to.
Click to show internal directories.
Click to hide internal directories.