plugin

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin interface {
	// GetName returns plugin name
	GetName() string
	// RegisterProxyWebHandlers registers new methods with the ProxyWebHandler
	RegisterProxyWebHandlers(handler interface{}) error
	// RegisterAuthWebHandlers registers new methods with the Auth Web Handler
	RegisterAuthWebHandlers(service interface{}) error
	// RegisterAuthServices registers new services on the AuthServer
	RegisterAuthServices(ctx context.Context, server interface{}) error
}

Plugin describes interfaces of the teleport core plugin

type Registry

type Registry interface {
	// IsRegistered returns whether a plugin with the give name exists.
	IsRegistered(name string) bool
	// Add adds plugin to the registry
	Add(plugin Plugin) error
	// RegisterProxyWebHandlers registers Teleport Proxy web handlers
	RegisterProxyWebHandlers(handler interface{}) error
	// RegisterAuthWebHandlers registers Teleport Auth web handlers
	RegisterAuthWebHandlers(handler interface{}) error
	// RegisterAuthServices registers Teleport AuthServer services
	RegisterAuthServices(ctx context.Context, server interface{}) error
}

Registry is the plugin registry

func NewRegistry

func NewRegistry() Registry

NewRegistry creates an instance of the Registry

Jump to

Keyboard shortcuts

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