controller

package
v0.1.8-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package controller provides a Kubernetes controller that watches for changes to Kubernetes objects and updates the an inverted index with those changes.

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 is an informer, a workqueue, and an inverted index.

func New

func New(client kubernetes.Interface) *Controller

New returns Controller objects.

func (*Controller) Index

func (c *Controller) Index() *index.Index

Index returns the index bound to this Controller.

func (*Controller) Start

func (c *Controller) Start() context.CancelFunc

Start this controller. The caller should defer the call to the return cancel function.

func (*Controller) Store

func (c *Controller) Store() map[string]cache.Store

Store returns the object store.

Jump to

Keyboard shortcuts

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