openshiftrestmapper

package
v0.0.0-...-5152f1c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL