Documentation ¶
Index ¶
- func NewFileRenderer(readFile func(filename string) ([]byte, error), basePath string, ...) *templateFileRenderer
- func NewFirstPassRenderer(basePath string, env environment.Environment) *templateFileRenderer
- func NewTextRenderer(readFile func(filename string) ([]byte, error), basePath string, ...) *templateTextRenderer
- func RequiredEnv(name string) (string, error)
- func ToYaml(v interface{}) (string, error)
- type Context
- type FileRenderer
- type TemplateData
- type TextRenderer
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileRenderer ¶ added in v0.25.2
func NewFileRenderer(readFile func(filename string) ([]byte, error), basePath string, env environment.Environment, namespace string) *templateFileRenderer
func NewFirstPassRenderer ¶ added in v0.34.0
func NewFirstPassRenderer(basePath string, env environment.Environment) *templateFileRenderer
func NewTextRenderer ¶ added in v0.37.0
func RequiredEnv ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
type FileRenderer ¶ added in v0.25.2
type TemplateData ¶ added in v0.28.0
type TemplateData struct { // Environment is accessible as `.Environment` from any template executed by the renderer Environment environment.Environment // Namespace is accessible as `.Namespace` from any non-values template executed by the renderer Namespace string }
type TextRenderer ¶ added in v0.37.0
Click to show internal directories.
Click to hide internal directories.