Documentation ¶
Index ¶
Constants ¶
View Source
const ( KeyBasicAuthUsername = "BASIC_AUTH_USERNAME" KeyBasicAuthPassword = "BASIC_AUTH_PASSWORD" KeySSHPrivateKey = "SSH_PRIVATE_KEY" KeySSHPrivateKeyPassword = "SSH_PRIVATE_KEY_PASSWORD" KeySSHMetadataRepositoryUrl = "SSH_METADATA_REPO_URL" KeyBitbucketUsername = "BITBUCKET_USERNAME" KeyBitbucketPassword = "BITBUCKET_PASSWORD" KeyBitbucketServer = "BITBUCKET_SERVER" KeyBitbucketCacheSize = "BITBUCKET_CACHE_SIZE" KeyBitbucketCacheRetentionSeconds = "BITBUCKET_CACHE_RETENTION_SECONDS" KeyBitbucketReviewerFallback = "BITBUCKET_REVIEWER_FALLBACK" KeyGitCommitterName = "GIT_COMMITTER_NAME" KeyGitCommitterEmail = "GIT_COMMITTER_EMAIL" KeyKafkaGroupIdOverride = "KAFKA_GROUP_ID_OVERRIDE" KeyAuthOidcKeySetUrl = "AUTH_OIDC_KEY_SET_URL" KeyAuthOidcTokenAudience = "AUTH_OIDC_TOKEN_AUDIENCE" KeyAuthGroupWrite = "AUTH_GROUP_WRITE" KeyMetadataRepoUrl = "METADATA_REPO_URL" KeyMetadataRepoMainline = "METADATA_REPO_MAINLINE" KeyUpdateJobIntervalMinutes = "UPDATE_JOB_INTERVAL_MINUTES" KeyUpdateJobTimeoutSeconds = "UPDATE_JOB_TIMEOUT_SECONDS" KeyAlertTargetRegex = "ALERT_TARGET_REGEX" KeyElasticApmDisabled = "ELASTIC_APM_DISABLED" KeyOwnerAliasPermittedRegex = "OWNER_ALIAS_PERMITTED_REGEX" KeyOwnerAliasProhibitedRegex = "OWNER_ALIAS_PROHIBITED_REGEX" KeyOwnerAliasMaxLength = "OWNER_ALIAS_MAX_LENGTH" KeyOwnerAliasFilterRegex = "OWNER_ALIAS_FILTER_REGEX" KeyServiceNamePermittedRegex = "SERVICE_NAME_PERMITTED_REGEX" KeyServiceNameProhibitedRegex = "SERVICE_NAME_PROHIBITED_REGEX" KeyServiceNameMaxLength = "SERVICE_NAME_MAX_LENGTH" KeyRepositoryNamePermittedRegex = "REPOSITORY_NAME_PERMITTED_REGEX" KeyRepositoryNameProhibitedRegex = "REPOSITORY_NAME_PROHIBITED_REGEX" KeyRepositoryNameMaxLength = "REPOSITORY_NAME_MAX_LENGTH" KeyRepositoryKeySeparator = "REPOSITORY_KEY_SEPARATOR" KeyRepositoryTypes = "REPOSITORY_TYPES" KeyNotificationConsumerConfigs = "NOTIFICATION_CONSUMER_CONFIGS" KeyRedisUrl = "REDIS_URL" KeyRedisPassword = "REDIS_PASSWORD" KeyPullRequestBuildUrl = "PULL_REQUEST_BUILD_URL" KeyPullRequestBuildKey = "PULL_REQUEST_BUILD_KEY" KeyVCSConfigs = "VCS_CONFIGS" KeyWebhooksProcessAsync = "WEBHOOKS_PROCESS_ASYNC" KeyUserPrefix = "USER_PREFIX" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomConfiguration ¶
type CustomConfiguration interface { BasicAuthUsername() string BasicAuthPassword() string BitbucketUsername() string BitbucketPassword() string SSHPrivateKey() string SSHPrivateKeyPassword() string SSHMetadataRepositoryUrl() string BitbucketServer() string BitbucketCacheSize() int BitbucketCacheRetentionSeconds() uint32 BitbucketReviewerFallback() string GitCommitterName() string GitCommitterEmail() string AuthOidcKeySetUrl() string AuthOidcTokenAudience() string AuthGroupWrite() string MetadataRepoUrl() string MetadataRepoMainline() string MetadataRepoProject() string MetadataRepoName() string UpdateJobIntervalCronPart() string UpdateJobTimeoutSeconds() uint16 AlertTargetRegex() *regexp.Regexp ElasticApmEnabled() bool OwnerAliasPermittedRegex() *regexp.Regexp OwnerAliasProhibitedRegex() *regexp.Regexp OwnerAliasMaxLength() uint16 OwnerFilterAliasRegex() *regexp.Regexp ServiceNamePermittedRegex() *regexp.Regexp ServiceNameProhibitedRegex() *regexp.Regexp ServiceNameMaxLength() uint16 RepositoryNamePermittedRegex() *regexp.Regexp RepositoryNameProhibitedRegex() *regexp.Regexp RepositoryNameMaxLength() uint16 RepositoryTypes() []string RepositoryKeySeparator() string NotificationConsumerConfigs() map[string]NotificationConsumerConfig VCSConfigs() map[string]VCSConfig WebhooksProcessAsync() bool UserPrefix() string Kafka() *kafka.Config KafkaGroupIdOverride() string RedisUrl() string RedisPassword() string PullRequestBuildUrl() string PullRequestBuildKey() string }
func Custom ¶
func Custom(configuration librepo.Configuration) CustomConfiguration
Custom is a type casting helper that gets you from the configuration acorn to your CustomConfiguration
type NotificationConsumerConfig ¶ added in v0.32.0
type NotificationConsumerConfig struct { Subscribed map[types.NotificationPayloadType]map[types.NotificationEventType]struct{} ConsumerURL string }
type VCSConfig ¶ added in v0.39.0
type VCSConfig struct { Platform VCSPlatform APIBaseURL string AccessToken string }
type VCSPlatform ¶ added in v0.39.0
type VCSPlatform int64
const ( VCSPlatformBitbucketDatacenter VCSPlatform = iota VCSPlatformGitHub VCSPlatformUnknown )
Click to show internal directories.
Click to hide internal directories.