options

package
v0.0.0-...-d9e9b86 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultNamespaces = koptions.NamespaceList{metav1.NamespaceAll}
	DefaultCollectors = koptions.CollectorSet{
		"policyreports": struct{}{},
	}
)

Functions

This section is empty.

Types

type Options

type Options struct {
	Apiserver       string
	Kubeconfig      string
	Help            bool
	Port            int
	Host            string
	TelemetryPort   int
	TelemetryHost   string
	TLSCrtFile      string
	TLSKeyFile      string
	Collectors      koptions.CollectorSet
	Namespaces      koptions.NamespaceList
	MetricBlacklist koptions.MetricSet
	MetricWhitelist koptions.MetricSet
	Version         bool

	EnableGZIPEncoding bool
}

func NewOptions

func NewOptions() *Options

func (*Options) AddFlags

func (o *Options) AddFlags()

func (*Options) Parse

func (o *Options) Parse()

func (*Options) Usage

func (o *Options) Usage()

Jump to

Keyboard shortcuts

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