unstructured

package
v0.2.6-rc7 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnstructuredFromRequest

func UnstructuredFromRequest(request *webhook.Request) (*unstructured.Unstructured, error)

UnstructuredFromRequest returns a Unstructured object from the webhook request. If the operation is a Delete operation, then the old object is returned. Otherwise, the new object is returned.

func UnstructuredOldAndNewFromRequest

func UnstructuredOldAndNewFromRequest(request *webhook.Request) (*unstructured.Unstructured, *unstructured.Unstructured, error)

UnstructuredOldAndNewFromRequest gets the old and new Unstructured objects, respectively, from the webhook request. If the request is a Delete operation, then the new object is the zero value for Unstructured. Similarly, if the request is a Create operation, then the old object is the zero value for Unstructured.

Types

This section is empty.

Jump to

Keyboard shortcuts

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