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: 1 Imported by: 0

Documentation

Overview

Package options xxx

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(ops *ServerOption) error

Parse xxx

Types

type ServerOption

type ServerOption struct {
	conf.FileConfig
	conf.MetricConfig
	conf.LogConfig
	conf.ProcessConfig

	EngineType string `json:"engine_type" value:"kubernetes" usage:"the platform that bcs-webhook-server runs in, kubernetes or mesos"`
	KubeConfig string `json:"kubeconfig" value:"" usage:"kubeconfig for kube-apiserver, Only required if out-of-cluster."`
	KubeMaster string `` /* 172-byte string literal not displayed */
	EsbUrl     string `json:"esb_url" value:"" usage:"esb api url to privilege"`
	AppCode    string `json:"app_code" value:"" usage:"app_code to call esb cc api"`
	AppSecret  string `json:"app_secret" value:"" usage:"app_secret to call esb cc api"`
	BkUsername string `json:"bk_username" value:"" usage:"bk username to call esb cc api"`
}

ServerOption is option in flags

func NewServerOption

func NewServerOption() *ServerOption

NewServerOption create a ServerOption object

Jump to

Keyboard shortcuts

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