Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRetrieveFailed = errors.New("failed to retrieve config item") ErrClientInitialization = errors.New("failed to initialize the client") ErrEmptyResponse = errors.New("value retrieved but empty for token") ErrServiceCallFailed = errors.New("failed to complete the service call") ErrPluginNotFound = errors.New("plugin does not exist") )
View Source
var ErrTokenRetrieval = errors.New("failed to exchange token for value")
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
Implementations config.ImplementationPrefix
SourcePath string
Version string
ClientCleanUp func()
// contains filtered or unexported fields
}
Plugin is responsible for managing the plugin lifecycle within the configmanager flow. Each Implementation will initialise exactly one instance of the plugin
func (*Plugin) GetValue ¶
func (p *Plugin) GetValue(token *config.ParsedTokenConfig) (string, error)
func (*Plugin) WithTokenStore ¶
func (p *Plugin) WithTokenStore(ts tokenstore.TokenStore)
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) GetValue ¶
func (s *Store) GetValue(implemenation *config.ParsedTokenConfig) (string, error)
func (*Store) PluginCleanUp ¶
func (s *Store) PluginCleanUp()
PluginCleanUp ensures the plugins are properly shut down
Click to show internal directories.
Click to hide internal directories.