util

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractResourceVersion

func ExtractResourceVersion(objectAsMap map[string]any) (string, bool)

ExtractResourceVersion retrieves the "resourceVersion" field from the "metadata" map within the provided objectAsMap. It returns the resource version as a string and a boolean indicating whether the extraction was successful.

func ParseGroupVersionResource

func ParseGroupVersionResource(gv string) (schema.GroupVersionResource, error)

Types

type EventEntryEnv

type EventEntryEnv struct {
	Event  watch.Event
	Object *unstructured.Unstructured
}

EventEntryEnv is the expression environment exposed to the user-supplied filter expression (--filter flag). Methods are callable from within expr-lang expressions such as `Namespaces("default", "kube-system")`.

func (EventEntryEnv) All

func (e EventEntryEnv) All() bool

func (EventEntryEnv) Label

func (e EventEntryEnv) Label(key, value string) bool

func (EventEntryEnv) LabelExists

func (e EventEntryEnv) LabelExists(labelKeys ...string) bool

func (EventEntryEnv) Name

func (e EventEntryEnv) Name(vals ...string) bool

func (EventEntryEnv) Names

func (e EventEntryEnv) Names(vals ...string) bool

func (EventEntryEnv) Namespace

func (e EventEntryEnv) Namespace(vals ...string) bool

func (EventEntryEnv) Namespaced

func (e EventEntryEnv) Namespaced(namespace, name string) bool

func (EventEntryEnv) Namespaces

func (e EventEntryEnv) Namespaces(vals ...string) bool

func (EventEntryEnv) None

func (e EventEntryEnv) None() bool

Jump to

Keyboard shortcuts

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