Documentation ¶
Index ¶
- Variables
- type Distro
- type DistroGroup
- type DistroGroupSorting
- type DistroGroups
- type SameNameStemcells
- type SameVersionStemcells
- type Stemcell
- func (s Stemcell) ActualDownloadURL(preferLight bool, mustBeForChina bool) (string, error)
- func (s *Stemcell) AddAsSource(s_ bhstemsrepo.Stemcell)
- func (s Stemcell) AllVersionsURL() string
- func (s Stemcell) MarshalJSON() ([]byte, error)
- func (s *Stemcell) NotesInMarkdown() (template.HTML, error)
- func (s Stemcell) SHA1() string
- func (s *Stemcell) Sources() []*StemcellSource
- func (s Stemcell) UserVisibleDownloadURL() string
- func (s Stemcell) UserVisibleLatestDownloadURL() string
- type StemcellFilter
- type StemcellManifestNameSorting
- type StemcellOSMatch
- type StemcellRef
- type StemcellRefs
- type StemcellSource
- type StemcellVersionSorting
- type UniqueNameStemcells
- type UniqueNameStemcellsSorting
- type UniqueVersionStemcells
- type UniqueVersionStemcellsSorting
Constants ¶
This section is empty.
Variables ¶
View Source
var KnownStemcells = StemcellRefs{ NewStemcellRef("bosh-aws-xen-hvm-ubuntu-trusty-go_agent", "init-aws-v1"), NewStemcellRef("bosh-openstack-kvm-ubuntu-trusty-go_agent", "init-openstack-v1"), NewStemcellRef("bosh-vsphere-esxi-ubuntu-trusty-go_agent", "init-vsphere-v1"), NewStemcellRef("bosh-vcloud-esxi-ubuntu-trusty-go_agent", "init-vcloud-v1"), NewStemcellRef("bosh-azure-hyperv-ubuntu-trusty-go_agent", "init-azure-v1"), NewStemcellRef("bosh-softlayer-xen-ubuntu-trusty-go_agent", "init-softlayer-v1"), }
Functions ¶
This section is empty.
Types ¶
type Distro ¶
type Distro struct { Name string // e.g. 'Ubuntu Trusty' Sort uint8 // smaller == more important Deprecated bool OSMatches []StemcellOSMatch }
type DistroGroup ¶
type DistroGroup struct { Distro Distro ByName UniqueNameStemcells // contains filtered or unexported fields }
func (DistroGroup) HasAnyStemcells ¶
func (g DistroGroup) HasAnyStemcells() bool
func (DistroGroup) IsVisible ¶
func (g DistroGroup) IsVisible(includeDeprecated bool) bool
type DistroGroupSorting ¶
type DistroGroupSorting []DistroGroup
func (DistroGroupSorting) Len ¶
func (s DistroGroupSorting) Len() int
func (DistroGroupSorting) Less ¶
func (s DistroGroupSorting) Less(i, j int) bool
func (DistroGroupSorting) Swap ¶
func (s DistroGroupSorting) Swap(i, j int)
type DistroGroups ¶
type DistroGroups []DistroGroup
func NewDistroGroups ¶
func NewDistroGroups(ss []bhstemsrepo.Stemcell, filter StemcellFilter) DistroGroups
func (DistroGroups) AllURL ¶
func (g DistroGroups) AllURL() string
func (DistroGroups) FirstStemcell ¶
func (g DistroGroups) FirstStemcell() *Stemcell
type SameNameStemcells ¶
type SameNameStemcells struct { Name string ByVersion UniqueVersionStemcells }
func NewSameNameStemcells ¶
func NewSameNameStemcells(name string, ss []bhstemsrepo.Stemcell, filter StemcellFilter) SameNameStemcells
func (SameNameStemcells) HasAnyStemcells ¶
func (s SameNameStemcells) HasAnyStemcells() bool
type SameVersionStemcells ¶
type SameVersionStemcells struct { Version semiver.Version Stemcells []Stemcell ShowingAllVersions bool }
func NewSameVersionStemcells ¶
func NewSameVersionStemcells(version semiver.Version, ss []bhstemsrepo.Stemcell) SameVersionStemcells
func (SameVersionStemcells) AllURL ¶
func (s SameVersionStemcells) AllURL() string
type Stemcell ¶
type Stemcell struct { ManifestName string Version semiver.Version OSName string OSVersion string RegularSource *StemcellSource LightSource *StemcellSource // todo china stemcell will be consolidated into light stemcell at some point LightChinaSource *StemcellSource // contains filtered or unexported fields }
func NewStemcell ¶
func NewStemcell(s bhstemsrepo.Stemcell) Stemcell
func (Stemcell) ActualDownloadURL ¶
func (*Stemcell) AddAsSource ¶
func (s *Stemcell) AddAsSource(s_ bhstemsrepo.Stemcell)
func (Stemcell) AllVersionsURL ¶
func (Stemcell) MarshalJSON ¶
func (*Stemcell) Sources ¶
func (s *Stemcell) Sources() []*StemcellSource
func (Stemcell) UserVisibleDownloadURL ¶
func (Stemcell) UserVisibleLatestDownloadURL ¶
type StemcellFilter ¶
func (StemcellFilter) HasLimit ¶
func (f StemcellFilter) HasLimit() bool
func (StemcellFilter) Limit ¶
func (f StemcellFilter) Limit() int
func (StemcellFilter) ShowingAllVersions ¶
func (f StemcellFilter) ShowingAllVersions() bool
type StemcellManifestNameSorting ¶
type StemcellManifestNameSorting []Stemcell
func (StemcellManifestNameSorting) Len ¶
func (s StemcellManifestNameSorting) Len() int
func (StemcellManifestNameSorting) Less ¶
func (s StemcellManifestNameSorting) Less(i, j int) bool
func (StemcellManifestNameSorting) Swap ¶
func (s StemcellManifestNameSorting) Swap(i, j int)
type StemcellOSMatch ¶
func (StemcellOSMatch) Matches ¶
func (m StemcellOSMatch) Matches(s bhstemsrepo.Stemcell) bool
type StemcellRef ¶
func NewStemcellRef ¶
func NewStemcellRef(manifestName, docPage string) StemcellRef
type StemcellRefs ¶
type StemcellRefs []StemcellRef
func (StemcellRefs) FindByDocPage ¶
func (refs StemcellRefs) FindByDocPage(docPage string) (StemcellRef, bool)
type StemcellSource ¶
type StemcellSource struct { URL string `json:"url"` Size uint64 `json:"size"` MD5 string `json:"md5"` SHA1 string `json:"sha1,omitempty"` UpdatedAt string `json:"-"` // contains filtered or unexported fields }
func (StemcellSource) FormattedSize ¶
func (s StemcellSource) FormattedSize() string
func (StemcellSource) FriendlyName ¶
func (s StemcellSource) FriendlyName() string
func (StemcellSource) UserVisibleDownloadURL ¶
func (s StemcellSource) UserVisibleDownloadURL() string
type StemcellVersionSorting ¶
type StemcellVersionSorting []Stemcell
func (StemcellVersionSorting) Len ¶
func (s StemcellVersionSorting) Len() int
func (StemcellVersionSorting) Less ¶
func (s StemcellVersionSorting) Less(i, j int) bool
func (StemcellVersionSorting) Swap ¶
func (s StemcellVersionSorting) Swap(i, j int)
type UniqueNameStemcells ¶
type UniqueNameStemcells []*SameNameStemcells
func NewUniqueNameStemcells ¶
func NewUniqueNameStemcells(ss []bhstemsrepo.Stemcell, filter StemcellFilter) UniqueNameStemcells
func (UniqueNameStemcells) HasAnyStemcells ¶
func (s UniqueNameStemcells) HasAnyStemcells() bool
type UniqueNameStemcellsSorting ¶
type UniqueNameStemcellsSorting UniqueNameStemcells
func (UniqueNameStemcellsSorting) Len ¶
func (s UniqueNameStemcellsSorting) Len() int
func (UniqueNameStemcellsSorting) Less ¶
func (s UniqueNameStemcellsSorting) Less(i, j int) bool
func (UniqueNameStemcellsSorting) Swap ¶
func (s UniqueNameStemcellsSorting) Swap(i, j int)
type UniqueVersionStemcells ¶
type UniqueVersionStemcells []*SameVersionStemcells
func NewUniqueVersionStemcells ¶
func NewUniqueVersionStemcells(ss []bhstemsrepo.Stemcell, filter StemcellFilter) UniqueVersionStemcells
func (UniqueVersionStemcells) ForAPI ¶
func (s UniqueVersionStemcells) ForAPI() []Stemcell
func (UniqueVersionStemcells) HasAnyStemcells ¶
func (s UniqueVersionStemcells) HasAnyStemcells() bool
type UniqueVersionStemcellsSorting ¶
type UniqueVersionStemcellsSorting UniqueVersionStemcells
func (UniqueVersionStemcellsSorting) Len ¶
func (s UniqueVersionStemcellsSorting) Len() int
func (UniqueVersionStemcellsSorting) Less ¶
func (s UniqueVersionStemcellsSorting) Less(i, j int) bool
func (UniqueVersionStemcellsSorting) Swap ¶
func (s UniqueVersionStemcellsSorting) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.