func SeriesVersion(series string) (string, error) {
	if series == "" {
		return "", errors.Trace(unknownSeriesVersionError(""))
	}
	seriesVersionsMutex.Lock()
	defer seriesVersionsMutex.Unlock()

	seriesName := SeriesName(series)
	if vers, ok := allSeriesVersions[seriesName]; ok {
		return vers.Version, nil
	}
	updateSeriesVersionsOnce()
	if vers, ok := allSeriesVersions[seriesName]; ok {
		return vers.Version, nil
	}

	return "", errors.Trace(unknownSeriesVersionError(series))
}
// SeriesVersion returns the version for the specified series.
SeriesVersion returns the version for the specified series.
// SeriesVersion returns the version for the specified series .
func SeriesVersion(series string) (string, error) {
	if series == "" {
		return "", errors.Trace(unknownSeriesVersionError(""))
	}
	seriesVersionsMutex.Lock()
	defer seriesVersionsMutex.Unlock()
	seriesName := SeriesName(series)
	if vers, ok := allSeriesVersions[seriesName]; ok {
		return vers.Version, nil
	}
	updateSeriesVersionsOnce()
	if vers, ok := allSeriesVersions[seriesName]; ok {
		return vers.Version, nil
	}
	return "", errors.Trace(unknownSeriesVersionError(series))
}
func SeriesVersion ( series string ) ( string , error ) { if series == " " { return " " , errors . Trace ( unknownSeriesVersionError ( " " ) ) } seriesVersionsMutex . Lock ( ) defer seriesVersionsMutex . Unlock ( ) seriesName := SeriesName ( series ) if vers , ok := allSeriesVersions [ seriesName ] ; ok { return vers . Version , nil } updateSeriesVersionsOnce ( ) if vers , ok := allSeriesVersions [ seriesName ] ; ok { return vers . Version , nil } return " " , errors . Trace ( unknownSeriesVersionError ( series ) ) }
SeriesVersion returns the version for the specified series.
SeriesVersion returns the version for the specified series .