Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateArgs ¶
func ValidateArgs(requested []string)
ValidateArgs verifys that the requested pipelines have been released in WARP
Types ¶
type Release ¶
type Release struct { Name string `json:"name"` PreRelease *bool `json:"prerelease,omitempty"` PublishedAt string `json:"published_at"` HTMLURL string `json:"html_url"` Body string `json:"body"` }
Release describes a Github release for a WARP pipeline
type ReleaseList ¶
type ReleaseList []Release
ReleaseList contains an array of Releases
func NewReleaseList ¶
func NewReleaseList() (*ReleaseList, error)
NewReleaseList returns the full list of releases for all WARP pipelines
func (*ReleaseList) FormatList ¶
func (r *ReleaseList) FormatList(requestedPipelines []string) (*ReleaseListFormatted, error)
FormatList formats a ReleaseList to a map[string]ReleaseList, removes prereleases and filters to requested pipelines
type ReleaseListFormatted ¶
type ReleaseListFormatted map[string]ReleaseList
ReleaseListFormatted maps each pipeline name to all of its releases
func (*ReleaseListFormatted) GetLatest ¶
func (r *ReleaseListFormatted) GetLatest()
GetLatest modifies a ReleaseListFormatted to only include the latest releases
func (*ReleaseListFormatted) GetVersion ¶
func (r *ReleaseListFormatted) GetVersion(version string, pipeline string)
GetVersion modifies a ReleaseListFormmated to only include the requested version
func (*ReleaseListFormatted) Print ¶
func (r *ReleaseListFormatted) Print()
Print prints the ReleaseListFormmated to stdout
Click to show internal directories.
Click to hide internal directories.