release

package
v0.0.0-...-1eff689 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BOSH = NewReleaseRef("github.com/cloudfoundry/bosh", "BOSH", "")
View Source
var KnownCPIs = ReleaseRefs{
	NewReleaseRef("github.com/cloudfoundry-incubator/bosh-aws-cpi-release", "AWS", "init-aws-v1"),
	NewReleaseRef("github.com/cloudfoundry-incubator/bosh-openstack-cpi-release", "OpenStack", "init-openstack-v1"),
	NewReleaseRef("github.com/cloudfoundry-incubator/bosh-vsphere-cpi-release", "vSphere", "init-vsphere-v1"),
	NewReleaseRef("github.com/cloudfoundry-incubator/bosh-vcloud-cpi-release", "vCloud", "init-vcloud-v1"),
	NewReleaseRef("github.com/cloudfoundry-incubator/bosh-azure-cpi-release", "Azure", "init-azure-v1"),
	NewReleaseRef("github.com/cloudfoundry-incubator/bosh-softlayer-cpi-release", "SoftLayer", "init-softlayer-v1"),
}

Functions

func Navigation() nav.Link

Types

type Graph

type Graph interface {
	SVG() template.HTML
}

type Job

type Job struct {
	Release Release

	Name string

	Fingerprint string
	SHA1        string
}

func NewJobs

func NewJobs(js []bprel.Job, rel Release) []Job

func (Job) URL

func (j Job) URL() string

type JobSorting

type JobSorting []Job

func (JobSorting) Len

func (s JobSorting) Len() int

func (JobSorting) Less

func (s JobSorting) Less(i, j int) bool

func (JobSorting) Swap

func (s JobSorting) Swap(i, j int)

type Package

type Package struct {
	Release Release

	Name string

	Fingerprint string
	SHA1        string

	// Package dependencies used at compilation of this package
	Dependencies []Package
}

func NewPackages

func NewPackages(ps []*bprel.Package, rel Release) []Package

func (Package) GithubURL

func (p Package) GithubURL() string

func (Package) GithubURLOnMaster

func (p Package) GithubURLOnMaster() string

func (Package) HasGithubURL

func (p Package) HasGithubURL() bool

func (Package) URL

func (p Package) URL() string

type PackageSorting

type PackageSorting []Package

func (PackageSorting) Len

func (s PackageSorting) Len() int

func (PackageSorting) Less

func (s PackageSorting) Less(i, j int) bool

func (PackageSorting) Swap

func (s PackageSorting) Swap(i, j int)

type Release

type Release struct {
	Source Source

	Name    string
	Version semiver.Version

	IsLatest bool

	CommitHash string

	Jobs []Job

	Packages []Package

	Graph      Graph
	NavPrimary nav.Link
	// contains filtered or unexported fields
}

func NewIncompleteRelease

func NewIncompleteRelease(relVerRec bhrelsrepo.ReleaseVersionRec, name string) Release

func NewRelease

func NewRelease(relVerRec bhrelsrepo.ReleaseVersionRec, r bprel.Release) Release

func (Release) AllURL

func (r Release) AllURL() string

func (Release) AllVersionsURL

func (r Release) AllVersionsURL() string

func (Release) AvatarURL

func (r Release) AvatarURL() string

func (Release) BuildNavigation

func (r Release) BuildNavigation(active string) nav.Link
func (r Release) CPIDocsLink() template.HTML

func (Release) DownloadURL

func (r Release) DownloadURL() string

func (Release) GithubURL

func (r Release) GithubURL() string

func (Release) GithubURLForPath

func (r Release) GithubURLForPath(path, ref string) string

func (Release) GithubURLOnMaster

func (r Release) GithubURLOnMaster() string

func (Release) GraphURL

func (r Release) GraphURL() string

func (Release) HasGithubURL

func (r Release) HasGithubURL() bool

func (Release) IsBOSH

func (r Release) IsBOSH() bool

func (Release) IsCPI

func (r Release) IsCPI() bool

func (Release) MarshalJSON

func (r Release) MarshalJSON() ([]byte, error)

