Documentation ¶
Index ¶
- Constants
- func GetKurlValues(installerName, nameSpace string) *kurlv1beta1.Installer
- 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, rdelim, ldelim string) (*template.Template, error)
- func (b *Builder) Int(text string, defaultVal int64) (int64, 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 KurlCtx
- type LicenseCtx
- type LocalRegistry
- type StaticCtx
- type TLSPair
Constants ¶
View Source
const (
DefaultCharset = "[_A-Za-z0-9]"
)
Variables ¶
This section is empty.
Functions ¶
func GetKurlValues ¶ added in v1.14.0
func GetKurlValues(installerName, nameSpace string) *kurlv1beta1.Installer
Types ¶
type Builder ¶
func NewBuilder ¶
func NewBuilder(configGroups []kotsv1beta1.ConfigGroup, existingValues map[string]ItemValue, localRegistry LocalRegistry, cipher *crypto.AESCipher, license *kotsv1beta1.License) (Builder, map[string]ItemValue, error)
NewBuilder creates a builder with StaticCtx, LicenseCtx and ConfigCtx.
func (*Builder) BuildFuncMap ¶
func (*Builder) GetTemplate ¶
func (*Builder) RenderTemplate ¶
type ConfigCtx ¶
type ConfigCtx struct { ItemValues map[string]ItemValue LocalRegistry LocalRegistry // contains filtered or unexported fields }
ConfigCtx is the context for builder functions before the application has started.
type ItemValue ¶
type ItemValue struct { Value interface{} Default interface{} }
func (ItemValue) DefaultStr ¶
func (ItemValue) HasDefault ¶
type KurlCtx ¶ added in v1.14.0
type KurlCtx struct {
KurlValues map[string]interface{}
}
func NewKurlContext ¶ added in v1.14.0
func (KurlCtx) AddValuesToKurlContext ¶ added in v1.14.0
func (ctx KurlCtx) AddValuesToKurlContext(retrieved *kurlv1beta1.Installer)
type LicenseCtx ¶ added in v1.4.0
type LicenseCtx struct {
License *kotsv1beta1.License
}
func (LicenseCtx) FuncMap ¶ added in v1.4.0
func (ctx LicenseCtx) FuncMap() template.FuncMap
FuncMap represents the available functions in the LicenseCtx.
type LocalRegistry ¶
Click to show internal directories.
Click to hide internal directories.