func Sync(setName string, repoResources map[string]resource.Resource, clus Syncer) error {
	set := makeSet(setName, repoResources)
	if err := clus.Sync(set); err != nil {
		return err
	}
	return nil
}
Sync synchronises the cluster to the files under a directory.
package sync
import (
	"github.com/fluxcd/flux/pkg/cluster"
	"github.com/fluxcd/flux/pkg/resource"
)
type Syncer interface {
	Sync(cluster.SyncSet) error
}