func StreamBundleDataSource(r io.Reader, basePath string) (BundleDataSource, error) {
	parts, err := parseBundleParts(r)
	if err != nil {
		return nil, errors.NotValidf("cannot unmarshal bundle contents: %v", err)
	}

	return &resolvedBundleDataSource{parts: parts, basePath: basePath}, nil
}
// StreamBundleDataSource reads a (potentially multi-part) bundle from r and
// returns a BundleDataSource for it.
StreamBundleDataSource reads a (potentially multi-part) bundle from r and
returns a BundleDataSource for it.
// StreamBundleDataSource reads a ( potentially multi - part ) bundle from r and // returns a BundleDataSource for it .
func StreamBundleDataSource(r io.Reader, basePath string) (BundleDataSource, error) {
	parts, err := parseBundleParts(r)
	if err != nil {
		return nil, errors.NotValidf("cannot unmarshal bundle contents: %v", err)
	}
	return &resolvedBundleDataSource{parts: parts, basePath: basePath}, nil
}
func StreamBundleDataSource ( r io . Reader , basePath string ) ( BundleDataSource , error ) { parts , err := parseBundleParts ( r ) if err != nil { return nil , errors . NotValidf ( " " , err ) } return & resolvedBundleDataSource { parts : parts , basePath : basePath } , nil }
StreamBundleDataSource reads a (potentially multi-part) bundle from r and
returns a BundleDataSource for it.
StreamBundleDataSource reads a ( potentially multi - part ) bundle from r and returns a BundleDataSource for it .