plugin

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 1 Imported by: 123 modules, 697 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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