Documentation ¶
Index ¶
- Constants
- func MakeStrOperationFuncMap(varStack map[string]string) map[string]interface{}
- type BuildObjectStackFunc
- type CRUCardConfigAccessFuncs
- type ConfigAccessFuncs
- type ConfigurationService
- type ConsulTemplateLoader
- type Field
- type Fields
- type GenericWrapper
- type GetCRUCardConfigFunc
- 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 ¶
Types ¶
type BuildObjectStackFunc ¶
type CRUCardConfigAccessFuncs ¶ added in v0.22.0
type CRUCardConfigAccessFuncs map[string]GetCRUCardConfigFunc
func MakeConfigAccessFuncsCRUCard ¶ added in v0.22.0
func MakeConfigAccessFuncsCRUCard(confSvc ConfigurationService, varStack map[string]string) CRUCardConfigAccessFuncs
type ConfigAccessFuncs ¶
type ConfigAccessFuncs map[string]GetConfigFunc
func MakeConfigAccessFuncs ¶
func MakeConfigAccessFuncs(confSvc ConfigurationService, varStack map[string]string) ConfigAccessFuncs
type ConfigurationService ¶ added in v0.22.0
type ConfigurationService interface { GetComponentConfiguration(query *componentcfg.Query) (payload string, err error) GetAndProcessComponentConfiguration(query *componentcfg.Query, varStack map[string]string) (payload string, err error) GetDetectorForHost(hostname string) (string, error) GetDetectorsForHosts(hosts []string) ([]string, error) GetCRUCardsForHost(hostname string) (string, error) GetEndpointsForCRUCard(hostname, cardSerial string) (string, error) }
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 ConfigurationService, 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 GetCRUCardConfigFunc ¶ added in v0.22.0
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.