package repo

import (
	"context"

	"github.com/tidbcloud/cluster-service-ng/domain/entity"
)

type TiDBGroupRepo interface {
	Save(ctx context.Context, tidbGroup *entity.TiDBGroup) error
	Load(ctx context.Context, id string, deleted bool) (*entity.TiDBGroup, error)
	List(ctx context.Context, sharedPoolIds, tenantIds, clusterIds, keyspaces []string, deleted bool) ([]*entity.TiDBGroup, error)
	Delete(ctx context.Context, id string) error
}
