Versions in this module Expand all Collapse all v1 v1.0.2 May 18, 2023 Changes in this version + func Load(ctx context.Context, config Config, cat Catalog) (_ io.Closer, err error) + func PluginNameFromHostServiceContext(ctx context.Context) (string, bool) + func WithPluginName(ctx context.Context, name string) context.Context + type BuiltIn struct + Name string + Plugin pluginsdk.PluginServer + Services []pluginsdk.ServiceServer + func MakeBuiltIn(name string, pluginServer pluginsdk.PluginServer, ...) BuiltIn + type BuiltInConfig struct + HostServices []pluginsdk.ServiceServer + Log logrus.FieldLogger + type Catalog interface + Plugins func() map[string]PluginRepo + Services func() []ServiceRepo + type Config struct + CoreConfig CoreConfig + HostServices []pluginsdk.ServiceServer + Log logrus.FieldLogger + PluginConfigs []PluginConfig + type Configurer interface + Configure func(ctx context.Context, coreConfig CoreConfig, configuration string) error + type Constraints struct + Max int + Min int + func AtLeastOne() Constraints + func ExactlyOne() Constraints + func MaybeOne() Constraints + func ZeroOrMore() Constraints + func (c Constraints) Check(count int) error + type CoreConfig struct + TrustDomain spiffeid.TrustDomain + type Facade interface + InitInfo func(info PluginInfo) + InitLog func(log logrus.FieldLogger) + type Plugin interface + Bind func(facades ...Facade) (Configurer, error) + func LoadBuiltIn(ctx context.Context, builtIn BuiltIn, config BuiltInConfig) (_ Plugin, err error) + type PluginConfig struct + Args []string + Checksum string + Data string + Disabled bool + Name string + Path string + Type string + func (c *PluginConfig) IsExternal() bool + func (c PluginConfig) IsEnabled() bool + type PluginConfigs []PluginConfig + func PluginConfigsFromHCLNode(pluginsNode ast.Node) (PluginConfigs, error) + func (cs PluginConfigs) FilterByType(pluginType string) (matching PluginConfigs, remaining PluginConfigs) + func (cs PluginConfigs) Find(pluginType, pluginName string) (PluginConfig, bool) + type PluginInfo interface + Name func() string + Type func() string + type PluginRepo interface + BuiltIns func() []BuiltIn + Constraints func() Constraints + type ServiceRepo interface + Binder func() interface{} + Clear func() + Versions func() []Version + type Version interface + Deprecated func() bool + New func() Facade