Versions in this module Expand all Collapse all v0 v0.2.0 Jul 14, 2026 v0.1.0 Jul 13, 2026 Changes in this version + const ReadinessBlocked + const ReadinessReady + const SeverityBlocking + const SeverityError + const SeverityInfo + const SeverityWarning + const StatusFresh + const StatusStale + var ErrNotFound = errors.New("validation result not found") + func ExitCodeFor(diagnostics []Diagnostic) int + func ReadinessFor(diagnostics []Diagnostic) string + func SortDiagnostics(diagnostics []Diagnostic) + type Diagnostic struct + Code string + DocumentationURL string + EntityRef string + FixSuggestion string + Message string + Path string + Severity string + func Validate(input Input) []Diagnostic + type Input struct + Effective map[string]any + EnvironmentID string + EnvironmentKind string + PackRef string + RestrictedDeletes []RestrictedDelete + type RestrictedDelete struct + EntityID string + EntityType string + type Result struct + Diagnostics []Diagnostic + EnvironmentID string + Readiness string + Status string + ValidatedAt time.Time + ValidatedDraftRevision uint64 + type Store struct + func NewMemory() *Store + func Open(path string) (*Store, error) + func (s *Store) Get(environmentID string, currentDraftRevision uint64) (Result, error) + func (s *Store) Save(result Result) error