Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPatchMaker = NewPatchMaker(&patch.K8sStrategicMergePatcher{}, &patch.BaseJSONMergePatcher{})
Functions ¶
This section is empty.
Types ¶
type Maker ¶
type Maker interface {
Calculate(currentObject, modifiedObject, originalObject any, opts ...CalculateOption) (*PatchResult, error)
}
func NewPatchMaker ¶
func NewPatchMaker(strategicMergePatcher patch.StrategicMergePatcher, jsonMergePatcher patch.JSONMergePatcher) Maker
type PatchMaker ¶
type PatchMaker struct {
// contains filtered or unexported fields
}
func (*PatchMaker) Calculate ¶
func (p *PatchMaker) Calculate(currentObject, modifiedObject, originalObject any, opts ...CalculateOption) (*PatchResult, error)
type PatchResult ¶
func (*PatchResult) IsEmpty ¶
func (p *PatchResult) IsEmpty() bool
func (*PatchResult) String ¶
func (p *PatchResult) String() string
Click to show internal directories.
Click to hide internal directories.