configmapwatcher

package
v0.0.0-...-91868f7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller watches a ConfigMap and calls the given callback when the ConfigMap changes. The ConfigMap is passed to the callback, or nil if it doesn't exist.

func NewController

func NewController(client kube.Client, namespace, name string, callback func(*v1.ConfigMap)) *Controller

NewController returns a new ConfigMap watcher controller.

func (*Controller) HasSynced

func (c *Controller) HasSynced() bool

HasSynced returns whether the underlying cache has synced and the callback has been called at least once.

func (*Controller) Run

func (c *Controller) Run(stop <-chan struct{})

Jump to

Keyboard shortcuts

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