package
0.0.0-20240610103501-74a2a4fd2bae
Repository: https://github.com/stackrox/k8s-overlay-patch.git
Documentation: pkg.go.dev

# Functions

FromHash parses kind, namespace and name from a hash.
Hash returns a unique, insecure hash based on kind, namespace and name.
HashNameKind returns a unique, insecure hash based on kind and name.
NewK8sObject creates a new K8sObject and returns a ptr to it.
ParseJSONToK8sObject parses JSON to an K8sObject.
ParseK8sObjectsFromYAMLManifest returns a K8sObjects representation of manifest.
ParseK8sObjectsFromYAMLManifestFailOption returns a K8sObjects representation of manifest.
ParseYAMLToK8sObject parses YAML to an Object.

# Constants

YAMLSeparator is a separator for multi-document YAML files.

# Structs

K8sObject is an in-memory representation of a k8s object, used for moving between different representations (Unstructured, JSON, YAML) with cached rendering.

# Type aliases

K8sObjects holds a collection of k8s objects, so that we can filter / sequence them.