Documentation ¶
Index ¶
- Constants
- type ApplicationInfo
- 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 BuilderOptions
- type ConfigCtx
- type Ctx
- type ItemValue
- type LocalRegistry
- type StaticCtx
- type TLSPair
- type VersionInfo
Constants ¶
View Source
const (
DefaultCharset = "[_A-Za-z0-9]"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationInfo ¶
type ApplicationInfo struct {
Slug string
}
type Builder ¶
func NewBuilder ¶
func NewBuilder(opts BuilderOptions) (Builder, map[string]ItemValue, error)
NewBuilder creates a builder with all available contexts.
func (*Builder) BuildFuncMap ¶
func (*Builder) GetTemplate ¶
func (*Builder) RenderTemplate ¶
type BuilderOptions ¶
type BuilderOptions struct { ConfigGroups []kotsv1beta1.ConfigGroup ExistingValues map[string]ItemValue LocalRegistry LocalRegistry Cipher *crypto.AESCipher License *kotsv1beta1.License ApplicationInfo *ApplicationInfo VersionInfo *VersionInfo IdentityConfig *kotsv1beta1.IdentityConfig }
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 LocalRegistry ¶
type StaticCtx ¶
type StaticCtx struct { }
func (*StaticCtx) RandomBytes ¶
RandomBytes returns a base64-encoded byte array allowing the full range of byte values.
func (*StaticCtx) RandomString ¶
type VersionInfo ¶
type VersionInfo struct { Sequence int64 // the installation sequence. Always 0 when being freshly installed, etc Cursor string // the upstream version cursor - integers for kots apps, may be semvers for helm charts ChannelName string // the name of the channel that the current version was from (kots apps only) VersionLabel string // a pretty version label if provided (kots apps only) ReleaseNotes string // the release notes for the given version (kots apps only) IsAirgap bool // is this an airgap app (kots apps only) }
func VersionInfoFromInstallation ¶
func VersionInfoFromInstallation(sequence int64, isAirgap bool, spec v1beta1.InstallationSpec) VersionInfo
Click to show internal directories.
Click to hide internal directories.