cmdoptions

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	FeatureGate featuregate.MutableFeatureGate
	LogConfig   *logsapi.LoggingConfiguration
}

Options holds shared command line options

func New

func New() *Options

func (*Options) AddNamedFlagSets

func (o *Options) AddNamedFlagSets(sharedFS *cliflag.NamedFlagSets)

AddNamedFlagSets register flags for common options in NamedFlagSets

func (*Options) Validate

func (o *Options) Validate() error

Validate registered options

Jump to

Keyboard shortcuts

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