globalflag

package
v0.0.0-...-d88c8b5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGlobalFlags

func AddGlobalFlags(fs *pflag.FlagSet, name string)

AddGlobalFlags explicitly registers flags that libraries (klog, verflag, etc.) register against the global flagsets from "flag" and "k8s.io/klog/v2". We do this in order to prevent unwanted flags from leaking into the component's flagset.

func Register

func Register(local *pflag.FlagSet, globalName string)

Register adds a flag to local that targets the Value associated with the Flag named globalName in flag.CommandLine.

Types

This section is empty.

Jump to

Keyboard shortcuts

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