Documentation ¶
Overview ¶
Package patches implement the patch engine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine interface {
Apply(ctx context.Context, blueprint *scope.ClusterBlueprint, desired *scope.ClusterState) error
}
Engine is a patch engine which applies patches defined in a ClusterBlueprint to a ClusterState.
type PatchOption ¶
type PatchOption interface { // ApplyToHelper applies configuration to the given options. ApplyToHelper(*PatchOptions) }
PatchOption represents an option for the patchObject and patchTemplate funcs.
type PatchOptions ¶
type PatchOptions struct {
// contains filtered or unexported fields
}
PatchOptions contains options for patchObject and patchTemplate.
func (*PatchOptions) ApplyOptions ¶
func (o *PatchOptions) ApplyOptions(opts []PatchOption)
ApplyOptions applies the given patch options.
type PreserveFields ¶
PreserveFields instructs the patch func to preserve fields.
func (PreserveFields) ApplyToHelper ¶
func (i PreserveFields) ApplyToHelper(opts *PatchOptions)
ApplyToHelper applies this configuration to the given patch options.
Directories ¶
Path | Synopsis |
---|---|
Package api contains the API definition for the patch engine.
|
Package api contains the API definition for the patch engine. |
Package inline implements the inline JSON patch generator.
|
Package inline implements the inline JSON patch generator. |
Package variables calculates variables for patching.
|
Package variables calculates variables for patching. |
Click to show internal directories.
Click to hide internal directories.