plugin

package
v1.2.3-fred.11 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 1 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(server interface{}) error
}

Plugin describes interfaces of the teleport core plugin

type Registry

type Registry interface {
	// Add adds plugin to the registry
	Add(plugin Plugin) error
	// RegisterProxyWebHandlers registers Teleport Proxy web handlers
	RegisterProxyWebHandlers(hander interface{}) error
	// RegisterAuthWebHandlers registers Teleport Auth web handlers
	RegisterAuthWebHandlers(handler interface{}) error
	// RegisterAuthServices registerse Teleport AuthServer services
	RegisterAuthServices(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