type tracker … func newTracker() *tracker { … } type pruner … func newPruner(dc dynamic.Interface, m meta.RESTMapper, r []prune.Resource, selector string) *pruner { … } func (p *pruner) pruneAll(tracker *tracker, namespaceSpecified bool) ([]runtime.Object, error) { … } func (p *pruner) prune(tracker *tracker, namespace string, mapping *meta.RESTMapping) ([]runtime.Object, error) { … } // MarkVisited marks visited namespaces and uids func (t *tracker) MarkVisited(info *resource.Info) { … }