yaml

package
v0.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Prefix = "optimus-plugin-"
	Suffix = ".yaml"
)

Variables

This section is empty.

Functions

func Init

func Init(pluginsRepo *models.PluginRepository, discoveredYamlPlugins []string, pluginLogger hclog.Logger) error

if error in loading, initializing or adding to pluginsrepo , skipping that particular plugin NOTE: binary plugins are loaded after yaml plugins loaded

Types

type PluginSpec

type PluginSpec struct {
	plugin.Info                  `yaml:",inline,omitempty"`
	plugin.GetQuestionsResponse  `yaml:",inline,omitempty"`
	plugin.DefaultAssetsResponse `yaml:",inline,omitempty"`
	plugin.DefaultConfigResponse `yaml:",inline,omitempty"`
}

func NewPluginSpec

func NewPluginSpec(pluginPath string) (*PluginSpec, error)

func (*PluginSpec) DefaultConfig

func (*PluginSpec) PluginInfo

func (p *PluginSpec) PluginInfo() *plugin.Info

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL