settings

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package for shared Conductor settings.

Index

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 IsAdminUser(email string) bool

func IsNoStagingVerificationUser

func IsNoStagingVerificationUser(email string) bool

func IsRobotUser

func IsRobotUser(email string) bool

func StringInList

func StringInList(text string, list []string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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