Documentation
¶
Index ¶
- func IsParsed(v any, trm ParsedMap) bool
- type GenVars
- func (c *GenVars) Config() *config.GenVarsConfig
- func (c *GenVars) Generate(tokens []string) (ParsedMap, error)
- func (c *GenVars) WithConfig(cfg *config.GenVarsConfig) *GenVars
- func (c *GenVars) WithContext(ctx context.Context) *GenVars
- func (c *GenVars) WithStrategyMap(sm strategy.StrategyFuncMap) *GenVars
- type Opts
- type ParsedMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GenVars ¶
GenVars is the main struct holding the strategy patterns iface any initialised config if overridded with withers as well as the final outString and the initial rawMap which wil be passed in a loop into a goroutine to perform the relevant strategy network calls to the config store implementations
func NewGenerator ¶
NewGenerator returns a new instance of Generator with a default strategy pattern wil be overwritten during the first run of a found tokens map
func (*GenVars) Config ¶
func (c *GenVars) Config() *config.GenVarsConfig
Config gets Config on the GenVars
func (*GenVars) Generate ¶
Generate generates a k/v map of the tokens with their corresponding secret/paramstore values the standard pattern of a token should follow a path like string
func (*GenVars) WithConfig ¶
func (c *GenVars) WithConfig(cfg *config.GenVarsConfig) *GenVars
WithConfig uses custom config
func (*GenVars) WithContext ¶
WithContext uses caller passed context
func (*GenVars) WithStrategyMap ¶
func (c *GenVars) WithStrategyMap(sm strategy.StrategyFuncMap) *GenVars
WithStrategyMap
Adds addtional funcs for storageRetrieval used for testing only