Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPluginDirectoryAndFilename ¶
func GetPluginDirectoryAndFilename(pluginName string) (directory string, filename string, err error)
GetPluginDirectoryAndFilename this functions return the directory and file name from a given pluginName such as argoproj-labs/sample-plugin
func UnInitializeConfig ¶
func UnInitializeConfig()
UnInitializeConfig resets the in memory config to nil. This is useful for testing.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is the in memory representation of the configmap with some additional fields/functions for ease of use.
func GetConfig ¶
GetConfig returns the initialized in memory config object if it exists otherwise errors if InitializeConfig has not been called.
func InitializeConfig ¶
func InitializeConfig(k8sClientset kubernetes.Interface, configMapName string) (*Config, error)
InitializeConfig initializes the in memory config and downloads the plugins to the filesystem. Subsequent calls to this function will update the configmap in memory.
func (*Config) GetAllPlugins ¶
func (c *Config) GetAllPlugins() []types.PluginItem
GetAllPlugins returns a flattened list of plugin items. This is useful for iterating over all plugins.
func (*Config) GetPlugin ¶
func (c *Config) GetPlugin(name string, pluginType types.PluginType) *types.PluginItem
GetPlugin returns the plugin item by name and type if it exists