config

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 5 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
	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

func NewViper

func NewViper() *viper.Viper

NewViper creates a new viper instance configured for Hubble.

Types

type CompatOptions added in v0.11.1

type CompatOptions struct {
	LegacyJSONOutput bool
}

CompatOptions defines the available compatibility options

Jump to

Keyboard shortcuts

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