Versions in this module Expand all Collapse all v0 v0.7.0 Jan 22, 2026 Changes in this version + type CreateOperation string + const Create + const CreateIfNotExists + const CreateOrUpdate + type DeleteOperation string + const Delete + const DeleteInBackground + const DeleteNonCascading + type NamespacedPatchCollector struct + func NewNamespacedCollector(namespace string, logger *log.Logger) *NamespacedPatchCollector + func (c *NamespacedPatchCollector) Create(obj runtime.Object) + func (c *NamespacedPatchCollector) CreateIfNotExists(obj runtime.Object) + func (c *NamespacedPatchCollector) CreateOrUpdate(obj runtime.Object) + func (c *NamespacedPatchCollector) Delete(apiVersion, kind, name string) + func (c *NamespacedPatchCollector) DeleteInBackground(apiVersion, kind, name string) + func (c *NamespacedPatchCollector) DeleteNonCascading(apiVersion, kind, name string) + func (c *NamespacedPatchCollector) Operations() []pkg.PatchCollectorOperation + func (c *NamespacedPatchCollector) PatchWithJQ(jqfilter, apiVersion, kind, name string, opts ...pkg.PatchCollectorOption) + func (c *NamespacedPatchCollector) PatchWithJSON(jsonPatch any, apiVersion, kind, name string, opts ...pkg.PatchCollectorOption) + func (c *NamespacedPatchCollector) PatchWithMerge(mergePatch any, apiVersion, kind, name string, ...) + func (c *NamespacedPatchCollector) WriteOutput(w io.Writer) error + type Patch struct + func (p *Patch) Description() string + func (p *Patch) WithIgnoreHookError(ignore bool) + func (p *Patch) WithIgnoreMissingObject(ignore bool) + func (p *Patch) WithSubresource(subresource string) + type PatchCollector struct + func NewCollector(logger *log.Logger) *PatchCollector + func (c *PatchCollector) Create(obj any) + func (c *PatchCollector) CreateIfNotExists(obj any) + func (c *PatchCollector) CreateOrUpdate(obj any) + func (c *PatchCollector) Delete(apiVersion string, kind string, namespace string, name string) + func (c *PatchCollector) DeleteInBackground(apiVersion string, kind string, namespace string, name string) + func (c *PatchCollector) DeleteNonCascading(apiVersion string, kind string, namespace string, name string) + func (c *PatchCollector) JQFilter(filter string, apiVersion string, kind string, namespace string, name string, ...) + func (c *PatchCollector) JSONPatch(patch any, apiVersion string, kind string, namespace string, name string, ...) + func (c *PatchCollector) MergePatch(patch any, apiVersion string, kind string, namespace string, name string, ...) + func (c *PatchCollector) Operations() []pkg.PatchCollectorOperation + func (c *PatchCollector) PatchWithJQ(jqfilter string, apiVersion string, kind string, namespace string, name string, ...) + func (c *PatchCollector) PatchWithJSON(jsonPatch any, apiVersion string, kind string, namespace string, name string, ...) + func (c *PatchCollector) PatchWithMerge(mergePatch any, apiVersion string, kind string, namespace string, name string, ...) + func (c *PatchCollector) WriteOutput(w io.Writer) error + type PatchOperation string + const JQPatch + const JSONPatch + const MergePatch + type Snapshot json.RawMessage + func (snap Snapshot) String() string + func (snap Snapshot) UnmarshalTo(v any) error + type Snapshots map[string][]pkg.Snapshot + func (s Snapshots) Get(key string) []pkg.Snapshot