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)
func SRMWFromWatchedResourceWithPath ¶
func SRMWFromWatchedResourceWithPath(wrp WatchedResourceWithPath) srov1beta1.SpecialResourceModuleWatch
Types ¶
type WatchedResource ¶
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
Click to show internal directories.
Click to hide internal directories.