Example #1
0
func NewStemcell(s bhstemsrepo.Stemcell) Stemcell {
	stemcell := &Stemcell{
		ManifestName: s.Name(),
		Version:      s.Version(),

		OSName:    s.OSName(),
		OSVersion: s.OSVersion(),
	}

	stemcell.AddAsSource(s)

	return *stemcell
}
Example #2
0
func (m StemcellOSMatch) Matches(s bhstemsrepo.Stemcell) bool {
	return s.OSName() == m.OSName && s.OSVersion() == m.OSVersion
}