secretresolver

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package secretresolver provides the product-neutral resolver seam for typed Piglet secret refs. Raw Pig registers no resolver; products contribute namespaced schemes and enforce their own authorization.

pig additive (D18): product-neutral Piglet secret resolver seam.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(scheme string, resolver Resolver) error

Register installs one namespaced resolver. Duplicate schemes fail so import order cannot change authorization behavior.

func Resolve

func Resolve(ctx context.Context, ref string) ([]byte, error)

Resolve validates `<scheme>:<opaque-id>` and invokes that exact resolver.

func Supports

func Supports(scheme string) bool

Supports reports whether a resolver is installed for scheme.

Types

type Resolver

type Resolver func(context.Context, string) ([]byte, error)

Resolver resolves one opaque identifier to secret bytes. Implementations must not log or wrap errors with the returned value.

Jump to

Keyboard shortcuts

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