Documentation ¶
Index ¶
- func Compare(a, e unstructured.Unstructured, tidy bool) (bool, error)
- func FixupGenerateLabels(obj unstructured.Unstructured)
- func GetFileBytes(path string) ([]byte, error)
- func GetResourceFromPath(fs billy.Filesystem, path string) (*unstructured.Unstructured, error)
- func GetUnstructuredResources(resourceBytes []byte) ([]*unstructured.Unstructured, error)
- func Load[T any](l loader.Loader, content []byte) (*T, error)
- func RemoveDuplicates(resources []*unstructured.Unstructured) (ResourceMap, ResourceMap)
- func Tidy(obj unstructured.Unstructured) unstructured.Unstructured
- func YamlToUnstructured(resourceYaml []byte) (*unstructured.Unstructured, error)
- type ResourceKey
- type ResourceMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
func Compare(a, e unstructured.Unstructured, tidy bool) (bool, error)
func FixupGenerateLabels ¶
func FixupGenerateLabels(obj unstructured.Unstructured)
func GetFileBytes ¶
func GetResourceFromPath ¶
func GetResourceFromPath(fs billy.Filesystem, path string) (*unstructured.Unstructured, error)
func GetUnstructuredResources ¶
func GetUnstructuredResources(resourceBytes []byte) ([]*unstructured.Unstructured, error)
func RemoveDuplicates ¶
func RemoveDuplicates(resources []*unstructured.Unstructured) (ResourceMap, ResourceMap)
func Tidy ¶
func Tidy(obj unstructured.Unstructured) unstructured.Unstructured
func YamlToUnstructured ¶
func YamlToUnstructured(resourceYaml []byte) (*unstructured.Unstructured, error)
Types ¶
type ResourceMap ¶
type ResourceMap = map[ResourceKey]*unstructured.Unstructured
Click to show internal directories.
Click to hide internal directories.