option

package
v5.2.1-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: LGPL-3.0 Imports: 5 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Config
	LogLevel string
	RunMode  string //default,sync
}

Builder builder server

func NewBuilder

func NewBuilder() *Builder

NewBuilder new server

func (*Builder) AddFlags

func (a *Builder) AddFlags(fs *pflag.FlagSet)

AddFlags config

func (*Builder) CheckConfig

func (a *Builder) CheckConfig() error

CheckConfig check config

func (*Builder) SetLog

func (a *Builder) SetLog()

SetLog 设置log

type Config

type Config struct {
	EtcdEndPoints        []string
	EtcdCaFile           string
	EtcdCertFile         string
	EtcdKeyFile          string
	EtcdTimeout          int
	EtcdPrefix           string
	ClusterName          string
	MysqlConnectionInfo  string
	DBType               string
	PrometheusMetricPath string
	EventLogServers      []string
	KubeConfig           string
	MaxTasks             int
	APIPort              int
	MQAPI                string
	DockerEndpoint       string
	HostIP               string
	CleanUp              bool
	Topic                string
	LogPath              string
	RbdNamespace         string
	RbdRepoName          string
	GRDataPVCName        string
	CachePVCName         string
	CacheMode            string
	CachePath            string
}

Config config server

Jump to

Keyboard shortcuts

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