Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Op ¶
type Op struct { Identifier string `json:"-"` Result interface{} `json:"result"` ErrString string `json:"error"` // this simplifies json marshaling Error error `json:"-"` Status Status `json:"status"` Params map[string]interface{} `json:"params,omitempty"` }
Op seeks information via its Runner then stores the results.
type Status ¶
type Status string
Status describes the result of an operation.
const ( // Success means all systems green Success Status = "success" // Fail means that we detected a known error and can conclusively say that the runner did not complete. Fail Status = "fail" // Unknown means that we detected an error and the result is indeterminate (e.g. some side effect like disk or // network may or may not have completed) or we don't recognize the error. If we don't recognize the error that's // a signal to improve the error handling to account for it. Unknown Status = "unknown" // Skip means that this Op was intentionally not run Skip Status = "skip" )
Click to show internal directories.
Click to hide internal directories.