kubernetes.v0: gopkg.in/kubernetes/kubernetes.v0/pkg/fieldpath Index | Files

package fieldpath

import "gopkg.in/kubernetes/kubernetes.v0/pkg/fieldpath"

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


Package Files

doc.go fieldpath.go

func ExtractFieldPathAsString Uses

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

Package fieldpath imports 2 packages (graph). Updated 2018-05-27. Refresh now. Tools for package owners.