release

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManifestName   = "release-manifest.json"
	ManifestSchema = 1
)

Variables

This section is empty.

Functions

func CurrentTarget

func CurrentTarget() string

func Seal added in v0.10.2

func Seal(root string) error

Seal removes write permission from a verified release tree. Runtime state belongs outside releases, and keeping installed bundles immutable prevents platform metadata such as Finder's .DS_Store from invalidating the manifest.

func TransportCapabilities added in v0.13.1

func TransportCapabilities(manifest Manifest) (app, relay []string)

TransportCapabilities returns the transports supported by an installed release. Releases created before this metadata existed spoke E2EE v1 only.

func ValidateUpgradeCompatibility added in v0.13.1

func ValidateUpgradeCompatibility(current, target Manifest) error

ValidateUpgradeCompatibility requires both app-first and relay-first rollout windows to remain connected. An incompatible transport change therefore needs an intermediate bridge release that supports both transports.

func WebHashFS

func WebHashFS(filesystem fs.FS) (string, error)

Types

type Manifest

type Manifest struct {
	Schema          int               `json:"schema"`
	Version         string            `json:"version"`
	Revision        string            `json:"revision"`
	Target          string            `json:"target"`
	WebHash         string            `json:"web_hash,omitempty"`
	AppTransports   []string          `json:"app_transports,omitempty"`
	RelayTransports []string          `json:"relay_transports,omitempty"`
	Files           map[string]string `json:"files"`
}

func Build

func Build(root, version, revision, target string) (Manifest, error)

func Load

func Load(root string) (Manifest, error)

func Verify

func Verify(root, expectedTarget string) (Manifest, error)

Jump to

Keyboard shortcuts

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