{"modulePath":"github.1git.de/openshift/origin","version":"v4.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package apihelpers\n\n## Functions\n\n```go\nfunc Convert_runtime_Object_To_runtime_RawExtension(c runtime.ObjectConvertor, in *runtime.Object, out *runtime.RawExtension, s conversion.Scope) error\n```\nConvert\\_runtime\\_Object\\_To\\_runtime\\_RawExtension attempts to convert runtime.Objects to the appropriate target, returning an error if there is insufficient information on the conversion scope to determine the target version.\n\n```go\nfunc Convert_runtime_RawExtension_To_runtime_Object(c runtime.ObjectConvertor, in *runtime.RawExtension, out *runtime.Object, s conversion.Scope) error\n```\nConvert\\_runtime\\_RawExtension\\_To\\_runtime\\_Object attempts to convert an incoming object into the appropriate output type.\n\n```go\nfunc GetConfigMapName(base, suffix string) string\n```\nGetConfigMapName calls GetName with the length restriction for ConfigMaps\n\n```go\nfunc GetName(base, suffix string, maxLength int) string\n```\nGetName returns a name given a base (\"deployment-5\") and a suffix (\"deploy\") It will first attempt to join them with a dash. If the resulting name is longer than maxLength: if the suffix is too long, it will truncate the base name and add an 8-character hash of the \\[base]-\\[suffix] string.  If the suffix is not too long, it will truncate the base, add the hash of the base and return \\[base]-[hash](/hash)-\\[suffix]\n\n```go\nfunc GetPodName(base, suffix string) string\n```\nGetPodName calls GetName with the length restriction for pods\n\n```go\nfunc InternalListOptionsToSelectors(options *metainternal.ListOptions) (labels.Selector, fields.Selector)\n```\n\n```go\nfunc LegacyMetaV1FieldSelectorConversionWithName(label, value string) (string, string, error)\n```\nLegacyMetaV1FieldSelectorConversionWithName auto-accepts metav1 values for name and namespace AND \"name\" which many of our older resources used.\n\n","path":"github.1git.de/openshift/origin/pkg/api/apihelpers","name":"apihelpers","synopsis":"","isRedistributable":true}
