template

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

Processor contains the references required to populate a golang template

func NewProcessor

func NewProcessor(client client.Client, template string) *Processor

NewProcessor creates a new template processor that can read values from kubernetes resources and provided structs

func (*Processor) Process

func (p *Processor) Process(inputs map[string]interface{}) (string, error)

Process leverages kubernetes and the provided inputs to populate a template

Jump to

Keyboard shortcuts

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