templateservice

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SprigTemplate

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

func NewSprigTemplate

func NewSprigTemplate(name string) *SprigTemplate

func (*SprigTemplate) Execute

func (t *SprigTemplate) Execute(fp io.Writer, withVariables map[string]interface{}) error

func (*SprigTemplate) FromFile

func (t *SprigTemplate) FromFile(templateFilePath string) error

func (*SprigTemplate) FromString

func (t *SprigTemplate) FromString(templateContent string) error

func (*SprigTemplate) IsMissingKeyError

func (t *SprigTemplate) IsMissingKeyError(err error) bool

func (*SprigTemplate) WithErrorOnMissingKey

func (t *SprigTemplate) WithErrorOnMissingKey(state bool) *SprigTemplate

type TemplateService

type TemplateService interface {
	FromFile(path string) error
	FromString(templateContent string) error
	Execute(fp io.Writer, withVariables map[string]interface{}) error
}

Jump to

Keyboard shortcuts

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