policy

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package policy binds verification policy bytes to plans and approvals.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binding

type Binding struct {
	UID    types.UID
	Digest string
}

Binding identifies one immutable verification-policy object and the exact bytes selected from it. The UID prevents delete-and-recreate aliasing.

func ConfigMapBinding

func ConfigMapBinding(ctx context.Context, reader client.Reader, namespace string, selector *corev1.ConfigMapKeySelector) (Binding, error)

ConfigMapBinding reads exactly the selected key and returns the immutable object UID plus the digest of the bytes a ConfigMap volume would project. Verification policies are public configuration, never credentials.

Jump to

Keyboard shortcuts

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