watcher

package
v0.0.0-...-c9e8fde Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package watcher provides a Watcher which can be used to observe extra resources at runtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJSONPath

func GetJSONPath(path string, obj unstructured.Unstructured) ([]string, error)

Types

type Path

type Path = string

type WatchedResource

type WatchedResource struct {
	ApiVersion string
	Kind       string
	Name       string
	Namespace  string
}

type WatchedResourceWithPath

type WatchedResourceWithPath struct {
	WatchedResource
	Path string
}

type Watcher

type Watcher interface {
	// ReconcileWatches is a general function that updates list of watched resources based on given SpecialResourceModule
	ReconcileWatches(context.Context, srov1beta1.SpecialResourceModule) error
}

func New

func New(ctrl controller.Controller) Watcher

Jump to

Keyboard shortcuts

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