// Parse parses the pipeline config from an io.Reader.
Parse parses the pipeline config from an io.Reader.
// Parse parses the pipeline config from an io . Reader .
func Parse(r io.Reader) (*Config, error) {
	pipeline := new(Config)
	b, err := ioutil.ReadAll(r)
	if err != nil {
		return nil, err
	}
	err = yaml.Unmarshal(b, &pipeline)
	if err != nil {
		return nil, err
	}
	return pipeline, nil
}
func Parse ( r io . Reader ) ( * Config , error ) { pipeline := new ( Config ) b , err := ioutil . ReadAll ( r ) if err != nil { return nil , err } err = yaml . Unmarshal ( b , & pipeline ) if err != nil { return nil , err } return pipeline , nil }
Parse parses the pipeline config from an io.Reader.
Parse parses the pipeline config from an io . Reader .