Documentation ¶
Index ¶
Constants ¶
View Source
const ( // GlobalFlags keys. KeyConfig = "config" // string KeyDebug = "debug" // bool // ServerFlags keys. KeyServer = "server" // string KeyTLS = "tls" // bool KeyTLSAllowInsecure = "tls-allow-insecure" // bool KeyTLSCACertFiles = "tls-ca-cert-files" // []string KeyTLSClientCertFile = "tls-client-cert-file" // string KeyTLSClientKeyFile = "tls-client-key-file" // string KeyTLSServerName = "tls-server-name" // string KeyBasicAuthUsername = "basic-auth-username" // string KeyBasicAuthPassword = "basic-auth-password" // string KeyTimeout = "timeout" // time.Duration KeyRequestTimeout = "request-timeout" // time.Duration )
Keys can be used to retrieve values from GlobalFlags and ServerFlags (e.g. when bound to a viper instance).
Variables ¶
View Source
var Compat = compatFromEnv()
Compat contains the parsed HUBBLE_COMPAT options
View Source
var GlobalFlags = pflag.NewFlagSet("global", pflag.ContinueOnError)
GlobalFlags are flags that apply to any command.
View Source
var ServerFlags = pflag.NewFlagSet("server", pflag.ContinueOnError)
ServerFlags are flags that configure how to connect to a Hubble server.
Functions ¶
Types ¶
type CompatOptions ¶
type CompatOptions struct {
LegacyJSONOutput bool
}
CompatOptions defines the available compatibility options
Click to show internal directories.
Click to hide internal directories.