package reference
import "k8s.io/client-go/tools/reference"
Index ¶
- Variables
- func GetPartialReference(scheme *runtime.Scheme, obj runtime.Object, fieldPath string) (*v1.ObjectReference, error)
- func GetReference(scheme *runtime.Scheme, obj runtime.Object) (*v1.ObjectReference, error)
Variables ¶
var ( // Errors that could be returned by GetReference. ErrNilObject = errors.New("can't reference a nil object") )
Functions ¶
func GetPartialReference ¶
func GetPartialReference(scheme *runtime.Scheme, obj runtime.Object, fieldPath string) (*v1.ObjectReference, error)
GetPartialReference is exactly like GetReference, but allows you to set the FieldPath.
func GetReference ¶
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
- v0.22.9
- Published
- Apr 20, 2022
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 1 hour ago –
Tools for package owners.