MCPcopy
hub / github.com/kubernetes/kubectl / OpenAPIResourcesGetter

Interface OpenAPIResourcesGetter

pkg/util/openapi/openapi.go:30–32  ·  view source on GitHub ↗

OpenAPIResourcesGetter represents a function to return OpenAPI V2 resource specifications. Used for lazy-loading these resource specifications.

Source from the content-addressed store, hash-verified

28// OpenAPI V2 resource specifications. Used for lazy-loading
29// these resource specifications.
30type OpenAPIResourcesGetter interface {
31 OpenAPISchema() (Resources, error)
32}
33
34// Resources interface describe a resources provider, that can give you
35// resource based on group-version-kind.

Callers 8

OpenAPISchemaMethod · 0.65
validateResourceMethod · 0.65
patchSimpleMethod · 0.65
apply_test.goFile · 0.65
explain_test.goFile · 0.65
renderOpenAPIV2Method · 0.65
openapi_test.goFile · 0.65
OpenAPISchemaMethod · 0.65

Implementers 5

fakeResourcesGetterpkg/validation/validation_test.go
TestFactorypkg/cmd/testing/fake.go
factoryImplpkg/cmd/util/factory_client_access.go
FakeCounterpkg/util/openapi/openapi_getter_test.g
CachedOpenAPIGetterpkg/util/openapi/openapi_getter.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…