configtemplating

package
v1.178.0 Latest Latest
Warning

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

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

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