releases

package
v0.0.0-...-f094475 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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

Jump to

Keyboard shortcuts

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