type ResourceResolver … type discoveryResourceResolver … func (d *discoveryResourceResolver) Resolve(gvk schema.GroupVersionKind) (schema.GroupVersionResource, error) { … } func NewDiscoveryResourceResolver(client discovery.DiscoveryInterface) (ResourceResolver, error) { … } type ResourceResolverFunc … func (f ResourceResolverFunc) Resolve(gvk schema.GroupVersionKind) (schema.GroupVersionResource, error) { … }