Documentation ¶
Index ¶
- func NewBigQueryReleaseTableCreateFlagsCommand() *cobra.Command
- func NewBigQueryReleaseUploadFlagsCommand() *cobra.Command
- type BigQueryReleaseTableCreateFlags
- type BigQueryReleaseUploadFlags
- type Changelog
- func (c *Changelog) CoreOSVersion() (currentURL, currentVersion, previousURL, previousVersion, diffURL string)
- func (c *Changelog) KubernetesVersion() string
- func (c *Changelog) PreviousReleaseTag() string
- func (c *Changelog) PullRequests() []jobrunaggregatorapi.ReleasePullRequestRow
- func (c *Changelog) Repositories() []jobrunaggregatorapi.ReleaseRepositoryRow
- type JobRunResult
- type ReleaseDetails
- type ReleaseTag
- type ReleaseTags
- type UpgradeResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BigQueryReleaseTableCreateFlags ¶
type BigQueryReleaseTableCreateFlags struct { DataCoordinates *jobrunaggregatorlib.BigQueryDataCoordinates Authentication *jobrunaggregatorlib.GoogleAuthenticationFlags }
func NewBigQueryReleaseTableCreateFlags ¶
func NewBigQueryReleaseTableCreateFlags() *BigQueryReleaseTableCreateFlags
func (*BigQueryReleaseTableCreateFlags) BindFlags ¶
func (f *BigQueryReleaseTableCreateFlags) BindFlags(fs *pflag.FlagSet)
func (*BigQueryReleaseTableCreateFlags) ToOptions ¶
func (f *BigQueryReleaseTableCreateFlags) ToOptions(ctx context.Context) (*allReleaseTableCreatorOptions, error)
ToOptions goes from the user input to the runtime values need to run the command. Expect to see unit tests on the options, but not on the flags which are simply value mappings.
func (*BigQueryReleaseTableCreateFlags) Validate ¶
func (f *BigQueryReleaseTableCreateFlags) Validate() error
Validate checks to see if the user-input is likely to produce functional runtime options
type BigQueryReleaseUploadFlags ¶
type BigQueryReleaseUploadFlags struct { DataCoordinates *jobrunaggregatorlib.BigQueryDataCoordinates Authentication *jobrunaggregatorlib.GoogleAuthenticationFlags Releases []string Architectures []string }
func NewBigQueryReleaseUploadFlags ¶
func NewBigQueryReleaseUploadFlags() *BigQueryReleaseUploadFlags
func (*BigQueryReleaseUploadFlags) BindFlags ¶
func (f *BigQueryReleaseUploadFlags) BindFlags(fs *pflag.FlagSet)
func (*BigQueryReleaseUploadFlags) ToOptions ¶
func (f *BigQueryReleaseUploadFlags) ToOptions(ctx context.Context) (*allReleaseUploaderOptions, error)
ToOptions goes from the user input to the runtime values need to run the command. Expect to see unit tests on the options, but not on the flags which are simply value mappings.
func (*BigQueryReleaseUploadFlags) Validate ¶
func (f *BigQueryReleaseUploadFlags) Validate() error
Validate checks to see if the user-input is likely to produce functional runtime options
type Changelog ¶
type Changelog struct {
// contains filtered or unexported fields
}
Changelog scrapes the release controller's generated HTML for a release, and converts it into a more structured form. The release controller is currently only capable of delivering this data to us in rendered HTML, as it passes through several asynchronous systems before the release controller even sees it.
func NewChangelog ¶
func (*Changelog) CoreOSVersion ¶
func (*Changelog) KubernetesVersion ¶
func (*Changelog) PreviousReleaseTag ¶
func (*Changelog) PullRequests ¶
func (c *Changelog) PullRequests() []jobrunaggregatorapi.ReleasePullRequestRow
func (*Changelog) Repositories ¶
func (c *Changelog) Repositories() []jobrunaggregatorapi.ReleaseRepositoryRow
type JobRunResult ¶
type JobRunResult struct { State string `json:"state"` URL string `json:"url"` Retries int `json:"retries"` TransitionTime time.Time `json:"transitionTime"` }
JobRunResult represents a job run returned from the release controller.
type ReleaseDetails ¶
type ReleaseDetails struct { Name string `json:"name"` Results map[string]map[string]JobRunResult `json:"results"` UpgradesTo []UpgradeResult `json:"upgradesTo"` UpgradesFrom []UpgradeResult `json:"upgradesFrom"` ChangeLog []byte `json:"changeLog"` }
ReleaseDetails represents the details of a release from the release controller.
type ReleaseTag ¶
type ReleaseTag struct { Name string `json:"name"` Phase string `json:"phase"` PullSpec string `json:"pullSpec"` DownloadURL string `json:"downloadURL"` }
ReleaseTag is an individual release tag.
type ReleaseTags ¶
type ReleaseTags struct { Name string `json:"name"` Tags []ReleaseTag `json:"tags"` Architecture string `json:"architecture"` }
ReleaseTags represents the type returned from a release controller endpoint like https://amd64.ocp.releases.ci.openshift.org/api/v1/releasestream/4.9.0-0.nightly/tags
type UpgradeResult ¶
type UpgradeResult struct { From string `json:"From"` To string `json:"To"` Success int `json:"Success"` Failure int `json:"Failure"` Total int `json:"Total"` History map[string]JobRunResult `json:"History"` }
UpgradeResult represents an upgradesTo or upgradesFrom report generated by the release controller.