registry

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear()

Clear clears the registry (mainly for testing)

func GetExtensions

func GetExtensions() map[string]Entry

GetExtensions returns all registered extensions

func GetExtensionsAndDependencies

func GetExtensionsAndDependencies() (map[string]ext.Interface, map[string][]string)

GetExtensionsAndDependencies returns all extensions and their dependency graph

func GetExtensionsByGroup

func GetExtensionsByGroup(groupName string) map[string]Entry

GetExtensionsByGroup returns extensions in a specific group

func Register

func Register(extension ext.Interface)

Register registers a single extension

func RegisterToGroup

func RegisterToGroup(extension ext.Interface, group string)

RegisterToGroup registers an extension to a specific group

func RegisterToGroupWithWeakDeps

func RegisterToGroupWithWeakDeps(extension ext.Interface, group string, weakDeps []string)

RegisterToGroupWithWeakDeps registers an extension to a group with weak dependencies

func RegisterWithWeakDeps

func RegisterWithWeakDeps(extension ext.Interface, weakDeps []string)

RegisterWithWeakDeps registers an extension with weak dependencies

Types

type Entry

type Entry struct {
	Instance         ext.Interface
	Group            string
	WeakDependencies []string // Optional dependencies that won't block initialization
}

Entry represents an entry in the registry

Jump to

Keyboard shortcuts

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