Versions in this module Expand all Collapse all v3 v3.0.0 Apr 4, 2026 Changes in this version + var ErrProvidersNotFound = errors.New("providers not initialised") + var ErrTokenDiscovery = errors.New("failed to discover tokens") + var ErrTokenNotFound = errors.New("token not found") + func IsParsed(v any, trm ReplacedToken) bool + type Generator struct + Logger log.ILogger + func New(ctx context.Context, opts ...Opts) *Generator + func (c *Generator) Config() *config.GenVarsConfig + func (c *Generator) DiscoverTokens(text string) (NormalizedTokenSafe, error) + func (c *Generator) Generate(tokens []string) (ReplacedToken, error) + func (c *Generator) NormalizeRawToken(rtm *RawTokenConfig) NormalizedTokenSafe + func (c *Generator) WithConfig(cfg *config.GenVarsConfig) *Generator + func (c *Generator) WithStores(sm storeIface) *Generator + type NormalizedToken struct + func (n *NormalizedToken) WithParsedToken(v *config.ParsedTokenConfig) *NormalizedToken + type NormalizedTokenSafe struct + func (n NormalizedTokenSafe) GetMap() map[string]*NormalizedToken + func (n NormalizedTokenSafe) TokenSet() []string + type Opts func(*Generator) + type RawTokenConfig struct + func NewRawTokenConfig() *RawTokenConfig + func (rtm *RawTokenConfig) AddToken(name string, parsedToken *config.ParsedTokenConfig) + func (rtm *RawTokenConfig) RawTokenMap() map[string]*config.ParsedTokenConfig + type ReplacedToken map[string]any + func (pm ReplacedToken) MapKeys() (keys []string) + type TokenResponse struct + Err error + func (tr *TokenResponse) Key() *config.ParsedTokenConfig + func (tr *TokenResponse) Value() string + func (tr *TokenResponse) WithKey(key *config.ParsedTokenConfig) + func (tr *TokenResponse) WithValue(val string)