cmcontroller

package
v0.0.0-...-c589bba Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	ClientSet     kubernetes.Interface
	Namespace     string
	LabelSelector string
}

type Controller

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

func ConfigMapController

func ConfigMapController(context Context) *Controller

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh chan struct{})

type ResourceCreatedHandler

type ResourceCreatedHandler struct {
	ConfigMap *v1.ConfigMap
}

func (ResourceCreatedHandler) Handle

func (r ResourceCreatedHandler) Handle(ctx Context) error

type ResourceDeleteHandler

type ResourceDeleteHandler struct {
	ConfigMap *v1.ConfigMap
}

func (ResourceDeleteHandler) Handle

func (r ResourceDeleteHandler) Handle(ctx Context) error

type ResourceHandler

type ResourceHandler interface {
	Handle(context Context) error
}

type ResourceUpdatedHandler

type ResourceUpdatedHandler struct {
	ConfigMap    *v1.ConfigMap
	OldConfigMap *v1.ConfigMap
}

func (ResourceUpdatedHandler) Handle

func (r ResourceUpdatedHandler) Handle(ctx Context) error

Jump to

Keyboard shortcuts

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