Documentation ¶
Overview ¶
Package conf 定义了 orchestrator 所需要的配置选项,这些配置选项都是通过环境变量加载.
Index ¶
- func Debug() bool
- func DeployZookeeper() string
- func InitContainerImage() string
- func InstancesPerService() int
- func ListenAddr() string
- func Load()
- func MainClusterName() string
- func PoolSize() int
- func PrivateKey() string
- func PublicKey() string
- func RedisAddr() string
- func RedisMasterName() string
- func RedisPassword() string
- func RedisSentinels() string
- func RuntimeUpMaxWaitTime() int64
- func SchedulerAddr() string
- func SoldierAddr() string
- func TenantGroupKey() string
- func TokenClientID() string
- func TokenClientSecret() string
- type Conf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitContainerImage ¶
func InitContainerImage() string
InitContainerImage 返回 InitContainerImage 选项.
func InstancesPerService ¶
func InstancesPerService() int
InstancesPerService 返回 InstancesPerService 选项.
Types ¶
type Conf ¶
type Conf struct { Debug bool `env:"DEBUG" default:"false"` ListenAddr string `env:"LISTEN_ADDR" default:"0.0.0.0:8081"` PoolSize int `env:"POOL_SIZE" default:"100"` RedisMasterName string `env:"REDIS_MASTER_NAME" default:"my-master"` RedisSentinels string `env:"REDIS_SENTINELS_ADDR" default:""` RedisAddr string `env:"REDIS_ADDR" default:"127.0.0.1:6379"` RedisPassword string `env:"REDIS_PASSWORD" default:""` InstancesPerService int `env:"INSTANCES_PER_SERVICE" default:"1000"` MainClusterName string `env:"DICE_CLUSTER_NAME" default:""` TenantGroupKey string `env:"TENANT_GROUP_KEY" default:""` SoldierAddr string `env:"SOLDIER_ADDR" default:""` SchedulerAddr string `env:"SCHEDULER_ADDR" default:""` DeployZookeeper string `env:"DEPLOY_ZOOKEEPER" default:""` RuntimeUpMaxWaitTime int64 `env:"MAX_WAIT_TIME" default:"15"` PublicKey string `` /* 395-byte string literal not displayed */ PrivateKey string `` /* 1216-byte string literal not displayed */ InitContainerImage string `env:"INIT_CONTAINER_IMAGE" default:"registry.cn-hangzhou.aliyuncs.com/dice-third-party/curl:stable"` TokenClientID string `env:"TOKEN_CLIENT_ID" default:"orchestrator"` TokenClientSecret string `env:"TOKEN_CLIENT_SECRET" default:"devops/orchestrator"` }
Conf 定义配置对象.
Click to show internal directories.
Click to hide internal directories.