options

package
v1.25.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags()

AddFlags add cmdline flags

Types

type CertConfig

type CertConfig struct {
	CAFile   string
	CertFile string
	KeyFile  string
	CertPwd  string
	IsSSL    bool
}

CertConfig is configuration of Cert

type MongoConfig

type MongoConfig struct {
	MongoAuthMechanism  string `json:"mongo_authmechanism" value:"" usage:"the mechanism to use for authentication"`
	MongoAddress        string `json:"mongo_address" value:"127.0.0.1:27017" usage:"mongo server address"`
	MongoConnectTimeout uint   `json:"mongo_connecttimeout"  value:"3" usage:"mongo server connnect timeout"`
	MongoDatabase       string `json:"mongo_database" value:"bcs" usage:"database in mongo for cluster manager"`
	MongoUsername       string `json:"mongo_username"  value:"" usage:"mongo username for cluster manager"`
	MongoPassword       string `json:"mongo_password" value:"" usage:"mongo passsword for cluster manager"`
	MongoMaxPoolSize    uint   `json:"mongo_maxpoolsize" value:"0" usage:"mongo client connection pool max size"`
	MongoMinPoolSize    uint   `json:"mongo_minpoolsize" value:"0" usage:"mongo client connection pool min size"`
}

MongoConfig option for mongo

type UpgraderOptions

type UpgraderOptions struct {
	conf.FileConfig
	conf.ServiceConfig
	conf.ServerOnlyCertConfig
	conf.LogConfig
	conf.ProcessConfig
	MongoConfig
	ServerCert *CertConfig
	DebugMode  bool `json:"debug_mode" value:"false" usage:"Debug mode, use pprof."`
}

UpgraderOptions is options in flags

func NewUpgraderOptions

func NewUpgraderOptions() *UpgraderOptions

NewUpgraderOptions create UpgraderOptions object

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL