option

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: LGPL-3.0 Imports: 6 Imported by: 0

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
	KanikoImage          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
	WtNamespace          string
	WtRepoName           string
	WTDataPVCName        string
	CachePVCName         string
	CacheMode            string
	CachePath            string
	ContainerRuntime     string
	RuntimeEndpoint      string
}

Config config server

Jump to

Keyboard shortcuts

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