code: func New(client *containerd.Client, root, cgroup string, networkProviders map[pb.NetMode]network.Provider) executor.Executor {
  	// clean up old hosts/resolv.conf file. ignore errors
  	os.RemoveAll(filepath.Join(root, "hosts"))
  	os.RemoveAll(filepath.Join(root, "resolv.conf"))
  
  	return containerdExecutor{
  		client:           client,
  		root:             root,
  		networkProviders: networkProviders,
  		cgroupParent:     cgroup,
  	}
  }
docs: // New creates a new executor backed by connection to containerd API