func RepoExists(repo string, stores context2.Stores) error {
	exists, err := GetRepoStore(stores).Has(context.Background(), model.GetArchivePathToRepoDescriptor(repo))
	if err != nil {
		return fmt.Errorf("repo validation failed: Hit err: %v", err)
	}
	if !exists {
		return fmt.Errorf("repo validation: Repo:%s does not exist", repo)
	}
	return nil
}
RepoExists checks for the existence of a repository by name in storage
package core
import (
	"context"
	"fmt"
	"io/ioutil"
	context2 "github.com/oneconcern/datamon/pkg/context"
	"gopkg.in/yaml.v2"
	"github.com/oneconcern/datamon/pkg/model"
)