Documentation
¶
Overview ¶
Package kube provides functionality for interacting with Kubernetes resources.
This package implements operations to work with Kubernetes resources and APIs, providing abstractions for common Kubernetes operations used throughout the codebase.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidYAML = errors.New("invalid yaml") ErrInvalidKubeResource = errors.New("invalid kubernetes resource") )
Functions ¶
func SplitYAML ¶
func SplitYAML(yamlData []byte) ([]*unstructured.Unstructured, error)
SplitYAML splits a YAML file into unstructured objects. Returns list of all unstructured objects found in the yaml. If an error occurs, returns objects that have been parsed so far too.
func SplitYAMLToString ¶
SplitYAMLToString splits a YAML file into strings. Returns list of yamls found in the yaml. If an error occurs, returns objects that have been parsed so far too.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.