upstream

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package upstream records the upstream monorepo domains that this fork tracks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SHA256Hex

func SHA256Hex(raw []byte) string

SHA256Hex returns the lower-case SHA-256 digest for raw bytes.

func Validate

func Validate(m Manifest) error

Validate checks that the manifest has enough metadata and does not overclaim.

Types

type CoverageStatus

type CoverageStatus string

CoverageStatus describes how much local evidence backs an upstream domain.

const (
	CoverageStatusVectorBacked   CoverageStatus = "vector-backed"
	CoverageStatusStructuralOnly CoverageStatus = "structural-only"
	CoverageStatusDeferred       CoverageStatus = "deferred"
)

Coverage status values used by the upstream manifest.

type Domain

type Domain struct {
	Name                    string         `json:"name"`
	UpstreamPath            string         `json:"upstream_path"`
	LocalPath               string         `json:"local_path,omitempty"`
	ReportPath              string         `json:"report_path,omitempty"`
	CoverageStatus          CoverageStatus `json:"coverage_status"`
	ChecksumPath            string         `json:"checksum_path,omitempty"`
	ChecksumSHA256          string         `json:"checksum_sha256,omitempty"`
	StructuralOnlyReason    string         `json:"structural_only_reason,omitempty"`
	OfficialAppInteropClaim bool           `json:"official_app_interop_claim"`
	Notes                   string         `json:"notes,omitempty"`
}

Domain records one upstream monorepo domain and the local evidence boundary.

type Manifest

type Manifest struct {
	UpstreamTag string   `json:"upstream_tag"`
	Domains     []Domain `json:"domains"`
}

Manifest describes local coverage for selected upstream libsignal monorepo domains at a pinned upstream release.

func Load

func Load() (Manifest, error)

Load returns the embedded upstream manifest after validating conservative coverage claims.

func (Manifest) ByDomain

func (m Manifest) ByDomain() map[string]Domain

ByDomain indexes manifest domains by name.

Jump to

Keyboard shortcuts

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