kubernetesk8s.io/kubernetes/pkg/kubectl/util/fieldpath Index | Files

package fieldpath

import "k8s.io/kubernetes/pkg/kubectl/util/fieldpath"

Index

Functions

func ExtractFieldPathAsString

func ExtractFieldPathAsString(obj interface{}, fieldPath string) (string, error)

ExtractFieldPathAsString extracts the field from the given object and returns it as a string. The object must be a pointer to an API type.

func FormatMap

func FormatMap(m map[string]string) (fmtStr string)

FormatMap formats map[string]string to a string.

func SplitMaybeSubscriptedPath

func SplitMaybeSubscriptedPath(fieldPath string) (string, string, bool)

SplitMaybeSubscriptedPath checks whether the specified fieldPath is subscripted, and

Example inputs and outputs:

Source Files

fieldpath.go

Version
v1.14.1
Published
Apr 5, 2019
Platform
js/wasm
Imports
5 packages
Last checked
3 seconds ago

Tools for package owners.