// Convert maps a configuration pipeline to an actual implementation of the pipeline
Convert maps a configuration pipeline to an actual implementation of the pipeline
// Convert maps a configuration pipeline to an actual implementation of the pipeline
func Convert(cfg *frontend.Config,
	envOverride map[string]string,
	secrets map[string]string) (*backend.Config, error) {
	var err error
	config := new(backend.Config)
	config.Volumes = []*backend.Volume{{Name: "data"}}
	config.Stages, err = buildStages(cfg.Pipeline, envOverride, secrets)
	if err != nil {
		return nil, err
	}
	return config, nil
}
func Convert ( cfg * frontend . Config , envOverride map [ string ] string , secrets map [ string ] string ) ( * backend . Config , error ) { var err error config := new ( backend . Config ) config . Volumes = [ ] * backend . Volume { { Name : " " } } config . Stages , err = buildStages ( cfg . Pipeline , envOverride , secrets ) if err != nil { return nil , err } return config , nil }
Convert maps a configuration pipeline to an actual implementation of the pipeline
Convert maps a configuration pipeline to an actual implementation of the pipeline