func (s *supportedInfo) workloadSeries(includeUnsupported bool) []string {
	var result []string
	for _, namedSeries := range s.namedSeries() {
		version := namedSeries.SeriesVersion
		if version.WorkloadType == UnsupportedWorkloadType {
			continue
		}
		if includeUnsupported || version.ESMSupported || version.Supported {
			result = append(result, namedSeries.Name.String())
		}
	}
	return result
}
// workloadSeries returns a slice of series that are supported to run on a
// target workload (charm).
// Note: workload series will also include controller workload types, as they
// can also be used for workloads.
workloadSeries returns a slice of series that are supported to run on a
target workload (charm).
Note: workload series will also include controller workload types, as they
can also be used for workloads.
// workloadSeries returns a slice of series that are supported to run on a // target workload ( charm ) . // Note : workload series will also include controller workload types as they // can also be used for workloads .
func (s *supportedInfo) workloadSeries(includeUnsupported bool) []string {
	var result []string
	for _, namedSeries := range s.namedSeries() {
		version := namedSeries.SeriesVersion
		if version.WorkloadType == UnsupportedWorkloadType {
			continue
		}
		if includeUnsupported || version.ESMSupported || version.Supported {
			result = append(result, namedSeries.Name.String())
		}
	}
	return result
}
func ( s * supportedInfo ) workloadSeries ( includeUnsupported bool ) [ ] string { var result [ ] string for _ , namedSeries := range s . namedSeries ( ) { version := namedSeries . SeriesVersion if version . WorkloadType == UnsupportedWorkloadType { continue } if includeUnsupported || version . ESMSupported || version . Supported { result = append ( result , namedSeries . Name . String ( ) ) } } return result }
workloadSeries returns a slice of series that are supported to run on a
target workload (charm).
workloadSeries returns a slice of series that are supported to run on a target workload ( charm ) .