type CachedOpenAPIGetter … var _ … // NewOpenAPIGetter returns an object to return OpenAPIDatas which reads // from a server, and then stores in memory for subsequent invocations func NewOpenAPIGetter(openAPIClient discovery.OpenAPISchemaInterface) *CachedOpenAPIGetter { … } // OpenAPISchema implements OpenAPISchemaInterface. func (g *CachedOpenAPIGetter) OpenAPISchema() (*openapi_v2.Document, error) { … } type CachedOpenAPIParser … func NewOpenAPIParser(openAPIClient discovery.OpenAPISchemaInterface) *CachedOpenAPIParser { … } func (p *CachedOpenAPIParser) Parse() (Resources, error) { … }