jx: github.com/jenkins-x/jx/pkg/prow/config Index | Files

package config

import "github.com/jenkins-x/jx/pkg/prow/config"

Index

Package Files

branch_protection.go tide.go types.go

func AddRepoToBranchProtection Uses

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 Uses

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 Uses

func CreateTide(tideURL string) config.Tide

CreateTide creates a default Tide Config object

func GetAllBranchProtectionContexts Uses

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 Uses

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

GetBranchProtectionContexts gets the branch protection contexts for a repo

func RemoveRepoFromBranchProtection Uses

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

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

func RemoveRepoFromTideConfig Uses

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 Uses

type Kind string
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 7 packages (graph) and is imported by 2 packages. Updated 2019-10-11. Refresh now. Tools for package owners.