Documentation ¶
Index ¶
- Constants
- func MakeStrOperationFuncMap() map[string]interface{}
- type BuildObjectStackFunc
- type ComponentConfigurationService
- type ConfigAccessFuncs
- type ConsulTemplateLoader
- type Field
- type Fields
- type GenericWrapper
- type GetConfigFunc
- type GetterFunc
- type PointerWrapper
- type Sequence
- type SetterFunc
- type Stage
- type ToPtreeFunc
- type VarStack
Constants ¶
View Source
const DEBUG_TEMPLATE_SYSTEM = false
Variables ¶
This section is empty.
Functions ¶
func MakeStrOperationFuncMap ¶
func MakeStrOperationFuncMap() map[string]interface{}
Types ¶
type BuildObjectStackFunc ¶
type ComponentConfigurationService ¶
type ComponentConfigurationService interface { GetComponentConfiguration(query *componentcfg.Query) (payload string, err error) GetAndProcessComponentConfiguration(query *componentcfg.Query, varStack map[string]string) (payload string, err error) }
type ConfigAccessFuncs ¶
type ConfigAccessFuncs map[string]GetConfigFunc
func MakeConfigAccessFuncs ¶
func MakeConfigAccessFuncs(confSvc ComponentConfigurationService, varStack map[string]string) ConfigAccessFuncs
type ConsulTemplateLoader ¶
type ConsulTemplateLoader struct {
// contains filtered or unexported fields
}
Implements pongo2.TemplateLoader to fetch included templates from Consul paths
func NewConsulTemplateLoader ¶
func NewConsulTemplateLoader(confSvc ComponentConfigurationService, basePath string) *ConsulTemplateLoader
func (*ConsulTemplateLoader) Abs ¶
func (c *ConsulTemplateLoader) Abs(base, name string) string
type Field ¶
func WrapGeneric ¶
func WrapGeneric(getterF GetterFunc, setterF SetterFunc) Field
func WrapPointer ¶
type GenericWrapper ¶
type GenericWrapper struct { Getter GetterFunc Setter SetterFunc }
func (*GenericWrapper) Get ¶
func (t *GenericWrapper) Get() string
func (*GenericWrapper) Set ¶
func (t *GenericWrapper) Set(value string)
type GetConfigFunc ¶
type GetterFunc ¶
type GetterFunc func() string
type PointerWrapper ¶
type PointerWrapper struct {
// contains filtered or unexported fields
}
func (*PointerWrapper) Get ¶
func (t *PointerWrapper) Get() string
func (*PointerWrapper) Set ¶
func (t *PointerWrapper) Set(value string)
type SetterFunc ¶
type SetterFunc func(value string)
type Stage ¶
type Stage int
const ( // RESOLUTION STAGE ↓ VALUES AVAILABLE ↓ STAGE0 Stage = iota // parent stack only + locals STAGE1 // parent stack + defaults + locals STAGE2 // parent stack + defaults + vars + locals STAGE3 // parent stack + defaults + vars + uservars + locals STAGE4 // parent stack + defaults + vars + uservars + locals + full self-object = full stack )
type ToPtreeFunc ¶
func MakeToPtreeFunc ¶
func MakeToPtreeFunc(varStack map[string]string, propMap map[string]string) ToPtreeFunc
type VarStack ¶
type VarStack struct { Locals map[string]string Defaults *gera.StringWrapMap Vars *gera.StringWrapMap UserVars *gera.StringWrapMap }
Click to show internal directories.
Click to hide internal directories.