func GetLocalDestinationForPipeline(p gaia.Pipeline) (string, error) {
	tmpFolder, err := tmpFolderFromPipelineType(p)
	if err != nil {
		gaia.Cfg.Logger.Error("Pipeline type invalid", "type", p.Type)
		return "", err
	}
	return filepath.Join(gaia.Cfg.HomePath, gaia.TmpFolder, tmpFolder, gaia.SrcFolder, p.UUID), nil
}
GetLocalDestinationForPipeline computes the local location of a pipeline on disk based on the pipeline's
type and configuration of Gaia such as, temp folder and data folder.
package pipelinehelper
import (
	"errors"
	"fmt"
	"path/filepath"
	"strings"
	"github.com/gaia-pipeline/gaia"
)
const (
	typeDelimiter = "_"
)
func GetRealPipelineName(name string, pType gaia.PipelineType) string {
	return strings.TrimSuffix(name, typeDelimiter+pType.String())
}
func AppendTypeToName(n string, pType gaia.PipelineType) string {
	return fmt.Sprintf("%s%s%s", n, typeDelimiter, pType.String())
}