registry

package
v0.0.0-...-0b4a972 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2019 License: MIT Imports: 7 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuilderRegistry = NewRegister()

BuilderRegistry is the singleton Register instance where all Builders and Matchers are stored

Functions

func AppenderPlugin

func AppenderPlugin(name string, a appender.AppenderConstructor) map[string][]interface{}

func BuilderPlugin

func BuilderPlugin(name string, b builder.BuilderConstructor) map[string][]interface{}

Types

type Register

type Register struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Register contains Builder to use on pod indexing and event matching

func NewRegister

func NewRegister() *Register

NewRegister creates and returns a new Register.

func (*Register) AddAppender

func (r *Register) AddAppender(name string, appender appender.AppenderConstructor)

Add Appender to the register

func (*Register) AddBuilder

func (r *Register) AddBuilder(name string, indexer builder.BuilderConstructor)

Add Builder to the register

func (*Register) AddDefaultAppenderConfig

func (r *Register) AddDefaultAppenderConfig(name string, config common.Config)

Add Appender to the register

func (*Register) AddDefaultBuilderConfig

func (r *Register) AddDefaultBuilderConfig(name string, config common.Config)

Add Builder to the register

func (*Register) GetAppender

func (r *Register) GetAppender(name string) appender.AppenderConstructor

Get Appender from the register

func (*Register) GetBuilder

func (r *Register) GetBuilder(name string) builder.BuilderConstructor

Get Builder from the register

func (*Register) GetDefaultAppenderConfigs

func (r *Register) GetDefaultAppenderConfigs() map[string]common.Config

func (*Register) GetDefaultBuilderConfigs

func (r *Register) GetDefaultBuilderConfigs() map[string]common.Config

Jump to

Keyboard shortcuts

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