sugar

package
Version: v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label to enable Knative Eventing in a Namespace.
	InjectionLabelKey           = "eventing.knative.dev/injection"
	InjectionEnabledLabelValue  = "enabled"
	InjectionDisabledLabelValue = "disabled"
)

Variables

This section is empty.

Functions

func InjectionDisabledLabels

func InjectionDisabledLabels() map[string]string

func InjectionEnabledLabels

func InjectionEnabledLabels() map[string]string

func InjectionLabelKeys

func InjectionLabelKeys() []string

func OffByDefault

func OffByDefault(labels map[string]string) bool

func OnByDefault

func OnByDefault(labels map[string]string) bool

Types

type LabelFilterFn

type LabelFilterFn func(labels map[string]string) bool

LabelFilterFn defines a function to test if the label set passes the filter.

func LabelFilterFnOrDie

func LabelFilterFnOrDie(ctx context.Context) LabelFilterFn

LabelFilterFnOrDie returns the filter function to use for filtering labels for injection.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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