templating

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoTemplateTemplatingProcessor

type GoTemplateTemplatingProcessor struct{}

GoTemplateTemplatingProcessor implements Processor using Go's text/template engine.

func (*GoTemplateTemplatingProcessor) Process

func (g *GoTemplateTemplatingProcessor) Process(tplCtx *TemplateContext, path string, content []byte) ([]byte, error)

type Processor

type Processor interface {
	// Process renders the given content bytes using the template context.
	Process(*TemplateContext, string, []byte) ([]byte, error)
}

Processor renders template content using the given context and source path.

type TemplateContext

type TemplateContext struct {
	Versions  model.Versions
	BuildArgs model.BuildArgs
	ImageName string
}

TemplateContext holds the data available to template processors during rendering.

Jump to

Keyboard shortcuts

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