Documentation ¶
Index ¶
- Constants
- func MakeConfigAccessObject(confSvc ConfigurationService, varStack map[string]string) map[string]interface{}
- func MakeConfigAndRepoAccessFuncs(confSvc ConfigurationService, varStack map[string]string, ...) map[string]interface{}
- func MakePluginObjectStack(varStack map[string]string) map[string]interface{}
- func MakeUtilFuncMap(varStack map[string]string) map[string]interface{}
- func NullCallback(_ Stage, err error) error
- type BuildObjectStackFunc
- type ConfigAccessFuncs
- type ConfigurationService
- type ConsulTemplateLoader
- type Field
- type Fields
- type GenericWrapper
- type GetConfigFunc
- type GetMultiVarConfigFunc
- type GetterFunc
- type MultiVarConfigAccessFuncs
- type PointerWrapper
- type RoleDisabledError
- type Sequence
- type SetterFunc
- type Stage
- type StageCallbackFunc
- type ToPtreeFunc
- type VarStack
Constants ¶
View Source
const DEBUG_TEMPLATE_SYSTEM = false
Variables ¶
This section is empty.
Functions ¶
func MakeConfigAccessObject ¶ added in v0.50.0
func MakeConfigAccessObject(confSvc ConfigurationService, varStack map[string]string) map[string]interface{}
func MakeConfigAndRepoAccessFuncs ¶ added in v0.29.2
func MakePluginObjectStack ¶ added in v0.29.0
func MakeUtilFuncMap ¶ added in v0.50.0
func NullCallback ¶ added in v0.50.0
Types ¶
type BuildObjectStackFunc ¶
type ConfigAccessFuncs ¶
type ConfigAccessFuncs map[string]GetConfigFunc
func MakeConfigAccessFuncs ¶
func MakeConfigAccessFuncs(confSvc ConfigurationService, varStack map[string]string) ConfigAccessFuncs
deprecated
type ConfigurationService ¶ added in v0.22.0
type ConfigurationService interface { GetComponentConfiguration(query *componentcfg.Query) (payload string, err error) GetComponentConfigurationWithLastIndex(query *componentcfg.Query) (payload string, lastIndex uint64, err error) GetAndProcessComponentConfiguration(query *componentcfg.Query, varStack map[string]string) (payload string, err error) ResolveComponentQuery(query *componentcfg.Query) (resolved *componentcfg.Query, err error) GetDetectorForHost(hostname string) (string, error) GetDetectorsForHosts(hosts []string) ([]string, error) GetCRUCardsForHost(hostname string) (string, error) GetEndpointsForCRUCard(hostname, cardSerial string) (string, error) GetRuntimeEntry(component string, key string) (string, error) SetRuntimeEntry(component string, key string, value 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 GetConfigFunc ¶
type GetMultiVarConfigFunc ¶ added in v0.26.81
type GetterFunc ¶
type GetterFunc func() string
type MultiVarConfigAccessFuncs ¶ added in v0.26.81
type MultiVarConfigAccessFuncs map[string]GetMultiVarConfigFunc
func MakeConfigAccessFuncsMultiVar ¶ added in v0.26.81
func MakeConfigAccessFuncsMultiVar(confSvc ConfigurationService, varStack map[string]string) MultiVarConfigAccessFuncs
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 RoleDisabledError ¶ added in v0.50.0
type RoleDisabledError struct {
RolePath string
}
func (*RoleDisabledError) Error ¶ added in v0.50.1
func (e *RoleDisabledError) Error() string
type Sequence ¶
func (Sequence) Execute ¶
func (sf Sequence) Execute(confSvc ConfigurationService, parentPath string, varStack VarStack, buildObjectStack BuildObjectStackFunc, stringTemplateCache map[string]template.Template, workflowRepo repos.IRepo, stageCallback StageCallbackFunc) (err error)
type SetterFunc ¶
type SetterFunc func(value string)
type Stage ¶
type Stage int
const ( // RESOLUTION STAGE ↓ VALUES AVAILABLE ↓ STAGE0 Stage = iota // parent stack only (for enabled) STAGE1 // parent stack only + locals STAGE2 // parent stack + defaults + locals STAGE3 // parent stack + defaults + vars + locals STAGE4 // parent stack + defaults + vars + uservars + locals STAGE5 // parent stack + defaults + vars + uservars + locals + full self-object = full stack )
type StageCallbackFunc ¶ added in v0.50.0
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.