Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPatchMaker = NewPatchMaker(&patch.K8sStrategicMergePatcher{}, &patch.BaseJSONMergePatcher{})
Functions ¶
Types ¶
type IndicesGetComponentTemplate ¶ added in v8.1.1
type IndicesGetComponentTemplate struct {
olivere.IndicesGetComponentTemplate
}
func (*IndicesGetComponentTemplate) UnmarshalJSON ¶ added in v8.1.1
func (o *IndicesGetComponentTemplate) UnmarshalJSON(data []byte) error
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.