util

package
v0.0.0-...-c758f71 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExcludeNamesFilter

func ExcludeNamesFilter(names ...string) factory.EventFilterFunc

Inverse of IncludeNamesFilter

func HandleManagementState

func HandleManagementState(ctx context.Context, c consoleOperatorController, operatorClient v1helpers.OperatorClient) error

func IncludeNamesFilter

func IncludeNamesFilter(names ...string) factory.EventFilterFunc

Return func which returns true if obj name is in names

func LabelFilter

func LabelFilter(labels map[string]string) factory.EventFilterFunc

Return a func which returns true if obj matches on every label in labels (i.e for each key in labels map, obj.metadata.labels[key] is equal to labels[key])

Types

type InformerWithSwitch

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

func NewSwitchedInformer

func NewSwitchedInformer(
	ctx context.Context,
	oauthClient authclient.Interface,
	resync time.Duration,
	authnInformer configv1informers.AuthenticationInformer,
	recorder events.Recorder,
) *InformerWithSwitch

func (*InformerWithSwitch) Informer

func (*InformerWithSwitch) Lister

func (*InformerWithSwitch) Start

func (s *InformerWithSwitch) Start(stopCh <-chan struct{})

Jump to

Keyboard shortcuts

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