option

package
v0.0.0-...-a3a5c94 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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
	KubeAPIQPS              int
	KubeAPIBurst            int
	MaxTasks                int
	MQAPI                   string
	NodeName                string
	Listen                  string
	HostIP                  string
	ServerPort              int
	KubeClient              kubernetes.Interface
	LeaderElectionNamespace string
	LeaderElectionIdentity  string
	RBDNamespace            string
	GrdataPVCName           string
	Helm                    Helm
}

Config config server

type Helm

type Helm struct {
	DataDir    string
	RepoFile   string
	RepoCache  string
	ChartCache string
}

Helm helm configuration.

type Worker

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

Worker worker server

func NewWorker

func NewWorker() *Worker

NewWorker new server

func (*Worker) AddFlags

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

AddFlags config

func (*Worker) CheckEnv

func (a *Worker) CheckEnv() error

CheckEnv Detect environment variables

func (*Worker) SetLog

func (a *Worker) SetLog()

SetLog Set log

Jump to

Keyboard shortcuts

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