config

package
v2.1.144 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRepoToBranchProtection

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

func AddRepoToTideConfig

func AddRepoToTideConfig(t *keeper.Config, repo string, kind Kind) error

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

func CreateTide

func CreateTide(tideURL string) keeper.Config

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 *branchprotection.Config, repoSpec string) error

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

func RemoveRepoFromTideConfig

func RemoveRepoFromTideConfig(t *keeper.Config, repo string, kind Kind) error

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

Types

type Kind

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"
)

Jump to

Keyboard shortcuts

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