options

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnablePprofFlag     = "enable-pprof"
	ProbeMasterAddrFalg = "probe-master-addr"
	ClusterNameFalg     = "cluster-name"
	SecretKeyFalg       = "secret-key"
	DebugLevelFalg      = "debug-level"
	ConfigFileFalg      = "config-file"
)

Variables

View Source
var ProbeTunnelConf = NewProbeTunnelOptions()

Functions

This section is empty.

Types

type ProbeTunnelOptions

type ProbeTunnelOptions struct {
	ProbeMasterAddr string `mapstructure:"probe_master_addr" yaml:"probe_master_addr"`
	ClusterName     string `mapstructure:"cluster_name" yaml:"cluster_name"`
	SecretKey       string `mapstructure:"secret_key" yaml:"secret_key"`
	ConfigFile      string
}

func NewProbeTunnelOptions

func NewProbeTunnelOptions() *ProbeTunnelOptions

NewProbeTunnelOptions creates a new NewProbeAgentOptions with a default config.

func (*ProbeTunnelOptions) AddFlags

func (o *ProbeTunnelOptions) AddFlags(fs *pflag.FlagSet)

AddFlags returns flags for a specific yurthub by section name

Jump to

Keyboard shortcuts

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