Permalink
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (61 sloc) 2.26 KB
// Copyright 2015 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
// Package series holds information about series supported in the
// charmstore.
package series // import "gopkg.in/juju/charmstore.v5-unstable/internal/series"
// Distribution represents a distribution supported by the charmstore.
// Every series will belong to a distribution.
type Distribution string
const (
Ubuntu Distribution = "ubuntu"
CentOS Distribution = "centos"
Windows Distribution = "windows"
)
// SeriesInfo contains the information the charmstore knows about a
// series name.
type SeriesInfo struct {
// CharmSeries holds whether this series name is for charms.
CharmSeries bool
// Distribution holds the Distribution this series belongs to.
Distribution Distribution
// SearchIndex holds wether charms in this series should be added
// to the search index.
SearchIndex bool
// SearchBoost contains the relative boost given to charms in
// this series when searching.
SearchBoost float64
}
// Series contains the data charmstore knows about series names
var Series = map[string]SeriesInfo{
// Bundle
"bundle": {false, "", true, 1.1380},
// Ubuntu
"oneiric": {true, Ubuntu, false, 0},
"precise": {true, Ubuntu, true, 1.1125},
"quantal": {true, Ubuntu, false, 0},
"raring": {true, Ubuntu, false, 0},
"saucy": {true, Ubuntu, false, 0},
"trusty": {true, Ubuntu, true, 1.125},
"utopic": {true, Ubuntu, false, 0},
"vivid": {true, Ubuntu, false, 0},
"wily": {true, Ubuntu, false, 1.102},
"xenial": {true, Ubuntu, true, 1.1375},
"yakkety": {true, Ubuntu, true, 1.103},
"zesty": {true, Ubuntu, true, 1.104},
"artful": {true, Ubuntu, true, 1.105},
"bionic": {true, Ubuntu, true, 0}, // TODO 1.15 when released
// Windows
"win2012hvr2": {true, Windows, true, 1.1},
"win2012hv": {true, Windows, true, 1.1},
"win2012r2": {true, Windows, true, 1.1},
"win2012": {true, Windows, true, 1.1},
"win7": {true, Windows, true, 1.1},
"win8": {true, Windows, true, 1.1},
"win81": {true, Windows, true, 1.1},
"win10": {true, Windows, true, 1.1},
"win2016": {true, Windows, true, 1.1},
"win2016hv": {true, Windows, true, 1.1},
"win2016nano": {true, Windows, true, 1.1},
// Centos
"centos7": {true, CentOS, true, 1.1},
}