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

package fieldpath

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

Package fieldpath supplies methods for extracting fields from objects given a path to a field.

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.

Currently, this API is limited to supporting the fieldpaths:

1. metadata.name - The name of an API object 2. metadata.namespace - The namespace of an API object

Source Files

doc.go fieldpath.go

Version
v0.19.3
Published
Jun 22, 2015
Platform
windows/amd64
Imports
2 packages
Last checked
6 minutes ago

Tools for package owners.