Documentation
¶
Overview ¶
Package localcompletion coordinates a caller-owned local workflow. Its receipts are observations, never harness attestation or semantic authority.
Index ¶
- Constants
- func HashSession(raw string) string
- func ReadPlan(name string) ([]byte, error)
- func SessionKey(explicit string) (string, error)
- type Check
- type CheckObservation
- type Evaluation
- func Begin(ctx context.Context, root, key string, raw []byte) (Evaluation, error)
- func Cancel(ctx context.Context, root, key string) (Evaluation, error)
- func Evaluate(ctx context.Context, root, key string) (Evaluation, error)
- func Finish(ctx context.Context, root, key string, command PublicCommand) (Evaluation, error)
- func Review(ctx context.Context, root, key, reportDigest string) (Evaluation, error)
- func Verify(ctx context.Context, root, key, checkID string) (Evaluation, error)
- type EvidenceWorklist
- type IntentPointer
- type Plan
- type PublicCommand
Constants ¶
View Source
const (
MaxPlanBytes = 64 << 10
)
Variables ¶
This section is empty.
Functions ¶
func HashSession ¶
func ReadPlan ¶
ReadPlan reads one bounded regular caller-owned input. Errors contain no rejected plan body or filesystem path.
func SessionKey ¶
Types ¶
type CheckObservation ¶
type CheckObservation struct {
ID string `json:"id"`
Qualified bool `json:"qualified"`
Argv []string `json:"argv"`
TestedCommit string `json:"testedCommit,omitempty"`
CurrentTarget string `json:"currentTarget"`
Exit int `json:"exit"`
TimedOut bool `json:"timedOut"`
Cancelled bool `json:"cancelled"`
SecretScreened bool `json:"secretScreened"`
Stdout string `json:"stdout,omitempty"`
Stderr string `json:"stderr,omitempty"`
}
type Evaluation ¶
type Evaluation struct {
Lifecycle string `json:"lifecycle"`
Satisfied bool `json:"satisfied"`
Unmet []string `json:"unmet"`
Base string `json:"base,omitempty"`
Target string `json:"target,omitempty"`
PlanDigest string `json:"planDigest,omitempty"`
Intents []string `json:"intents"`
IntentPointers []IntentPointer `json:"intentPointers"`
ReportSetDigest string `json:"reportSetDigest,omitempty"`
Reports []string `json:"reports,omitempty"`
NextActions [][]string `json:"nextActions,omitempty"`
Checks []CheckObservation `json:"checks,omitempty"`
Plan *Plan `json:"plan,omitempty"`
Evidence []EvidenceWorklist `json:"evidence,omitempty"`
}
func Finish ¶
func Finish(ctx context.Context, root, key string, command PublicCommand) (Evaluation, error)
type EvidenceWorklist ¶
type IntentPointer ¶
Click to show internal directories.
Click to hide internal directories.