configtemplating

package
v1.377.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderConfigFileToTemp

func RenderConfigFileToTemp(configPath string, store SecretStore) (string, func(), error)

RenderConfigFileToTemp renders configPath with store into a temporary 0600 YAML file and returns that path plus a cleanup function. Callers should pass the returned path to downstream code and defer cleanup immediately.

func RenderInstallConfigTemplate

func RenderInstallConfigTemplate(data []byte, store SecretStore) ([]byte, error)

RenderInstallConfigTemplate renders the given config template data, resolving any `secret` template calls against store, and returns the rendered bytes. Referencing a missing template key or a missing secret is treated as an error.

Types

type SecretStore

type SecretStore interface {
	LookupSecret(name string, selector ...string) (string, error)
}

SecretStore is the template-facing abstraction for secret backends.

Jump to

Keyboard shortcuts

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