{"modulePath":"github.com/UnityTech/client-go","version":"v11.0.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package reference\n\n## Variables\n\n```go\nvar (\n\t// Errors that could be returned by GetReference.\n\tErrNilObject  = errors.New(\"can't reference a nil object\")\n\tErrNoSelfLink = errors.New(\"selfLink was empty, can't make reference\")\n)\n```\n\n## Functions\n\n```go\nfunc GetPartialReference(scheme *runtime.Scheme, obj runtime.Object, fieldPath string) (*v1.ObjectReference, error)\n```\nGetPartialReference is exactly like GetReference, but allows you to set the FieldPath.\n\n```go\nfunc GetReference(scheme *runtime.Scheme, obj runtime.Object) (*v1.ObjectReference, error)\n```\nGetReference 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](http://issue.k8s.io/7127)\n\n","path":"github.com/UnityTech/client-go/tools/reference","name":"reference","synopsis":"","isRedistributable":true}
