plugin

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterNamespace added in v1.25.0

func RegisterNamespace(ns string, f RegistryFunc)

RegisterNamespace is the function called by a component that is pluggable, to register its namespace and a function to register the plugins.

func RegisterPlugin added in v1.25.0

func RegisterPlugin(ns, name string, newFunc any)

RegisterPlugin is called to register a new plugin in the given namespace. Its called internally by reva, and should not be used by external plugins.

Types

type RegistryFunc added in v1.25.0

type RegistryFunc func(name string, newFunc any)

RegistryFunc is the func a component that is pluggable must define to register the new func in its own registry. It is responsibility of the component to type assert the new func with the expected one and panic if not.

Jump to

Keyboard shortcuts

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