plugin

package
v1.7.11 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResolver

func NewResolver(
	providerFactories map[string]func(plugin_v1.ProviderOptions) (plugin_v1.Provider, error),
	eventNotifier plugin_v1.EventNotifier,
	LogFatalFunc func(string, ...interface{}),
) plugin_v1.Resolver

NewResolver instantiates providers based on the name and ProviderOptions

Types

type Resolver

type Resolver struct {
	EventNotifier     plugin_v1.EventNotifier
	ProviderFactories map[string]func(plugin_v1.ProviderOptions) (plugin_v1.Provider, error)
	Providers         map[string]plugin_v1.Provider
	LogFatalf         func(string, ...interface{})
}

Resolver is used to instantiate providers and resolve credentials

func (*Resolver) Provider

func (resolver *Resolver) Provider(name string) (provider plugin_v1.Provider, err error)

Provider finds or creates a named provider.

func (*Resolver) Resolve

func (resolver *Resolver) Resolve(credentials []*config_v2.Credential) (map[string][]byte, error)

Resolve accepts n list of Providers and a list of Credentials and attempts to obtain the value of each Credential from the appropriate Provider.

Jump to

Keyboard shortcuts

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