type pruner … func newPruner(o *ApplyOptions) pruner { … } func (p *pruner) pruneAll(o *ApplyOptions) error { … } func (p *pruner) prune(namespace string, mapping *meta.RESTMapping) error { … } func (p *pruner) delete(namespace, name string, mapping *meta.RESTMapping) error { … } func runDelete(ctx context.Context, namespace, name string, mapping *meta.RESTMapping, c dynamic.Interface, cascadingStrategy metav1.DeletionPropagation, gracePeriod int, serverDryRun bool) error { … } func asDeleteOptions(cascadingStrategy metav1.DeletionPropagation, gracePeriod int) metav1.DeleteOptions { … }