config

package
v0.0.0-...-6e78c53 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package config xxx

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheckOptions

type HealthCheckOptions struct {
	HealthScheme string `json:"healthScheme" usage:"health check request scheme"`
	HealthPath   string `json:"healthPath" usage:"health check path"`
}

HealthCheckOptions health check scheme&path

type K8sConfig

type K8sConfig struct {
	Master     string `json:"master" usage:"kubernetes cluster master"`
	KubeConfig string `json:"kubeConfig" value:"" usage:""`
}

K8sConfig master & KubeConfig

type PersistConfig

type PersistConfig struct {
	IpvsPersistDir string `json:"ipvsPersistDir" value:"/root/.bcs" usage:"persist ipvs rules"`
}

PersistConfig xxx

type ProxyAPIServerOptions

type ProxyAPIServerOptions struct {
	conf.FileConfig
	conf.ServiceConfig
	conf.LogConfig
	conf.ProcessConfig

	DebugMode      bool               `json:"debugMode"`
	ProxyLvs       ProxyLvs           `json:"proxyLvs"`
	PersistConfig  PersistConfig      `json:"persistConfig"`
	HealthCheck    HealthCheckOptions `json:"healthCheck"`
	K8sConfig      K8sConfig          `json:"k8sConfig"`
	SystemInterval SystemInterval     `json:"systemInterval"`
	RealServer     RealServer         `json:"realServer"`
}

ProxyAPIServerOptions cmd option for bcs-apiserver-proxy

func NewProxyAPIServerOptions

func NewProxyAPIServerOptions() *ProxyAPIServerOptions

NewProxyAPIServerOptions init ProxyAPIServerOptions

func (ProxyAPIServerOptions) Validate

func (opt ProxyAPIServerOptions) Validate() bool

Validate check ProxyAPIServerOptions paras

type ProxyLvs

type ProxyLvs struct {
	VirtualAddress string `json:"virtualAddress" value:"127.0.0.1:6443" usage:"Proxy lvs address:port"`
	Scheduler      string `json:"lvsScheduler" value:"sh" usage:"one of rr|wrr|lc|wlc|lblc|lblcr|dh|sh|sed|nq"`
}

ProxyLvs virtual server

type RealServer

type RealServer struct {
	RealAddress []string `json:"realServers" usage:"realServers init lvs address"`
}

RealServer vs backend rs

type SystemInterval

type SystemInterval struct {
	ManagerInterval int64 `json:"managerInterval" value:"10" usage:"dynamic refresh ipvs rules interval"`
}

SystemInterval ticker interval

Jump to

Keyboard shortcuts

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