Documentation
¶
Index ¶
Constants ¶
View Source
const ( KeyLogLevel = "log-level" KeyDevMode = "dev-mode" KeyOTELEnabled = "otel-enabled" KeyOTELCollectorHost = "otel-collector-host" KeyOTELCollectorPort = "otel-collector-port" KeyGitlabHookSecretKey = "gitlab-hook-secret-key" KeyGithubHookSecretKey = "github-hook-secret-key" KeyDefaultTFCOrganization = "default-tfc-organization" KeyWorkspaceAllowList = "workspace-allow-list" KeyWorkspaceDenyList = "workspace-deny-list" KeyAllowAutoMerge = "allow-auto-merge" KeyFailCIOnSentinelSoftFail = "fail-ci-on-sentinel-soft-fail" KeyDeleteOldComments = "delete-old-comments" KeyNATSServiceURL = "nats-service-url" KeyGitlabProjectAllowList = "gitlab-project-allow-list" KeyLegacyProjectAllowList = "project-allow-list" KeyGithubRepoAllowList = "github-repo-allow-list" KeyGithubCloneDepth = "github-clone-depth" KeyGitlabCloneDepth = "gitlab-clone-depth" KeyWorkspaceFanoutEnabled = "workspace-fanout-enabled" KeyWorkspaceJetStreamReplicas = "workspace-jetstream-replicas" KeyTFCRateLimitRPS = "tfc-rate-limit-rps" KeyTFCRateLimitBurst = "tfc-rate-limit-burst" KeyJetStreamDedupWindow = "jetstream-dedup-window" )
Variables ¶
This section is empty.
Functions ¶
func RegisterFlags ¶
Types ¶
type Config ¶
type Config struct {
LogLevel string `mapstructure:"log-level"`
DevMode bool `mapstructure:"dev-mode"`
OTELEnabled bool `mapstructure:"otel-enabled"`
OTELCollectorHost string `mapstructure:"otel-collector-host"`
OTELCollectorPort string `mapstructure:"otel-collector-port"`
GitlabHookSecretKey string `mapstructure:"gitlab-hook-secret-key"`
GithubHookSecretKey string `mapstructure:"github-hook-secret-key"`
DefaultTFCOrganization string `mapstructure:"default-tfc-organization"`
WorkspaceAllowList []string `mapstructure:"workspace-allow-list"`
WorkspaceDenyList []string `mapstructure:"workspace-deny-list"`
AllowAutoMerge bool `mapstructure:"allow-auto-merge"`
FailCIOnSentinelSoftFail bool `mapstructure:"fail-ci-on-sentinel-soft-fail"`
DeleteOldComments bool `mapstructure:"delete-old-comments"`
NATSServiceURL string `mapstructure:"nats-service-url"`
GitlabProjectAllowList []string `mapstructure:"gitlab-project-allow-list"`
LegacyProjectAllowList []string `mapstructure:"project-allow-list"`
GithubRepoAllowList []string `mapstructure:"github-repo-allow-list"`
GithubCloneDepth int `mapstructure:"github-clone-depth"`
GitlabCloneDepth int `mapstructure:"gitlab-clone-depth"`
WorkspaceFanoutEnabled bool `mapstructure:"workspace-fanout-enabled"`
WorkspaceJetStreamReplicas int `mapstructure:"workspace-jetstream-replicas"`
TFCRateLimitRPS int `mapstructure:"tfc-rate-limit-rps"`
TFCRateLimitBurst int `mapstructure:"tfc-rate-limit-burst"`
JetStreamDedupWindow time.Duration `mapstructure:"jetstream-dedup-window"`
}
var C Config
type DocumentationOption ¶
type DocumentationOption struct {
EnvVars []string
Flag string
Description string
DefaultValue string
}
func DocumentationOptions ¶
func DocumentationOptions() []DocumentationOption
Click to show internal directories.
Click to hide internal directories.