config

package
v0.0.0-...-fcd8560 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdditionalPR

type AdditionalPR string

AdditionalPR is a formatted string that takes the form "org/repo#number"

func (AdditionalPR) GetOrgRepoAndNumber

func (pr AdditionalPR) GetOrgRepoAndNumber() (string, string, int, error)

type AggregatedJob

type AggregatedJob struct {
	ProwJob          *Job `json:"prowJob,omitempty"`
	AnalysisJobCount int  `json:"analysisJobCount"`
}

type Config

type Config struct {
	Name    string                `json:"name,omitempty"`
	Publish Publish               `json:"publish"`
	Verify  map[string]VerifyItem `json:"verify,omitempty"`
}

Config is a subset of fields from the release controller's config

type ImageStreamRef

type ImageStreamRef struct {
	Namespace   string   `json:"namespace"`
	Name        string   `json:"name"`
	ExcludeTags []string `json:"excludeTags,omitempty"`
}

type Job

type Job struct {
	Name                 string            `json:"name"`
	Annotations          map[string]string `json:"annotations"`
	api.MetadataWithTest `json:",inline"`

	WithPRs         []AdditionalPR `json:"with-prs"`
	AggregatedCount int            `json:"-"`
}

func ResolveJobs

func ResolveJobs(client release.HTTPClient, c api.Candidate, jobType JobType) ([]Job, error)

type JobType

type JobType string
const (
	Informing JobType = "informing"
	Blocking  JobType = "blocking"
	Periodics JobType = "periodics"
	All       JobType = "all"
)

type MirrorToOrigin

type MirrorToOrigin struct {
	ImageStreamRef ImageStreamRef `json:"imageStreamRef"`
}

type Publish

type Publish struct {
	MirrorToOrigin MirrorToOrigin `json:"mirror-to-origin"`
}

type VerifyItem

type VerifyItem struct {
	Optional          bool           `json:"optional"`
	Upgrade           bool           `json:"upgrade"`
	ProwJob           Job            `json:"prowJob"`
	AggregatedProwJob *AggregatedJob `json:"aggregatedProwJob,omitempty"`
}

Jump to

Keyboard shortcuts

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