Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOpenShiftHardcodedRESTMapper ¶
func NewOpenShiftHardcodedRESTMapper(delegate meta.RESTMapper) meta.RESTMapper
Types ¶
type HardCodedFirstRESTMapper ¶
type HardCodedFirstRESTMapper struct { Mapping map[schema.GroupVersionKind]meta.RESTMapping meta.RESTMapper }
HardCodedFirstRESTMapper is a RESTMapper that will look for hardcoded mappings first, then delegate. This is done in service to `OwnerReferencesPermissionEnforcement` and for cluster-bootstrap.
func (HardCodedFirstRESTMapper) RESTMapping ¶
func (m HardCodedFirstRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error)
RESTMapping is the only function called today. The first hit openshiftrestmapper ought to make this work right. OwnerReferencesPermissionEnforcement only ever calls with one version.
func (HardCodedFirstRESTMapper) RESTMappings ¶
func (m HardCodedFirstRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error)
RESTMapping is the only function called today. The firsthit openshiftrestmapper ought to make this work right. OwnerReferencesPermissionEnforcement only ever calls with one version.
func (HardCodedFirstRESTMapper) String ¶
func (m HardCodedFirstRESTMapper) String() string
Click to show internal directories.
Click to hide internal directories.