Documentation ¶
Index ¶
- func ConvertPatchesToJSON(patchesJSON6902 string) ([]byte, error)
- func NewConditionError(err error) error
- func NewGlobalConditionError(err error) error
- func ProcessPatchJSON6902(ruleName string, patchesJSON6902 []byte, resource unstructured.Unstructured, ...) (resp response.RuleResponse, patchedResource unstructured.Unstructured)
- func ProcessStrategicMergePatch(ruleName string, overlay interface{}, resource unstructured.Unstructured, ...) (resp response.RuleResponse, patchedResource unstructured.Unstructured)
- type ConditionError
- type GlobalConditionError
- type Patcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertPatchesToJSON ¶
func NewConditionError ¶
func NewGlobalConditionError ¶
func ProcessPatchJSON6902 ¶
func ProcessPatchJSON6902(ruleName string, patchesJSON6902 []byte, resource unstructured.Unstructured, log logr.Logger) (resp response.RuleResponse, patchedResource unstructured.Unstructured)
ProcessPatchJSON6902 ...
func ProcessStrategicMergePatch ¶
func ProcessStrategicMergePatch(ruleName string, overlay interface{}, resource unstructured.Unstructured, log logr.Logger) (resp response.RuleResponse, patchedResource unstructured.Unstructured)
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() (resp response.RuleResponse, newPatchedResource unstructured.Unstructured)
}
Patcher patches the resource
func NewPatchStrategicMerge ¶
func NewPatchStrategicMerge(ruleName string, patch apiextensions.JSON, patchedResource unstructured.Unstructured, context context.EvalInterface, logger logr.Logger) Patcher
func NewPatchesJSON6902 ¶
func NewPatchesJSON6902(ruleName string, patches string, patchedResource unstructured.Unstructured, logger logr.Logger) Patcher
Click to show internal directories.
Click to hide internal directories.