plugin

package
v0.0.0-...-9b7ba46 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 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 MapBasedMapper

type MapBasedMapper map[string]validation.PluginFactory

MapBasedMapper maps plugin names to their corresponding factories

func (MapBasedMapper) FactoryByName

func (m MapBasedMapper) FactoryByName(name Name) validation.PluginFactory

FactoryByName returns a plugin factory for the given plugin name, or nil if not found

type Mapper

type Mapper interface {
	FactoryByName(name Name) validation.PluginFactory
}

Mapper maps plugin names to their corresponding factory instance. Returns nil if the name isn't associated to any plugin.

type Name

type Name string

Name defines the name of the plugin as it appears in the configuration

type SerializedPolicy

type SerializedPolicy []byte

SerializedPolicy defines a marshaled policy

func (SerializedPolicy) Bytes

func (sp SerializedPolicy) Bytes() []byte

Bytes returns te bytes of the SerializedPolicy

Jump to

Keyboard shortcuts

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