kubernetesk8s.io/kubernetes/pkg/api/ref Index | Files

package ref

import "k8s.io/kubernetes/pkg/api/ref"

Index

Variables

var (
	// Errors that could be returned by GetReference.
	ErrNilObject  = errors.New("can't reference a nil object")
	ErrNoSelfLink = errors.New("selfLink was empty, can't make reference")
)

Functions

func GetPartialReference

func GetPartialReference(scheme *runtime.Scheme, obj runtime.Object, fieldPath string) (*api.ObjectReference, error)

GetPartialReference is exactly like GetReference, but allows you to set the FieldPath.

func GetReference

func GetReference(scheme *runtime.Scheme, obj runtime.Object) (*api.ObjectReference, error)

GetReference returns an ObjectReference which refers to the given object, or an error if the object doesn't follow the conventions that would allow this. TODO: should take a meta.Interface see http://issue.k8s.io/7127

Source Files

ref.go

Version
v1.7.6-beta.0
Published
Aug 31, 2017
Platform
js/wasm
Imports
7 packages
Last checked
2 minutes ago

Tools for package owners.