mutation

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mutate

func Mutate(newObject, oldObject runtime.Object, mutators ...Mutator) (runtime.Object, error)

Mutate creates a copy of the provided runtime.Object and runs the provided Mutator on it will return the changed copy if changes have been made or nil otherwise

Types

type Mutator

type Mutator interface {
	kewl.NamedObject
	codec.SchemeExtension
	// Mutate mutates the new object provided having access on the old object as well
	Mutate(newObject, oldObject runtime.Object) error
}

Mutator is the interface which is to be used to mutate a k8s runtime.Object

Jump to

Keyboard shortcuts

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