Documentation
¶
Overview ¶
Package inbox keeps writes waiting for another person's approval, one JSON file each, with the plan of what they would do.
Index ¶
Constants ¶
View Source
const ( Pending = "pending" Approved = "approved" Rejected = "rejected" Failed = "failed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
ID string `json:"id"`
Time time.Time `json:"time"`
Subject identity.Subject `json:"subject"`
Env string `json:"env,omitempty"`
Action string `json:"action"`
Args protocol.Args `json:"args,omitempty"`
// Why is the policy rule that asked for approval; Plan what a dry run said the action would do.
Why string `json:"why,omitempty"`
Plan *protocol.RunResult `json:"plan,omitempty"`
Status string `json:"status"`
By string `json:"by,omitempty"`
Result string `json:"result,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.