controller

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package controller provides a controller that can be used to watch policies in the Kubernetes API. It registers strategies from those policies to an enforcer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TelemetryPolicyController

type TelemetryPolicyController struct {
	rest.Interface
	cache.Writer
	Enforcer strategy.Enforcer
}

TelemetryPolicyController instruments the necessary functions for to Register policies to a metrics cache and a Interface registry. Controller embeds a rest interface to Kubernetes which allows it to be passed as a client. It also embeds a cache editor which allows it to write to and delete from a shared cache.

func (*TelemetryPolicyController) Run

func (controller *TelemetryPolicyController) Run(context context.Context)

Run starts the controller watching on the Informer queue and doesnt' stop it, until the Done signal is received from context.

Jump to

Keyboard shortcuts

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