resource

package
v1.8.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Workers is the number of workers for this controller
	Workers        = 1
	ControllerName = "resource-report-controller"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	controllers.Controller
	MetadataCache
}

type EventHandler

type EventHandler func(types.UID, schema.GroupVersionKind, Resource)

type MetadataCache

type MetadataCache interface {
	GetResourceHash(uid types.UID) (Resource, schema.GroupVersionKind, bool)
	AddEventHandler(EventHandler)
}

type Resource

type Resource struct {
	Namespace string
	Name      string
	Hash      string
}

Jump to

Keyboard shortcuts

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