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

Method OpenAPISchema

pkg/util/openapi/openapi_getter.go:47–54  ·  view source on GitHub ↗

OpenAPISchema implements OpenAPISchemaInterface.

()

Source from the content-addressed store, hash-verified

45
46// OpenAPISchema implements OpenAPISchemaInterface.
47func (g *CachedOpenAPIGetter) OpenAPISchema() (*openapi_v2.Document, error) {
48 g.Do(func() {
49 g.openAPISchema, g.err = g.openAPIClient.OpenAPISchema()
50 })
51
52 // Return the saved result.
53 return g.openAPISchema, g.err
54}
55
56type CachedOpenAPIParser struct {
57 openAPIClient discovery.OpenAPISchemaInterface

Callers

nothing calls this directly

Calls 1

OpenAPISchemaMethod · 0.65

Tested by

no test coverage detected