Documentation ¶
Index ¶
- func AddPluginsToManifest(manifest *manifestType.Manifest, pluginLocations []string) (*manifestType.Manifest, error)
- func ExtractMappingsFromPlugins(loadedPlugins []*PluginLoaded, mappings *map[string]kombustionTypes.ParserFunc)
- func ExtractOutputsFromPlugins(loadedPlugins []*PluginLoaded, outputs *map[string]kombustionTypes.ParserFunc)
- func ExtractResourcesFromPlugins(loadedPlugins []*PluginLoaded, ...)
- func GetCacheDir() string
- func InstallPlugins() error
- type PluginLoaded
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPluginsToManifest ¶
func AddPluginsToManifest(manifest *manifestType.Manifest, pluginLocations []string) (*manifestType.Manifest, error)
AddPluginsToManifest - Add all new plugin to the manifest update it if it's already there then write the manifest to disk
func ExtractMappingsFromPlugins ¶
func ExtractMappingsFromPlugins( loadedPlugins []*PluginLoaded, mappings *map[string]kombustionTypes.ParserFunc, )
ExtractMappingsFromPlugins and ensure there are no clashes for plugin resource names
func ExtractOutputsFromPlugins ¶
func ExtractOutputsFromPlugins( loadedPlugins []*PluginLoaded, outputs *map[string]kombustionTypes.ParserFunc, )
ExtractOutputsFromPlugins and ensure there are no clashes for plugin resource names
func ExtractResourcesFromPlugins ¶
func ExtractResourcesFromPlugins( loadedPlugins []*PluginLoaded, resources *map[string]kombustionTypes.ParserFunc, )
ExtractResourcesFromPlugins and ensure there are no clashes for plugin resource names
func GetCacheDir ¶
func GetCacheDir() string
GetCacheDir - Get the users cache directory Make it if it doesn't exist
func InstallPlugins ¶
func InstallPlugins() error
InstallPlugins - Get the lock file and then call installPluginsWithLock
Types ¶
type PluginLoaded ¶
type PluginLoaded struct { Resources *map[string]func( name string, data string, ) []byte Outputs *map[string]func( name string, data string, ) []byte Mappings *map[string]func( name string, data string, ) []byte Config apiTypes.Config InternalConfig struct { Prefix string PathOnDisk string } }
PluginLoaded is a fully loaded plugin
func LoadDevPlugin ¶
func LoadDevPlugin( pluginPath string, ) *PluginLoaded
LoadDevPlugin loads an arbitrary plugin for plugin developers, to ease plugin development. Only works with a kombustion binary that was built from source
func LoadPlugins ¶
func LoadPlugins(manifestFile *manifest.Manifest, lockFile *lock.Lock) (loadedPlugins []*PluginLoaded)
LoadPlugins from a manifest and lockfile