plugins

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasePlugin

type BasePlugin struct {
	// contains filtered or unexported fields
}

func (BasePlugin) Execute

func (BasePlugin) ID

func (p BasePlugin) ID() string

func (BasePlugin) RuleRegistry

func (p BasePlugin) RuleRegistry() *rules.RuleRegistry

type Plugin

type Plugin interface {
	Execute(context.Context, traces.Trace, analyzer.LinterPlugin) (analyzer.PluginResult, error)
	ID() string
	RuleRegistry() *rules.RuleRegistry
}

func NewPlugin

func NewPlugin(ID string, ruleRegistry *rules.RuleRegistry) Plugin

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry() *Registry

func (*Registry) Get

func (r *Registry) Get(resourceName string) (Plugin, error)

func (*Registry) List

func (r *Registry) List() []string

func (*Registry) PluginMap

func (r *Registry) PluginMap() map[string][]string

func (*Registry) Register

func (r *Registry) Register(p Plugin) *Registry

Jump to

Keyboard shortcuts

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