registry

package
v0.0.0-...-534dfd5 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDuplicatePlugin = errors.New("plugin already registered with same name")
	ErrPluginNotFound  = errors.New("plugin not found")
)

Functions

func GetDiscoveryProvider

func GetDiscoveryProvider(name string, input *provider.PluginCreationInput) (discovery.Provider, error)

func GetIdentityProvider

func GetIdentityProvider(name string, input *provider.PluginCreationInput) (identity.Provider, error)

func RegisterDiscoveryPlugin

func RegisterDiscoveryPlugin(registration *DiscoveryPluginRegistration) error

func RegisterIdentityPlugin

func RegisterIdentityPlugin(registration *IdentityPluginRegistration) error

Types

type DiscoveryPluginRegistration

type DiscoveryPluginRegistration struct {
	PluginRegistration
	SupportedIdentityProviders []string
	CreateFunc                 discovery.ProviderCreatorFun
}

func GetDiscoveryProviderRegistration

func GetDiscoveryProviderRegistration(name string) (*DiscoveryPluginRegistration, error)

func ListDiscoveryPluginRegistrations

func ListDiscoveryPluginRegistrations() []*DiscoveryPluginRegistration

type IdentityPluginRegistration

type IdentityPluginRegistration struct {
	PluginRegistration
	CreateFunc identity.ProviderCreatorFun
}

func GetIdentityProviderRegistration

func GetIdentityProviderRegistration(name string) (*IdentityPluginRegistration, error)

func ListIdentityPluginRegistrations

func ListIdentityPluginRegistrations() []*IdentityPluginRegistration

type PluginRegistration

type PluginRegistration struct {
	Name                   string
	UsageExample           string
	ConfigurationItemsFunc provider.ConfigurationItemsFunc
}

Jump to

Keyboard shortcuts

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