juju: github.com/juju/juju/core/series Index | Files

package series

import "github.com/juju/juju/core/series"

Index

Package Files

validate.go

func ValidateSeries Uses

func ValidateSeries(supportedSeries set.Strings, series, fallbackPerferedSeries string) (string, error)

ValidateSeries attempts to validate a series if one is found, otherwise it uses the fallback series and validates that one. Returns the series it validated against or an error if one is found. Note: the selected series will be returned if there is an error to help use that for a fallback during error scenarios.

Package series imports 2 packages (graph) and is imported by 4 packages. Updated 2019-09-06. Refresh now. Tools for package owners.