options

package
v0.0.0-...-da359a8 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 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{
		"managedclusters":      struct{}{},
		"managedclusteraddons": struct{}{},
		"manifestworks":        struct{}{},
	}
)

Functions

This section is empty.

Types

type Options

type Options struct {
	Apiserver          string
	Kubeconfig         string
	Help               bool
	HTTPPort           int
	HTTPSPort          int
	Host               string
	HTTPTelemetryPort  int
	HTTPSTelemetryPort int
	TelemetryHost      string
	TLSCrtFile         string
	TLSKeyFile         string
	Collectors         koptions.CollectorSet
	Namespaces         koptions.NamespaceList
	MetricBlacklist    koptions.MetricSet
	MetricWhitelist    koptions.MetricSet
	Version            bool
	HubType            string

	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