prehook

package
v0.95.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, provider HookProvider) error

Types

type Hook

type Hook interface {
	Apply(map[string]*target.Item) map[string]*target.Item
	SetConfig(map[string][]*relabel.Config)
	GetConfig() map[string][]*relabel.Config
}

func New

func New(name string, log logr.Logger) Hook

func NewRelabelConfigTargetFilter

func NewRelabelConfigTargetFilter(log logr.Logger) Hook

type HookProvider

type HookProvider func(log logr.Logger) Hook

type RelabelConfigTargetFilter

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

func (*RelabelConfigTargetFilter) Apply

func (tf *RelabelConfigTargetFilter) Apply(targets map[string]*target.Item) map[string]*target.Item

func (*RelabelConfigTargetFilter) GetConfig

func (tf *RelabelConfigTargetFilter) GetConfig() map[string][]*relabel.Config

func (*RelabelConfigTargetFilter) SetConfig

func (tf *RelabelConfigTargetFilter) SetConfig(cfgs map[string][]*relabel.Config)

Jump to

Keyboard shortcuts

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