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