Documentation ¶
Index ¶
- func AddRepoToBranchProtection(bp *config.BranchProtection, repoSpec string, context string, kind Kind) error
- func AddRepoToTideConfig(t *config.Tide, repo string, kind Kind) error
- func CreateTide() config.Tide
- func GetAllBranchProtectionContexts(org string, repo string, prowConfig *config.Config) ([]string, error)
- func GetBranchProtectionContexts(org string, repo string, prowConfig *config.Config) ([]string, error)
- func RemoveRepoFromBranchProtection(bp *config.BranchProtection, repoSpec string) error
- func RemoveRepoFromTideConfig(t *config.Tide, repo string, kind Kind) error
- type Kind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
AddRepoToTideConfig adds a code repository to the Tide section of the Prow Config
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
Types ¶
Click to show internal directories.
Click to hide internal directories.