Documentation
¶
Overview ¶
Package for shared Conductor settings.
Index ¶
- Variables
- func CustomizeAdminUsers(adminUsers []string)
- func CustomizeNoStagingVerificationUsers(noStagingVerificationUsers []string)
- func CustomizeRobotUsers(robotUsers []string)
- func GetHostname() string
- func GetJenkinsRollbackJob() string
- func IsAdminUser(email string) bool
- func IsNoStagingVerificationUser(email string) bool
- func IsRobotUser(email string) bool
- func StringInList(text string, list []string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Hostname = flags.EnvString("HOSTNAME", "localhost") JenkinsRollbackJob = flags.EnvString("JENKINS_ROLLBACK_JOB", "") // Whether to not require staging verification for a commit by default. // If set, staging verification will only be required if the commit message has [needs-staging]. NoStagingVerification = flags.EnvBool("NO_STAGING_VERIFICATION", false) AdminUsers []string RobotUsers []string NoStagingVerificationUsers []string CustomAdminUsers []string CustomRobotUsers []string CustomNoStagingVerificationUsers []string )
View Source
var ( DeliveryJobs []string VerificationJobs []string DeployJobs []string CustomDeliveryJobs []string CustomVerificationJobs []string CustomDeployJobs []string )
Settings for job names to accept for delivery, verification, and deploy phases. These job names are customizable for tests. The logic below ensures that tests can modify them unperturbed by calls to ParseFlags. Calls to CustomizeJobs should only occur in tests.
Functions ¶
func CustomizeAdminUsers ¶
func CustomizeAdminUsers(adminUsers []string)
Should only be used for tests.
func CustomizeNoStagingVerificationUsers ¶
func CustomizeNoStagingVerificationUsers(noStagingVerificationUsers []string)
Should only be used for tests.
func CustomizeRobotUsers ¶
func CustomizeRobotUsers(robotUsers []string)
Should only be used for tests.
func GetHostname ¶
func GetHostname() string
func GetJenkinsRollbackJob ¶
func GetJenkinsRollbackJob() string
func IsAdminUser ¶
func IsRobotUser ¶
func StringInList ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.