MCPcopy
hub / github.com/kubernetes/client-go / ServerVersion

Method ServerVersion

discovery/fake/discovery.go:137–149  ·  view source on GitHub ↗

ServerVersion retrieves and parses the server's version.

()

Source from the content-addressed store, hash-verified

135
136// ServerVersion retrieves and parses the server's version.
137func (c *FakeDiscovery) ServerVersion() (*version.Info, error) {
138 action := testing.ActionImpl{}
139 action.Verb = "get"
140 action.Resource = schema.GroupVersionResource{Resource: "version"}
141 c.Invokes(action, nil)
142
143 if c.FakedServerVersion != nil {
144 return c.FakedServerVersion, nil
145 }
146
147 versionInfo := kubeversion.Get()
148 return &versionInfo, nil
149}
150
151// OpenAPISchema retrieves and parses the swagger API schema the server supports.
152func (c *FakeDiscovery) OpenAPISchema() (*openapi_v2.Document, error) {

Callers

nothing calls this directly

Calls 2

InvokesMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected