filetemplates

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTemplate

func GetTemplate(name string, secretsMap map[string]*Secret) *template.Template

func RenderFile

func RenderFile(tpl *template.Template, tplData TemplateData) (*bytes.Buffer, error)

Types

type Secret

type Secret struct {
	Alias string // The name used to reference this secret in templates.
	Value string // The resolved secret content.
}

Secret is a resolved key/value pair ready for template rendering. It is deliberately minimal — no error or tag metadata — because by this point all fetching, error handling, and ignore logic are done (see provider.Result for the previous stage). Templates only need the alias to look up a value.

type TemplateData

type TemplateData struct {
	SecretsArray []*Secret
	SecretsMap   map[string]*Secret
}

templateData describes the form in which data is presented to file templates

Jump to

Keyboard shortcuts

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