resource

package
v1.11.0-rc.8 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

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 GetFileBytes(path string) ([]byte, error)

func GetResourceFromPath

func GetResourceFromPath(fs billy.Filesystem, path string) (*unstructured.Unstructured, error)

func GetUnstructuredResources

func GetUnstructuredResources(resourceBytes []byte) ([]*unstructured.Unstructured, error)

func Load

func Load[T any](l loader.Loader, content []byte) (*T, error)

func RemoveDuplicates

func RemoveDuplicates(resources []*unstructured.Unstructured) (ResourceMap, ResourceMap)

func YamlToUnstructured

func YamlToUnstructured(resourceYaml []byte) (*unstructured.Unstructured, error)

Types

type ResourceKey

type ResourceKey struct {
	schema.GroupKind
	Namespace string
	Name      string
}

type ResourceMap

type ResourceMap = map[ResourceKey]*unstructured.Unstructured

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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