releasebigqueryloader

package
v0.0.0-...-9668ede Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBigQueryReleaseTableCreateFlagsCommand

func NewBigQueryReleaseTableCreateFlagsCommand() *cobra.Command

func NewBigQueryReleaseUploadFlagsCommand

func NewBigQueryReleaseUploadFlagsCommand() *cobra.Command

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 NewChangelog(releaseTag, html string) *Changelog

func (*Changelog) CoreOSVersion

func (c *Changelog) CoreOSVersion() (currentURL, currentVersion, previousURL, previousVersion, diffURL string)

func (*Changelog) KubernetesVersion

func (c *Changelog) KubernetesVersion() string

func (*Changelog) PreviousReleaseTag

func (c *Changelog) PreviousReleaseTag() string

func (*Changelog) PullRequests

func (*Changelog) Repositories

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.

Jump to

Keyboard shortcuts

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