Documentation
¶
Overview ¶
Package runstore persists immutable, canonical local run artifacts. It does not upload data or interpret compatibility results.
Index ¶
- Constants
- Variables
- type Payload
- type Record
- type Store
- func (store *Store) Get(reference string, allowLatest bool) (Record, error)
- func (store *Store) List() ([]schema.InstanceID, error)
- func (store *Store) Put(runID schema.InstanceID, payload Payload) (schema.Digest, error)
- func (store *Store) Resolve(reference string, allowLatest bool) (schema.InstanceID, error)
Constants ¶
View Source
const ( RecordSchema = "urn:agentapi-doctor:local-run-record:v1alpha2" DefaultMaxRecordBytes int64 = 64 << 20 )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Payload ¶
Payload keeps the two canonical documents named at the call site so bundle and plan bytes cannot be silently swapped.
type Record ¶
type Record struct {
SchemaVersion string `json:"schema_version"`
RunID schema.InstanceID `json:"run_id"`
BundleDigest schema.Digest `json:"bundle_digest"`
Bundle json.RawMessage `json:"bundle"`
PlanDigest schema.Digest `json:"plan_digest,omitempty"`
Plan json.RawMessage `json:"plan,omitempty"`
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.