Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2019 Changes in this version + func CreateDeleteDirective(mergeKey string, mergeKeyValue interface{}) map[string]interface + func CreateThreeWayMergePatch(original, modified, current []byte, schema LookupPatchMeta, overwrite bool, ...) ([]byte, error) + func CreateTwoWayMergePatch(original, modified []byte, dataStruct interface{}, ...) ([]byte, error) + func CreateTwoWayMergePatchUsingLookupPatchMeta(original, modified []byte, schema LookupPatchMeta, ...) ([]byte, error) + func GetTagStructTypeOrDie(dataStruct interface{}) reflect.Type + func ItemAddedToModifiedSlice(original, modified string) bool + func ItemMatchesOriginalAndModifiedSlice(original, modified string) bool + func ItemRemovedFromModifiedSlice(original, modified string) bool + func MergingMapsHaveConflicts(left, right map[string]interface{}, schema LookupPatchMeta) (bool, error) + func NewKindItem(key string, path *openapi.Path) *kindItem + func NewSliceItem(key string, path *openapi.Path) *sliceItem + func StrategicMergePatch(original, patch []byte, dataStruct interface{}) ([]byte, error) + func StrategicMergePatchUsingLookupPatchMeta(original, patch []byte, schema LookupPatchMeta) ([]byte, error) + type DiffOptions struct + BuildRetainKeysDirective bool + IgnoreChangesAndAdditions bool + IgnoreDeletions bool + SetElementOrder bool + type FieldNotFoundError struct + Field string + Path string + func (e FieldNotFoundError) Error() string + type InvalidTypeError struct + Actual string + Expected string + Path string + func (e InvalidTypeError) Error() string + type JSONMap map[string]interface + func CreateTwoWayMergeMapPatch(original, modified JSONMap, dataStruct interface{}, ...) (JSONMap, error) + func CreateTwoWayMergeMapPatchUsingLookupPatchMeta(original, modified JSONMap, schema LookupPatchMeta, ...) (JSONMap, error) + func MergeStrategicMergeMapPatchUsingLookupPatchMeta(schema LookupPatchMeta, patches ...JSONMap) (JSONMap, error) + func StrategicMergeMapPatch(original, patch JSONMap, dataStruct interface{}) (JSONMap, error) + func StrategicMergeMapPatchUsingLookupPatchMeta(original, patch JSONMap, schema LookupPatchMeta) (JSONMap, error) + type LookupPatchItem interface + Error func() error + Path func() *openapi.Path + type LookupPatchMeta interface + LookupPatchMetadataForSlice func(key string) (LookupPatchMeta, PatchMeta, error) + LookupPatchMetadataForStruct func(key string) (LookupPatchMeta, PatchMeta, error) + Name func() string + type LookupPatchMetaError struct + Err error + Path string + func (e LookupPatchMetaError) Error() string + type MergeOptions struct + IgnoreUnmatchedNulls bool + MergeParallelList bool + type PatchMeta struct + func (pm PatchMeta) GetPatchMergeKey() string + func (pm PatchMeta) GetPatchStrategies() []string + func (pm PatchMeta) SetPatchMergeKey(pmk string) + func (pm PatchMeta) SetPatchStrategies(ps []string) + type PatchMetaFromOpenAPI struct + Schema openapi.Schema + func NewPatchMetaFromOpenAPI(s openapi.Schema) PatchMetaFromOpenAPI + func (s PatchMetaFromOpenAPI) LookupPatchMetadataForSlice(key string) (LookupPatchMeta, PatchMeta, error) + func (s PatchMetaFromOpenAPI) LookupPatchMetadataForStruct(key string) (LookupPatchMeta, PatchMeta, error) + func (s PatchMetaFromOpenAPI) Name() string + type PatchMetaFromStruct struct + T reflect.Type + func NewPatchMetaFromStruct(dataStruct interface{}) (PatchMetaFromStruct, error) + func (s PatchMetaFromStruct) LookupPatchMetadataForSlice(key string) (LookupPatchMeta, PatchMeta, error) + func (s PatchMetaFromStruct) LookupPatchMetadataForStruct(key string) (LookupPatchMeta, PatchMeta, error) + func (s PatchMetaFromStruct) Name() string + type SortableSliceOfMaps struct + func (ss SortableSliceOfMaps) Len() int + func (ss SortableSliceOfMaps) Less(i, j int) bool + func (ss SortableSliceOfMaps) Swap(i, j int) + type SortableSliceOfScalars struct + func (ss SortableSliceOfScalars) Len() int + func (ss SortableSliceOfScalars) Less(i, j int) bool + func (ss SortableSliceOfScalars) Swap(i, j int)