registry

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 59 Imported by: 6

Documentation

Overview

Package registry is responsible for managing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPluginRegistryFactory added in v1.9.25

func GetPluginRegistryFactory(opts PluginOpts) plugins.PluginRegistryFactory

func NewPluginRegistry added in v1.9.25

func NewPluginRegistry(registeredPlugins []plugins.Plugin) *pluginRegistry

NewPluginRegistry creates a plugin registry and places all registered plugins into their appropriate plugin lists. This process is referred to as registering the plugins.

func Plugins

func Plugins(opts PluginOpts) []plugins.Plugin

Types

type PluginOpts added in v1.18.0

type PluginOpts struct {
	Ctx                     context.Context
	Secrets                 factory.ResourceClientFactory
	SidecarOnGatewayEnabled bool
	Consul                  bootstrap.Consul
	// If plugins do NOT run in GGv2/KRT (i.e. in legacy edge), then we will this kube cache set.
	KubeClient    k8skube.Interface
	KubeCoreCache corecache.KubeCoreCache
	// If plugins run in GGv2/KRT, then we will have these collections.
	// it is currently used for the k8s plugin. in the future plugins may own their own collections.
	SvcCollection krt.Collection[*corev1.Service]
}

func FromBootstrap added in v1.18.0

func FromBootstrap(opts bootstrap.Opts) PluginOpts

Jump to

Keyboard shortcuts

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