Documentation ¶
Index ¶
- func GetLogLevel() zerolog.Level
- type CC
- func (c *CC) AddProvider(prov provider.Provider) error
- func (c *CC) ConnectRetriever() error
- func (c *CC) Dispose()
- func (c *CC) GetLatestVersion(pluginName string) (string, error)
- func (c *CC) GetProvider(name string) provider.Provider
- func (c *CC) GetProviders() map[string]provider.Provider
- func (c *CC) GetRemotePluginsInfo() (map[string]map[string][]string, error)
- func (c *CC) LoadConfig(path string) error
- func (c *CC) LoadProviders() error
- func (c *CC) ProviderExists(name string) bool
- func (c *CC) SetLogger(w io.Writer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogLevel ¶ added in v0.8.3
Types ¶
type CC ¶
type CC struct { Context context.Context Config *config.Config Log *zerolog.Logger UI *clui.UI Retriever retriever.Retriever // contains filtered or unexported fields }
CC contains dependencies that are cross cutting and are needed in most of the providers that make up this application
func BuildTestCC ¶ added in v0.8.2
func (*CC) AddProvider ¶
AddProvider to the context
func (*CC) ConnectRetriever ¶
func (*CC) Dispose ¶
func (c *CC) Dispose()
Dispose all the resources. This can be called any number of times
func (*CC) GetProvider ¶
GetProvider with the given name
func (*CC) GetRemotePluginsInfo ¶
func (*CC) LoadConfig ¶
LoadConfig loads the plugin and logger config from a configuration file
func (*CC) LoadProviders ¶
func (*CC) ProviderExists ¶
ProviderExists returns true if the provider has already been added to the context
Click to show internal directories.
Click to hide internal directories.