package
0.0.0-20240618140715-250f864a47e9
Repository: https://github.com/stollenaar/gitops-engine.git
Documentation: pkg.go.dev
# README
Please check the doc.go file for more details about how to use and maintain the code in this package.
# Functions
BuildManagerIdentifier creates a manager identifier string from a ManagedFieldsEntry.
DecodeManagedFields converts ManagedFields from the wire format (api format) to the format used by sigs.k8s.io/structured-merge-diff.
EncodeObjectManagedFields converts and stores the fieldpathManagedFields into the objects ManagedFields.
FieldsToSet creates a set paths from an input trie of fields.
NewEmptyManaged creates an empty ManagedInterface.
NewManaged creates a ManagedInterface from a fieldpath.ManagedFields and the timestamps associated with each operation.
NewTypeConverter builds a TypeConverter from a proto.Models.
NewVersionConverter will expose the version converter from the borrowed private function from k8s apiserver handler.
RemoveObjectManagedFields removes the ManagedFields from the object before we merge so that it doesn't appear in the ManagedFields recursively.
SetToFields creates a trie of fields from an input set of paths.
# Variables
EmptyFields represents a set with no paths It looks like metav1.Fields{Raw: []byte("{}")}.
# Structs
DeducedTypeConverter is a TypeConverter for CRDs that don't have a schema.
# Interfaces
ManagedInterface groups a fieldpath.ManagedFields together with the timestamps associated with each operation.
TypeConverter allows you to convert from runtime.Object to typed.TypedValue and the other way around.