Documentation ¶
Overview ¶
Package conf Define the configuration
Index ¶
- func Debug() bool
- func DialerPublicAddr() string
- func EnableEss() bool
- func ErdaHelmChartVersion() string
- func ErdaNamespace() string
- func ListenAddr() string
- func Load()
- func LocalMode() bool
- func OryCompatibleClientID() string
- func OryCompatibleClientSecret() string
- func OryEnabled() bool
- func OryKratosPrivateAddr() string
- func RedisAddr() string
- func RedisMasterName() string
- func RedisPwd() string
- func RedisSentinelAddrs() string
- func ReleaseRepo() string
- func SchedulerAddr() string
- func SoldierAddr() string
- func TaskCleanDuration() time.Duration
- func TaskSyncDuration() time.Duration
- func UCClientID() string
- func UCClientSecret() string
- type Conf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialerPublicAddr ¶
func DialerPublicAddr() string
func ErdaHelmChartVersion ¶
func ErdaHelmChartVersion() string
func ErdaNamespace ¶
func ErdaNamespace() string
func OryCompatibleClientID ¶
func OryCompatibleClientID() string
func OryCompatibleClientSecret ¶
func OryCompatibleClientSecret() string
func OryEnabled ¶
func OryEnabled() bool
func OryKratosPrivateAddr ¶
func OryKratosPrivateAddr() string
func ReleaseRepo ¶
func ReleaseRepo() string
func TaskCleanDuration ¶
func TaskSyncDuration ¶
Types ¶
type Conf ¶
type Conf struct { Debug bool `env:"DEBUG" default:"false"` EnableEss bool `env:"ENABLE_ESS" default:"false"` ListenAddr string `env:"LISTEN_ADDR" default:":9027"` SoldierAddr string `env:"SOLDIER_ADDR"` SchedulerAddr string `env:"SCHEDULER_ADDR"` TaskSyncDuration time.Duration `env:"TASK_SYNC_DURATION" default:"2h"` TaskCleanDuration time.Duration `env:"TASK_CLEAN_DURATION" default:"24h"` LocalMode bool `env:"LOCAL_MODE" default:"false"` RedisMasterName string `default:"my-master" env:"REDIS_MASTER_NAME"` RedisSentinelAddrs string `default:"" env:"REDIS_SENTINELS_ADDR"` RedisAddr string `default:"127.0.0.1:6379" env:"REDIS_ADDR"` RedisPwd string `default:"anywhere" env:"REDIS_PASSWORD"` UCClientID string `env:"UC_CLIENT_ID"` UCClientSecret string `env:"UC_CLIENT_SECRET"` // ory/kratos config OryEnabled bool `default:"false" env:"ORY_ENABLED"` OryKratosAddr string `default:"kratos:4433" env:"KRATOS_ADDR"` OryKratosPrivateAddr string `default:"kratos:4434" env:"KRATOS_PRIVATE_ADDR"` ErdaNamespace string `default:"erda-system" env:"ERDA_NAMESPACE"` ErdaHelmChartVersion string `default:"0.1.0" env:"ERDA_HELM_CHART_VERSION"` ReleaseRepo string `default:"registry.erda.cloud/erda" env:"RELEASE_REPO"` DialerPublicAddr string `env:"CLUSTER_DIALER_PUBLIC_ADDR"` }
Conf Define the configuration
Click to show internal directories.
Click to hide internal directories.