unstructured

package
v0.0.0-...-5ee5d88 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInt64FromPath

func GetInt64FromPath(value *unstructured.Unstructured, path string, prefixFields []string) (*int64, error)

GetInt64FromPath gets an int64 value at path of an unstructured object, optionally wrapped under prefixFields.

func GetLabelSelectorFromPath

func GetLabelSelectorFromPath(obj *unstructured.Unstructured, path string, prefixFields []string) (*metav1.LabelSelector, error)

GetInt64FromPath returns value at path (optionally under prefixFields) in the unstructured object as a metav1.LabelSelector. The field value must be a string or a map[string]interface{}, both of which must be convertible into a metav1.LabelSelector.

func SetInt64FromPath

func SetInt64FromPath(value *unstructured.Unstructured, path string, replicas *int64, prefixFields []string) error

GetInt64FromPath sets an int64 value at path of an unstructured object, optionally wrapped under prefixFields.

func SplitDotPath

func SplitDotPath(dotPath string, prefixFields []string) []string

func ToSlashPath

func ToSlashPath(dotPath string) (output string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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