runtime

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSecretResolver

func BuildSecretResolver(vars env.Environment) (*secret.MultiResolver, error)

BuildSecretResolver constructs the resolver chain based on environment variables.

func DecodeFanOutConfig

func DecodeFanOutConfig(raw []byte) (*jobdefschema.FanOut, error)

DecodeFanOutConfig unmarshals the catalog Task.FanOutConfig JSON onto the job-definition FanOut struct. Nil/empty raw returns (nil, nil).

func InterpolateParamRefs

func InterpolateParamRefs(env map[string]string, params map[string]string) (map[string]string, error)

InterpolateParamRefs substitutes ${CAESIUM_PARAM_<NAME>} in env values from run parameters. Callers must apply it to the step-declared env before the cache hash is computed and before the container is created, so two runs with different params cannot cache-hit on a shared token and so reagents that are not a shell (git-source GIT_REF) see the substituted value.

Unresolved references fail closed: the token is never left in place and never replaced with an empty string. An explicitly empty param value is present and is substituted as empty. Param keys that fold to the same strings.ToUpper name (SHA vs sha) fail closed so the selected value cannot depend on map iteration order. After substitution, a value that is a secret:// URI and differs from the job-definition original is rejected: secret identifiers must stay static so a trigger caller cannot select which secret is resolved. The returned map is a copy; env is never mutated. Command/args are not interpolated.

func ResolveContainerSpecSecrets

func ResolveContainerSpecSecrets(ctx context.Context, resolver secret.Resolver, spec container.Spec) (container.Spec, error)

ResolveContainerSpecSecrets resolves secret:// values in the step-declared environment at container-create time. It leaves non-secret values unchanged and returns a copied spec so callers do not mutate cached atom specs.

Types

type ResolvedSecretIdentity

type ResolvedSecretIdentity struct {
	EnvKey   string
	Ref      string
	Identity secret.Identity
}

ResolvedSecretIdentity is the identity metadata captured for one resolved environment secret reference.

func ResolveContainerSpecSecretsWithIdentities

func ResolveContainerSpecSecretsWithIdentities(ctx context.Context, resolver secret.Resolver, spec container.Spec) (container.Spec, []ResolvedSecretIdentity, error)

ResolveContainerSpecSecretsWithIdentities resolves secret:// values and returns the provider identity for every resolved secret reference.

type Watch

type Watch struct {
	Source   git.Source
	Interval time.Duration
	Once     bool
}

Watch encapsulates the configuration required to start a Git sync watcher.

func BuildGitWatches

func BuildGitWatches(vars env.Environment, resolver secret.Resolver) ([]Watch, error)

BuildGitWatches converts the Git environment configuration into watch descriptors.

Jump to

Keyboard shortcuts

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