func (Release) Navigation

func (r Release) Navigation() nav.Link

func (*Release) NotesInMarkdown

func (r *Release) NotesInMarkdown() (template.HTML, error)

func (Release) TarballSHA1

func (r Release) TarballSHA1() (string, error)

func (Release) TarballSHA256

func (r Release) TarballSHA256() (string, error)

func (Release) URL

func (r Release) URL() string

func (Release) UserVisibleDownloadURL

func (r Release) UserVisibleDownloadURL() string

func (Release) UserVisibleLatestDownloadURL

func (r Release) UserVisibleLatestDownloadURL() string

type ReleaseRef

type ReleaseRef struct {
	Source     Source
	PrettyName string
	DocPage    string
}

func NewReleaseRef

func NewReleaseRef(fullSource, prettyName, docPage string) ReleaseRef
func (c ReleaseRef) DocPageLink() string

func (ReleaseRef) DocPagePath

func (c ReleaseRef) DocPagePath() string

type ReleaseRefs

type ReleaseRefs []ReleaseRef

func (ReleaseRefs) FindByDocPage

func (c ReleaseRefs) FindByDocPage(docPage string) (ReleaseRef, bool)

func (ReleaseRefs) FindByShortName

func (c ReleaseRefs) FindByShortName(name string) (ReleaseRef, bool)

type ReleaseSorting

type ReleaseSorting []Release

func (ReleaseSorting) Len

func (s ReleaseSorting) Len() int

func (ReleaseSorting) Less

func (s ReleaseSorting) Less(i, j int) bool

func (ReleaseSorting) Swap

func (s ReleaseSorting) Swap(i, j int)

type SameSourceReleases

type SameSourceReleases struct {
	Source   Source
	Releases []Release
}

func NewSameSourceReleases

func NewSameSourceReleases(source bhrelsrepo.Source, relVerRecs []bhrelsrepo.ReleaseVersionRec, relName string) SameSourceReleases

func (SameSourceReleases) AllURL

func (r SameSourceReleases) AllURL() string

func (SameSourceReleases) AvatarURL

func (r SameSourceReleases) AvatarURL() string

func (SameSourceReleases) FirstXReleases

func (r SameSourceReleases) FirstXReleases(x int) []Release

func (SameSourceReleases) ForAPI

func (s SameSourceReleases) ForAPI() []Release

func (SameSourceReleases) HasMoreThanXReleases

func (r SameSourceReleases) HasMoreThanXReleases(x int) bool

func (SameSourceReleases) URL

func (r SameSourceReleases) URL() string

type Source

type Source struct {
	// contains filtered or unexported fields
}

func NewSource

func NewSource(src bhrelsrepo.Source) Source

func (Source) AvatarURL

func (s Source) AvatarURL() string

func (Source) FromGithub

func (s Source) FromGithub() bool

func (Source) Full

func (s Source) Full() string

func (Source) GithubURL

func (s Source) GithubURL() string

func (Source) IsBOSH

func (s Source) IsBOSH() bool

func (Source) IsCPI

func (s Source) IsCPI() bool

func (Source) Short

func (s Source) Short() string

func (Source) ShortName

func (s Source) ShortName() string

func (Source) String

func (s Source) String() string

func (Source) URL

func (s Source) URL() string

type SourceSorting

type SourceSorting []Source

func (SourceSorting) Len

func (s SourceSorting) Len() int

func (SourceSorting) Less

func (s SourceSorting) Less(i, j int) bool

func (SourceSorting) Swap

func (s SourceSorting) Swap(i, j int)

type UniqueSourceReleases

type UniqueSourceReleases []*SameSourceReleases

func NewUniqueSourceReleases

func NewUniqueSourceReleases(relVerRecs []bhrelsrepo.ReleaseVersionRec) UniqueSourceReleases

func (UniqueSourceReleases) AllURL

func (r UniqueSourceReleases) AllURL() string

type UniqueSources

type UniqueSources []Source

func NewUniqueSources

func NewUniqueSources(srcs []bhrelsrepo.Source) UniqueSources

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL