Documentation ¶
Overview ¶
Package conf Define the configuration
Index ¶
- func CacheSegSize() int64
- func CacheSize() int64
- func ClusterInitVersion() string
- func Debug() bool
- func EnableEss() bool
- func ErdaClusterName() string
- func ErdaDomain() string
- func ErdaNamespace() string
- func ErdaProtocol() string
- func ErdaVersion() string
- func HelmRepoPassword() string
- func HelmRepoURL() string
- func HelmRepoUsername() string
- func Load()
- func LocalMode() bool
- func RedisAddr() string
- func RedisMasterName() string
- func RedisPwd() string
- func RedisSentinelAddrs() string
- func ReleaseRegistry() string
- func TaskCleanDuration() time.Duration
- func TaskSyncDuration() time.Duration
- type Conf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheSegSize ¶
func CacheSegSize() int64
func ClusterInitVersion ¶
func ClusterInitVersion() string
func ErdaClusterName ¶
func ErdaClusterName() string
func ErdaDomain ¶
func ErdaDomain() string
func ErdaNamespace ¶
func ErdaNamespace() string
func ErdaProtocol ¶
func ErdaProtocol() string
func ErdaVersion ¶
func ErdaVersion() string
func HelmRepoPassword ¶
func HelmRepoPassword() string
func HelmRepoURL ¶
func HelmRepoURL() string
func HelmRepoUsername ¶
func HelmRepoUsername() string
func ReleaseRegistry ¶
func ReleaseRegistry() string
func TaskCleanDuration ¶
func TaskSyncDuration ¶
Types ¶
type Conf ¶
type Conf struct { Debug bool `env:"DEBUG" default:"false"` EnableEss bool `env:"ENABLE_ESS" default:"false"` 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"` // size of steve server cache, default 1Gi CacheSize int64 `default:"1073741824" env:"CMP_CACHE_SIZE"` // size of each cache segment, default 16Mi CacheSegSize int64 `default:"16777216" env:"CMP_CACHE_SEG_SIZE"` ReleaseRegistry string `env:"RELEASE_REGISTRY" default:"registry.erda.cloud/erda"` ClusterInitVersion string `env:"CLUSTER_INIT_VERSION" default:"0.2"` HelmChartRepoURL string `env:"HELM_REPO_URL"` HelmChartRepoUserName string `env:"HELM_REPO_USERNAME"` HelmChartRepoPassword string `env:"HELM_REPO_PASSWORD"` ErdaNamespace string `env:"DICE_NAMESPACE" default:"erda-system"` ErdaVersion string `env:"DICE_VERSION"` ErdaProtocol string `env:"DICE_PROTOCOL"` ErdaClusterName string `env:"DICE_CLUSTER_NAME"` ErdaDomain string `env:"DICE_ROOT_DOMAIN"` }
Conf Define the configuration
Click to show internal directories.
Click to hide internal directories.