options

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package options xxx

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 HttpCliConfig added in v1.26.0

type HttpCliConfig struct {
	CcHOST                   string `json:"cc_host" value:"" usage:"request bcs saas cc host"`
	BkAppSecret              string `json:"bk_app_secret" value:"" usage:"request ssm for http header"`
	SsmHost                  string `json:"ssm_host" value:"" usage:"request ssm host"`
	SsmAccessToken           string `json:"ssm_access_token" value:"" usage:"ssm access token"`
	CmHost                   string `json:"cm_host"  value:"" usage:"request cluster manager host"`
	GatewayToken             string `json:"gateway_token" value:"" usage:"bcs api gateway token"`
	HttpCliCertConfig        *commtypes.CertConfig
	ClusterManagerCertConfig *commtypes.CertConfig
}

HttpCliConfig option for HttpCliConfig

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
	HttpCliConfig
	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