contract

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package contract implements the Environment CR contract adapter — the one-way projection from the resolved runtime spec (resolve.ResolvedEnvironmentSpec) to the protobuf contract type (environmentscontractv1alpha1.EnvironmentSpec).

Controllers and domain logic MUST NOT consume the returned contract value. The resolved runtime spec is the authoritative type for all reconciliation decisions. The contract is a serialisation artifact, not a source of truth.

Key generated type facts:

  • SecretStoreProvider → top-level enum (commoncontractv1.SecretStoreProvider). No wrapper message. SecretStore.Provider field takes the enum directly.
  • EnvironmentType → wrapped enum (*commoncontractv1.EnvironmentType). Field carries EnvironmentType_EnvironmentType enum value.
  • All CR refs → *environmentscontractv1alpha1.ObjectRef{Name: "..."}.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToEnvironmentContract

ToEnvironmentContract projects the resolved runtime spec into a protobuf EnvironmentSpec for infrastructure consumers (hashing, comparison, audit).

⚠️ ONE-WAY adapter. MUST NOT be fed back into any controller or domain path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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