config

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

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
	KeyTimeout           = "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 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

func NewViper

func NewViper() *viper.Viper

NewViper creates a new viper instance configured for Hubble.

Types

This section is empty.

Jump to

Keyboard shortcuts

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