Documentation ¶
Index ¶
- Constants
- Variables
- func FindPluginsForCommand(cmdName string) ([][2]string, error)
- func GetHTTPClient() *http.Client
- func LoadPluginInfo(pluginName string, integrity *PluginIntegrity) (plugin.PluginInformation, error)
- func PluginDir(pluginName string, create bool) (string, error)
- func PluginHome() (string, error)
- type BillOfMaterials
- type PluginDefinition
- type PluginIntegrity
- type PluginSource
- type PluginType
Constants ¶
View Source
const DEFAULT_PLUGIN_HOME = ".tf-exporter-plugins"
View Source
const PLUGIN_HOME = "TFE_PLUGIN_HOME"
Variables ¶
View Source
var ErrPluginNotFound = errors.New("plugin not found")
Functions ¶
func FindPluginsForCommand ¶
func GetHTTPClient ¶
func LoadPluginInfo ¶
func LoadPluginInfo(pluginName string, integrity *PluginIntegrity) (plugin.PluginInformation, error)
func PluginHome ¶
Types ¶
type BillOfMaterials ¶
type BillOfMaterials struct { Name string `toml:"name"` Type PluginType `toml:"type"` Source PluginSource `toml:"source"` Version plugin.Version `toml:"version,omitempty"` Integrity *PluginIntegrity `toml:"integrity,omitempty"` Provides []plugin.CommandInfo `toml:"provides,omitempty"` }
func LoadInstalledBOMs ¶
func LoadInstalledBOMs() ([]BillOfMaterials, error)
func LoadPluginBOM ¶ added in v1.1.0
func LoadPluginBOM(pluginName string) (BillOfMaterials, error)
type PluginDefinition ¶
type PluginDefinition struct {
// contains filtered or unexported fields
}
func LoadPlugin ¶
func LoadPlugin(pluginName string, integrity *PluginIntegrity) (PluginDefinition, error)
func (PluginDefinition) Kill ¶
func (p PluginDefinition) Kill()
func (PluginDefinition) Plugin ¶
func (p PluginDefinition) Plugin() (plugin.ExportPlugin, error)
func (PluginDefinition) PluginInfo ¶
func (p PluginDefinition) PluginInfo() plugin.PluginInformation
type PluginIntegrity ¶
type PluginSource ¶
type PluginType ¶
type PluginType string
const ( Native PluginType = "native" NodeJS PluginType = "nodejs" Python PluginType = "python" Java PluginType = "java" )
Click to show internal directories.
Click to hide internal directories.