patchset

package
v0.23.0-dev Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package patchset provides the patchSet utility type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PatchSet

type PatchSet interface {
	// Add an object (which is a pointer to a struct) to the PatchSet. The object's snapshot is taken.
	// Now, any changes made to the object will result in a patch being produced and applied at during Apply call.
	Add(client.Object)

	// Objects returns all objects that have been added to the PatchSet.
	Objects() map[types.UID]client.Object

	// Apply calculates patches to all added objects and applies them all at once.
	Apply(context.Context) error
}

PatchSet is used to snapshot multiple objects and then patch them all at once.

func New

func New(c client.Client) PatchSet

Jump to

Keyboard shortcuts

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