Documentation ¶
Index ¶
- func AddChangeSet(inv *kustomizev1.ResourceInventory, set *ssa.ChangeSet) error
- func Diff(inv *kustomizev1.ResourceInventory, target *kustomizev1.ResourceInventory) ([]*unstructured.Unstructured, error)
- func List(inv *kustomizev1.ResourceInventory) ([]*unstructured.Unstructured, error)
- func ListMetadata(inv *kustomizev1.ResourceInventory) (object.ObjMetadataSet, error)
- func New() *kustomizev1.ResourceInventory
- func ReferenceToObjMetadataSet(cr []meta.NamespacedObjectKindReference) (object.ObjMetadataSet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddChangeSet ¶
func AddChangeSet(inv *kustomizev1.ResourceInventory, set *ssa.ChangeSet) error
AddChangeSet extracts the metadata from the given objects and adds it to the inventory.
func Diff ¶
func Diff(inv *kustomizev1.ResourceInventory, target *kustomizev1.ResourceInventory) ([]*unstructured.Unstructured, error)
Diff returns the slice of objects that do not exist in the target inventory.
func List ¶
func List(inv *kustomizev1.ResourceInventory) ([]*unstructured.Unstructured, error)
List returns the inventory entries as unstructured.Unstructured objects.
func ListMetadata ¶
func ListMetadata(inv *kustomizev1.ResourceInventory) (object.ObjMetadataSet, error)
ListMetadata returns the inventory entries as object.ObjMetadata objects.
func New ¶
func New() *kustomizev1.ResourceInventory
func ReferenceToObjMetadataSet ¶
func ReferenceToObjMetadataSet(cr []meta.NamespacedObjectKindReference) (object.ObjMetadataSet, error)
ReferenceToObjMetadataSet transforms a NamespacedObjectKindReference to an ObjMetadataSet.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.