restoreverify

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package restoreverify verifies the read-only integrity surface of a restored deployment: evidence chains and their content-addressed objects, the global audit chain, and applied migration metadata.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditResult

type AuditResult struct {
	Intact    bool   `json:"intact"`
	Verified  int    `json:"verified"`
	Unchained int    `json:"unchained"`
	Head      string `json:"head"`
	Error     string `json:"error,omitempty"`
}

type EvidenceChainResult

type EvidenceChainResult struct {
	EngagementID string         `json:"engagement_id"`
	Intact       bool           `json:"intact"`
	Head         string         `json:"head"`
	Count        int            `json:"count"`
	Error        string         `json:"error,omitempty"`
	Objects      []ObjectResult `json:"objects"`
}

type ObjectResult

type ObjectResult struct {
	EvidenceID    string `json:"evidence_id"`
	Reference     string `json:"reference,omitempty"`
	Exists        bool   `json:"exists"`
	IdentityMatch bool   `json:"identity_match"`
	SHA256        string `json:"sha256,omitempty"`
	Error         string `json:"error,omitempty"`
}

type Result

type Result struct {
	Intact         bool                      `json:"intact"`
	Completeness   string                    `json:"completeness"`
	EvidenceChains []EvidenceChainResult     `json:"evidence_chains"`
	Audit          AuditResult               `json:"audit"`
	Migrations     []ports.MigrationMetadata `json:"migrations"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(evidenceReader ports.RestoreEvidenceReader, blobs ports.RestoreBlobReader, migrations ports.RestoreMigrationReader, auditReader ports.RestoreAuditReader, expected ...ports.RestoreExpectedState) (*Service, error)

NewService validates read-only dependencies. At most one expected-state manifest may be supplied.

func (*Service) Verify

func (s *Service) Verify(ctx context.Context) (Result, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL