{"modulePath":"github.com/openshift/origin","version":"v1.5.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\nPackage api includes all OpenShift-specific types used to communicate between the various parts of the OpenShift and the Kubernetes systems.\n\nUnlike the upstream Kubernetes, API objects in OpenShift are separated into individual packages.\n\n## Constants\n\n```go\nconst (\n\t// OpenShiftDisplayName is a common, optional annotation that stores the name displayed by a UI when referencing a resource.\n\tOpenShiftDisplayName = \"openshift.io/display-name\"\n\n\t// OpenShiftDescription is a common, optional annotation that stores the description for a resource.\n\tOpenShiftDescription = \"openshift.io/description\"\n)\n```\nannotation keys\n\n```go\nconst (\n\tLegacyPrefix = \"/osapi\" // TODO: make configurable\n\tPrefix       = \"/oapi\"  // TODO: make configurable\n\tGroupName    = \"\"\n)\n```\n\n## Variables\n\n```go\nvar SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}\n```\nSchemeGroupVersion is group version used to register these objects\n\n## Functions\n\n```go\nfunc Convert_runtime_Object_To_runtime_RawExtension(in *runtime.Object, out *runtime.RawExtension, s conversion.Scope) error\n```\nConvert\\_runtime\\_Object\\_To\\_runtime\\_RawExtension ensures an object is converted to the destination version of the conversion.\n\n```go\nfunc Convert_runtime_RawExtension_To_runtime_Object(in *runtime.RawExtension, out *runtime.Object, s conversion.Scope) error\n```\nConvert\\_runtime\\_RawExtension\\_To\\_runtime\\_Object ensures an object is converted to the destination version of the conversion.\n\n```go\nfunc GetFieldLabelConversionFunc(supportedLabels map[string]string, overrideLabels map[string]string) func(label, value string) (string, string, error)\n```\nGetFieldLabelConversionFunc returns a field label conversion func, which does the following: \\* returns overrideLabels\\[label], value, nil if the specified label exists in the overrideLabels map \\* returns label, value, nil if the specified label exists as a key in the supportedLabels map (values in this map are unused, it is intended to be a prototypical label/value map) \\* otherwise, returns an error\n\n```go\nfunc GetNameValidationFunc(nameFunc validation.ValidateNameFunc) validation.ValidateNameFunc\n```\nGetNameValidationFunc returns a name validation function that includes the standard restrictions we want for all types\n\n```go\nfunc GetResourceKey(obj kapi.ObjectMeta) string\n```\nGetResourceKey returns a string of the form \\[namespace]/\\[name] for the given resource.  This is a common way of ensuring a key for a resource that is unique across the cluster.\n\n```go\nfunc Kind(kind string) unversioned.GroupKind\n```\nKind takes an unqualified kind and returns back a Group qualified GroupKind\n\n```go\nfunc ListOptionsToSelectors(options *kapi.ListOptions) (labels.Selector, fields.Selector)\n```\n\n```go\nfunc Resource(resource string) unversioned.GroupResource\n```\nResource takes an unqualified resource and returns back a Group qualified GroupResource\n\n","path":"github.com/openshift/origin/pkg/api","name":"api","synopsis":"Package api includes all OpenShift-specific types used to communicate between the various parts of the OpenShift and the Kubernetes systems.","isRedistributable":true}
