kubernetes: github.com/erimatnor/kubernetes/pkg/fieldpath Index | Files

package fieldpath

import "github.com/erimatnor/kubernetes/pkg/fieldpath"

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

Index

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 2017-05-11. Refresh now. Tools for package owners.