pkg

package
v0.0.0-...-bd61c9a Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TestGridDashboard   = "testgrid-dashboards"
	TestGridAlertEmail  = "testgrid-alert-email"
	TestGridNumFailures = "testgrid-num-failures-to-alert"

	DefaultAutogenHeader = "# THIS FILE IS AUTOGENERATED, DO NOT EDIT IT MANUALLY."

	ArchAMD64 = "amd64"
	ArchARM64 = "arm64"

	TypePostsubmit = "postsubmit"
	TypePresubmit  = "presubmit"
	TypePeriodic   = "periodic"
)

Variables

This section is empty.

Functions

func Check

func Check(jobs config.JobConfig, currentConfigFile string, header string) error

Check will diff the generated config file and the current config file.

func FilterReleaseBranchingJobs

func FilterReleaseBranchingJobs(jobs []spec.Job) []spec.Job

FilterReleaseBranchingJobs filters then returns jobs with release branching enabled.

func Print

func Print(jobs config.JobConfig)

Print will print out the generated Prow jobs config.

func ReadBase

func ReadBase(baseConfig *spec.BaseConfig, file string) spec.BaseConfig

func Write

func Write(jobs config.JobConfig, fname, header string) error

Write will write the generated Prow jobs to the given file.

func WriteJobsConfig

func WriteJobsConfig(jobsConfig spec.JobsConfig, file string) error

WriteJobsConfig will write the meta jobs to the given file.

Types

type Client

type Client struct {
	BaseConfig spec.BaseConfig

	LongJobNamesAllowed bool
}

func (*Client) ConvertJobConfig

func (cli *Client) ConvertJobConfig(fileName string, jobsConfig spec.JobsConfig, branch string) (config.JobConfig, error)

func (*Client) ReadJobsConfig

func (cli *Client) ReadJobsConfig(file string) spec.JobsConfig

Reads the jobs yaml

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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