import "github.com/jenkins-x/jx/pkg/prow/config"
branch_protection.go tide.go types.go
func AddRepoToBranchProtection(bp *branchprotection.Config, repoSpec string, context string, kind Kind) error
AddRepoToBranchProtection adds a repository to the Branch Protection section of a prow config
AddRepoToTideConfig adds a code repository to the Tide section of the Prow Config
CreateTide creates a default Tide Config object
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(org string, repo string, prowConfig *config.Config) ([]string, error)
GetBranchProtectionContexts gets the branch protection contexts for a repo
func RemoveRepoFromBranchProtection(bp *branchprotection.Config, repoSpec string) error
RemoveRepoFromBranchProtection removes a repository to the Branch Protection section of a prow config
RemoveRepoFromTideConfig adds a code repository to the Tide section of the Prow Config
const ( // Application adds an application Application Kind = "APPLICATION" // Environment a local environment Environment Kind = "ENVIRONMENT" // RemoteEnvironment a remote environment RemoteEnvironment Kind = "REMOTE_ENVIRONMENT" // Protection for the protection kind Protection Kind = "PROTECTION" // ServerlessJenkins serverless jenkins ServerlessJenkins = "serverless-jenkins" // PromotionBuild for a promotion build PromotionBuild = "promotion-build" )
Package config imports 9 packages (graph). Updated 2021-01-14. Refresh now. Tools for package owners.