rendercycle

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package rendercycle binds one rendered output to every effect produced by the same controller reconciliation under an authenticated immutable root.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authority

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

Authority owns one render-cycle lineage and its exact output lineage.

func NewAuthority

func NewAuthority(outputs *renderoutput.Authority) (*Authority, error)

NewAuthority binds a render-output lineage to a new render-cycle lineage.

func (*Authority) ValidateAuthentication

func (a *Authority) ValidateAuthentication() error

ValidateAuthentication verifies the authority's exact lineage binding.

func (*Authority) ValidateSnapshot

func (a *Authority) ValidateSnapshot(snapshot *Snapshot) error

ValidateSnapshot proves that snapshot belongs to this render-cycle lineage.

type Occurrence

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

Occurrence identifies one execution that produced an authenticated cycle.

func NewOccurrence

func NewOccurrence(snapshot *Snapshot) (*Occurrence, error)

NewOccurrence seals a new process-local occurrence of snapshot.

func (*Occurrence) Proof

func (o *Occurrence) Proof() (string, error)

Proof returns the diagnostic process-local occurrence identifier.

func (*Occurrence) Same

func (o *Occurrence) Same(other *Occurrence) (bool, error)

Same reports whether other is this exact occurrence.

func (*Occurrence) Snapshot

func (o *Occurrence) Snapshot() (*Snapshot, error)

Snapshot returns the exact cycle bound to this occurrence.

func (*Occurrence) ValidateAuthentication

func (o *Occurrence) ValidateAuthentication() error

ValidateAuthentication verifies the occurrence and its exact cycle binding.

type Snapshot

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

Snapshot is one authenticated immutable render output and effect set.

func NewSnapshot

func NewSnapshot(
	authority *Authority,
	output *renderoutput.Snapshot,
	statusPatches *templating.StatusPatchSnapshot,
	events *templating.RenderedEventSnapshot,
	renderedResources *templating.RenderedResourceSnapshot,
	previous *Snapshot,
) (*Snapshot, error)

NewSnapshot validates and seals one complete render cycle. Previous is reused only when every supplied child has the same authenticated root.

func (*Snapshot) ContentChecksum

func (s *Snapshot) ContentChecksum() (string, error)

ContentChecksum returns the checksum authenticated by the bound output root.

func (*Snapshot) ExactEqual

func (s *Snapshot) ExactEqual(other *Snapshot) (bool, error)

ExactEqual compares every output byte, declaration, and effect. It is an explicit full fallback; checksums only reject unequal outputs.

func (*Snapshot) OutputSnapshot

func (s *Snapshot) OutputSnapshot() (*renderoutput.Snapshot, error)

OutputSnapshot returns the exact authenticated rendered-output root.

func (*Snapshot) RenderedEventSnapshot

func (s *Snapshot) RenderedEventSnapshot() (*templating.RenderedEventSnapshot, error)

RenderedEventSnapshot returns the exact authenticated rendered-event root.

func (*Snapshot) RenderedResourceSnapshot

func (s *Snapshot) RenderedResourceSnapshot() (*templating.RenderedResourceSnapshot, error)

RenderedResourceSnapshot returns the exact authenticated desired-resource root.

func (*Snapshot) SameRoot

func (s *Snapshot) SameRoot(other *Snapshot) (bool, error)

SameRoot reports exact authenticated render-cycle root identity.

func (*Snapshot) StatusPatchSnapshot

func (s *Snapshot) StatusPatchSnapshot() (*templating.StatusPatchSnapshot, error)

StatusPatchSnapshot returns the exact authenticated status-patch root.

func (*Snapshot) ValidateAuthentication

func (s *Snapshot) ValidateAuthentication() error

ValidateAuthentication verifies the complete composite root in constant time.

Jump to

Keyboard shortcuts

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