Documentation ¶
Index ¶
- Constants
- type Builder
- func (b *Builder) AddCtx(ctx Ctx)
- func (b *Builder) Bool(text string, defaultVal bool) (bool, error)
- func (b *Builder) BuildFuncMap() template.FuncMap
- func (b *Builder) Float64(text string, defaultVal float64) (float64, error)
- func (b *Builder) GetTemplate(name, text string) (*template.Template, error)
- func (b *Builder) Int(text string, defaultVal int64) (int64, error)
- func (b *Builder) NewConfigContext(configGroups []kotsv1beta1.ConfigGroup, templateContext map[string]ItemValue) (*ConfigCtx, error)
- func (b *Builder) RenderTemplate(name string, text string) (string, error)
- func (b *Builder) String(text string) (string, error)
- func (b *Builder) Uint(text string, defaultVal uint64) (uint64, error)
- type ConfigCtx
- type Ctx
- type ItemValue
- type StaticCtx
Constants ¶
View Source
const (
DefaultCharset = "[_A-Za-z0-9]"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
func (*Builder) BuildFuncMap ¶
func (*Builder) GetTemplate ¶
func (*Builder) NewConfigContext ¶ added in v0.9.0
func (b *Builder) NewConfigContext(configGroups []kotsv1beta1.ConfigGroup, templateContext map[string]ItemValue) (*ConfigCtx, error)
func (*Builder) RenderTemplate ¶
type ItemValue ¶
type ItemValue struct { Value interface{} Default interface{} }
ConfigCtx is the context for builder functions before the application has started.
func (ItemValue) DefaultStr ¶
func (ItemValue) HasDefault ¶
Click to show internal directories.
Click to hide internal directories.