package
1.11.0-alpha.1
Repository: https://github.com/ceshihao/kubernetes.git
Documentation: pkg.go.dev
# Functions
IsAdd returns true if the field represented by e should have the local value directly added to the merged object instead of merging the recorded, local and remote values.
IsDrop returns true if the field represented by e should be dropped from the merged object.
NewConflictError returns a ConflictError with detailed conflict information in element.
NewRawElementData returns a new RawElementData, setting IsSet to true for non-nil values, and leaving IsSet false for nil values.
# Constants
DROP drops the field from an object.
ERROR is an error during merge.
MergeStrategy is the strategy to merge the local and remote values.
ReplaceStrategy is the strategy to replace the remote value with the local value.
RetainKeysStrategy is the strategy to merge the local and remote values, but drop any fields not defined locally.
SET sets the field on an object.
# Structs
CombinedMapSlice is a slice of maps or types with merge keys.
CombinedPrimitiveSlice implements a slice of primitives.
ConflictError represents a conflict error occurred during the merge operation.
EmptyElement is a placeholder for when no value is set for a field so its type is unknown.
FieldMetaImpl implements FieldMeta.
HasElementData contains whether a field was set in the recorded, local and remote sources.
ListElement contains the recorded, local and remote values for a field of type list.
ListElementData contains the recorded, local and remote data for a list.
ListItem represents a single value in a slice of maps or types.
MapElement contains the recorded, local and remote values for a field of type map.
MapElementData contains the recorded, local and remote data for a map or type.
PrimitiveElement contains the recorded, local and remote values for a field of type primitive.
PrimitiveListItem represents a single value in a slice of primitives.
RawElementData contains the raw recorded, local and remote data and metadata about whethere or not each was set.
Result is the result of merging fields.
TypeElement contains the recorded, local and remote values for a field that is a complex type.
# Interfaces
ConflictDetector defines the capability to detect conflict.
Element contains the record, local, and remote value for a field in an object and metadata about the field read from openapi.
FieldMeta defines the strategy used to apply a Patch for an element.
Strategy implements a strategy for merging recorded, local and remote values contained in an element and returns the merged result.
# Type aliases
MergeKeys is the set of fields on an object that uniquely identify and is used when merging lists to identify the "same" object independent of the ordering of the objects.
MergeKeyValue records the value of the mergekey for an item in a list.
Operation records whether a field should be set or dropped.