extenders

package
v1.22.4 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: Apache-2.0 Imports: 1 Imported by: 2 modules, 8 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 Extender

type Extender interface {
	// Name returns the extender's name
	Name() ExtenderName
	// Filter returns the result of applying the extender
	Filter(moduleName string, logLabels map[string]string) (*bool, error)
	// IsTerminator marks extender that can only disable an enabled module if some requirement isn't met.
	// By design, terminators can't be overridden by other extenders.
	IsTerminator() bool
}

type ExtenderEvent

type ExtenderEvent struct {
	ExtenderName      ExtenderName
	EncapsulatedEvent interface{}
}

type ExtenderName

type ExtenderName string

type Hint added in v1.13.0

type Hint struct {
	Name     string
	Optional bool
}

type NotificationExtender

type NotificationExtender interface {
	// SetNotifyChannel sets output channel for an extender's events, to notify when module state could be changed during the runtime
	SetNotifyChannel(context.Context, chan ExtenderEvent)
}

type StatefulExtender added in v1.6.0

type StatefulExtender interface {
	// SetModulesStateHelper sets a helper function to get the list of enabled modules according to the latest vertex state buffer
	SetModulesStateHelper(func() []string)
}

Hail to enabled scripts

type TopologicalExtender added in v1.6.0

type TopologicalExtender interface {
	// GetTopologicalHints returns the list of vertices that should be connected to the specified vertex
	GetTopologicalHints(string) []Hint
}

Directories

Path Synopsis
a bunch of mocked extenders for tests
a bunch of mocked extenders for tests

Jump to

Keyboard shortcuts

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