Back to godoc.org
github.com/jenkins-x/jx / pkg / prow / config

package config

v1.3.1119
Latest Go to latest
Published: Apr 15, 2019 | License: Apache-2.0 | Module: github.com/jenkins-x/jx

Index

func AddRepoToBranchProtection

func AddRepoToBranchProtection(bp *config.BranchProtection, repoSpec string, context string, kind Kind) error

AddRepoToBranchProtection adds a repository to the Branch Protection section of a prow config

func AddRepoToTideConfig

func AddRepoToTideConfig(t *config.Tide, repo string, kind Kind) error

AddRepoToTideConfig adds a code repository to the Tide section of the Prow Config

func CreateTide

func CreateTide(tideURL string) config.Tide

CreateTide creates a default Tide Config object

func GetAllBranchProtectionContexts

func GetAllBranchProtectionContexts(org string, repo string, prowConfig *config.Config) ([]string, error)

GetAllBranchProtectionContexts gets all the contexts that have branch protection for a repo

func GetBranchProtectionContexts

func GetBranchProtectionContexts(org string, repo string, prowConfig *config.Config) ([]string, error)

GetBranchProtectionContexts gets the branch protection contexts for a repo

func RemoveRepoFromBranchProtection

func RemoveRepoFromBranchProtection(bp *config.BranchProtection, repoSpec string) error

RemoveRepoFromBranchProtection removes a repository to the Branch Protection section of a prow config

func RemoveRepoFromTideConfig

func RemoveRepoFromTideConfig(t *config.Tide, repo string, kind Kind) error

RemoveRepoFromTideConfig adds a code repository to the Tide section of the Prow Config

type Kind

type Kind string
const (
	Application Kind = "APPLICATION"
	Environment Kind = "ENVIRONMENT"
	Protection  Kind = "PROTECTION"

	ServerlessJenkins = "serverless-jenkins"
	PromotionBuild    = "promotion-build"
)
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier