patch

package
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertPatches added in v1.10.0

func ConvertPatches(in ...jsonpatch.JsonPatchOperation) [][]byte

func NewConditionError

func NewConditionError(err error) error

func NewGlobalConditionError

func NewGlobalConditionError(err error) error

func ProcessPatchJSON6902

func ProcessPatchJSON6902(logger logr.Logger, patchesJSON6902 []byte, resource resource) (resource, error)

ProcessPatchJSON6902 ...

func ProcessStrategicMergePatch

func ProcessStrategicMergePatch(logger logr.Logger, overlay interface{}, resource resource) (resource, error)

ProcessStrategicMergePatch ...

Types

type ConditionError

type ConditionError struct {
	// contains filtered or unexported fields
}

func (ConditionError) Error

func (ce ConditionError) Error() string

type GlobalConditionError

type GlobalConditionError struct {
	// contains filtered or unexported fields
}

func (GlobalConditionError) Error

func (ce GlobalConditionError) Error() string

type Patcher

type Patcher interface {
	Patch(logr.Logger, resource) (resource, error)
}

Patcher patches the resource

func NewPatchStrategicMerge

func NewPatchStrategicMerge(patch apiextensions.JSON) Patcher

func NewPatchesJSON6902

func NewPatchesJSON6902(patches string) Patcher

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL