Documentation
¶
Index ¶
- func ExtractResourceVersion(objectAsMap map[string]any) (string, bool)
- func ParseGroupVersionResource(gv string) (schema.GroupVersionResource, error)
- type EventEntryEnv
- func (e EventEntryEnv) All() bool
- func (e EventEntryEnv) Label(key, value string) bool
- func (e EventEntryEnv) LabelExists(labelKeys ...string) bool
- func (e EventEntryEnv) Name(vals ...string) bool
- func (e EventEntryEnv) Names(vals ...string) bool
- func (e EventEntryEnv) Namespace(vals ...string) bool
- func (e EventEntryEnv) Namespaced(namespace, name string) bool
- func (e EventEntryEnv) Namespaces(vals ...string) bool
- func (e EventEntryEnv) None() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractResourceVersion ¶
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
Click to show internal directories.
Click to hide internal directories.