package configbackup

import (
	"context"

	"github.com/tidbcloud/tidb-management-service/dedicated-global-service/domain/entity"
	"github.com/tidbcloud/tidb-management-service/utilities/bizerr"
)

type BackupRepo interface {
	GetByClusterID(ctx context.Context, clusterID uint64) (*entity.ClusterConfigBackup, bizerr.BizError)
	Upsert(ctx context.Context, backup *entity.ClusterConfigBackup) bizerr.BizError
	DeleteByClusterID(ctx context.Context, clusterID uint64) bizerr.BizError
}
