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 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 ResettableExtender ¶
type ResettableExtender interface {
// Reset resets the extender's cache
Reset()
}
Hail to enabled scripts
Directories
¶
| Path | Synopsis |
|---|---|
|
a bunch of mocked extenders for tests
|
a bunch of mocked extenders for tests |
Click to show internal directories.
Click to hide internal directories.