Documentation ¶
Index ¶
- Constants
- func BoshReleaseName(fs billy.Filesystem) (string, error)
- func BoshReleaseVersions(fs billy.Dir) ([]*semver.Version, bool, error)
- func SetKilnfileLock(fs billy.Basic, lock KilnFileLock) error
- func SupportedTileBranches(iter storer.ReferenceIter) ([]*plumbing.Reference, error)
- type BoshReleaseBumpSetData
- type ByIncreasingGeneralAvailabilityDate
- type KilnFileLock
- type Reference
- type ReferenceList
- type ReleaseLock
- type VersionList
- type VersionsDecreasing
- type VersionsIncreasing
Constants ¶
View Source
const ( TileRepoRelBranchPrefix = "rel/" TileRepoMasterBranch = "master" KilnFileRemoteSource = "final-pcf-bosh-releases" )
Variables ¶
This section is empty.
Functions ¶
func BoshReleaseName ¶
func SetKilnfileLock ¶
func SetKilnfileLock(fs billy.Basic, lock KilnFileLock) error
func SupportedTileBranches ¶
func SupportedTileBranches(iter storer.ReferenceIter) ([]*plumbing.Reference, error)
Types ¶
type BoshReleaseBumpSetData ¶
type BoshReleaseBumpSetData struct { BoshReleaseName string BoshReleaseVersionIsSemver bool BoshReleaseVersions VersionList TileBranches ReferenceList }
func NewBoshReleaseBumpSetData ¶
func NewBoshReleaseBumpSetData(tileRepo, releaseRepo *git.Repository) (BoshReleaseBumpSetData, error)
NewBoshReleaseBumpSetData is a "porcelain" wrapper around loading the data needed to make decisions around a single bosh release repo bumps
TODO make releaseRepo -> releaseRepos and receive variadic list of repositories
func (BoshReleaseBumpSetData) MapTileBranchesToBoshReleaseVersions ¶
func (data BoshReleaseBumpSetData) MapTileBranchesToBoshReleaseVersions(tileRepo *git.Repository) (map[string][]Reference, error)
type ByIncreasingGeneralAvailabilityDate ¶
func (ByIncreasingGeneralAvailabilityDate) Len ¶
func (sv ByIncreasingGeneralAvailabilityDate) Len() int
func (ByIncreasingGeneralAvailabilityDate) Less ¶
func (sv ByIncreasingGeneralAvailabilityDate) Less(i, j int) bool
func (ByIncreasingGeneralAvailabilityDate) Swap ¶
func (sv ByIncreasingGeneralAvailabilityDate) Swap(i, j int)
type KilnFileLock ¶
type KilnFileLock struct {
Releases []ReleaseLock `yaml:"releases"`
}
func KilnfileLock ¶
func KilnfileLock(fs billy.Basic) (KilnFileLock, error)
type ReferenceList ¶
func (ReferenceList) MarshalJSON ¶
func (rfl ReferenceList) MarshalJSON() ([]byte, error)
func (*ReferenceList) UnmarshalJSON ¶
func (rfl *ReferenceList) UnmarshalJSON(buf []byte) error
type ReleaseLock ¶
type ReleaseLock struct { Name string `yaml:"name"` SHA1 string `yaml:"sha1,omitempty"` Version string `yaml:"version"` RemoteSource string `yaml:"remote_source"` RemotePath string `yaml:"remote_path"` }
func ReleaseLockWithName ¶
func ReleaseLockWithName(name string, releases []ReleaseLock) (ReleaseLock, int, error)
type VersionList ¶
func (*VersionList) MarshalJSON ¶
func (vl *VersionList) MarshalJSON() ([]byte, error)
func (*VersionList) UnmarshalJSON ¶
func (vl *VersionList) UnmarshalJSON(buf []byte) error
type VersionsDecreasing ¶
func (VersionsDecreasing) Len ¶
func (sv VersionsDecreasing) Len() int
func (VersionsDecreasing) Less ¶
func (sv VersionsDecreasing) Less(i, j int) bool
func (VersionsDecreasing) Swap ¶
func (sv VersionsDecreasing) Swap(i, j int)
type VersionsIncreasing ¶
func (VersionsIncreasing) Len ¶
func (sv VersionsIncreasing) Len() int
func (VersionsIncreasing) Less ¶
func (sv VersionsIncreasing) Less(i, j int) bool
func (VersionsIncreasing) Swap ¶
func (sv VersionsIncreasing) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.