builtins

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package builtins contains the built-in plugin implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBuiltIn added in v0.3.1

func IsBuiltIn(pluginName string) bool

IsBuiltIn returns true if the plugin is a built-in plugin.

func NewClient added in v0.12.1

func NewClient(pluginName string) (clients.PluginClient, bool)

NewClient returns a new built-in plugin client for the given plugin name.

func NewPluginConfigs added in v0.3.1

func NewPluginConfigs() map[string]FlagBinder

NewPluginConfigs returns a map of the built-in plugin configurations.

func NewPluginMap

func NewPluginMap() map[string]clients.PluginClient

NewPluginMap returns a map of the built-in plugins.

Types

type FlagBinder added in v0.3.1

type FlagBinder interface {
	// BindFlags is called to bind the options to the flagset
	// with the given prefix.
	BindFlags(string, *pflag.FlagSet)
	// AsMapStructure is called to convert the options to a map
	// of string keys and values.
	AsMapStructure() map[string]any
	// SetMapStructure is called to set the options from a map
	// of string keys and values.
	SetMapStructure(map[string]any)
}

FlagBinder is an interface implemented by the built-in plugin option sets to bind them to the given flag set.

Directories

Path Synopsis
Package basicauth is an authentication plugin that uses basic auth.
Package basicauth is an authentication plugin that uses basic auth.
Package debug implements a plugin that exposes an HTTP server for debugging purposes.
Package debug implements a plugin that exposes an HTTP server for debugging purposes.
Package idauth is an authentication plugin based on libp2p peer IDs.
Package idauth is an authentication plugin based on libp2p peer IDs.
Package ldap implements a basic LDAP authentication plugin.
Package ldap implements a basic LDAP authentication plugin.
Package mtls is an authentication plugin that uses mTLS.
Package mtls is an authentication plugin that uses mTLS.

Jump to

Keyboard shortcuts

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