func (c *FakeDiscovery) ServerVersion() (*version.Info, error) { action := testing.ActionImpl{} action.Verb = "get" action.Resource = schema.GroupVersionResource{Resource: "version"} c.Invokes(action, nil) versionInfo := kubeversion.Get() return &versionInfo, nil }
func (c *FakeDiscovery) SwaggerSchema(version schema.GroupVersion) (*swagger.ApiDeclaration, error) { action := testing.ActionImpl{} action.Verb = "get" if version == v1.SchemeGroupVersion { action.Resource = schema.GroupVersionResource{Resource: "/swaggerapi/api/" + version.Version} } else { action.Resource = schema.GroupVersionResource{Resource: "/swaggerapi/apis/" + version.Group + "/" + version.Version} } c.Invokes(action, nil) return &swagger.ApiDeclaration{}, nil }