package pruning
import "k8s.io/apiextensions-apiserver/pkg/apiserver/schema/pruning"
Index ¶
Functions ¶
func Prune ¶
func Prune(obj interface{}, s *structuralschema.Structural, root bool)
Prune removes object fields in obj which are not specified in s. It skips TypeMeta and ObjectMeta fields if XEmbeddedResource is set to true, or for the root if root=true.
Source Files ¶
algorithm.go
- Version
- v0.15.12-beta.0
- Published
- Mar 13, 2020
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 15 minutes ago –
Tools for package owners.