configuration

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package configuration implements the reflection logic for configmaps and secrets.

Index

Constants

View Source
const (
	// ConfigMapReflectorName is the name associated with the ConfigMap reflector.
	ConfigMapReflectorName = "ConfigMap"
)
View Source
const (
	// SecretReflectorName is the name associated with the Secret reflector.
	SecretReflectorName = "Secret"
)

Variables

This section is empty.

Functions

func NewConfigMapReflector

func NewConfigMapReflector(workers uint) manager.Reflector

NewConfigMapReflector builds a ConfigMapReflector.

func NewNamespacedConfigMapReflector

func NewNamespacedConfigMapReflector(opts *options.NamespacedOpts) manager.NamespacedReflector

NewNamespacedConfigMapReflector returns a function generating NamespacedConfigMapReflector instances.

func NewNamespacedSecretReflector

func NewNamespacedSecretReflector(opts *options.NamespacedOpts) manager.NamespacedReflector

NewNamespacedSecretReflector returns a function generating NamespacedSecretReflector instances.

func NewSecretReflector

func NewSecretReflector(workers uint) manager.Reflector

NewSecretReflector builds a SecretReflector.

Types

type NamespacedConfigMapReflector

type NamespacedConfigMapReflector struct {
	generic.NamespacedReflector
	// contains filtered or unexported fields
}

NamespacedConfigMapReflector manages the ConfigMap reflection.

func (*NamespacedConfigMapReflector) Handle

func (ncr *NamespacedConfigMapReflector) Handle(ctx context.Context, name string) error

Handle is responsible for reconciling the given object and ensuring it is correctly reflected.

type NamespacedSecretReflector

type NamespacedSecretReflector struct {
	generic.NamespacedReflector
	// contains filtered or unexported fields
}

NamespacedSecretReflector manages the Secret reflection.

func (*NamespacedSecretReflector) Handle

func (nsr *NamespacedSecretReflector) Handle(ctx context.Context, name string) error

Handle is responsible for reconciling the given object and ensuring it is correctly reflected.

Jump to

Keyboard shortcuts

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