options

package
v0.0.1-master Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 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 {
	Apiserver         string
	KubeconfigPath    string
	Host              string
	Port              int
	ExporterHost      string
	ExporterPort      int
	Help              bool
	AllowedNamespaces []string

	StopCh     chan struct{}
	Kubeconfig *rest.Config
	// contains filtered or unexported fields
}

Options are the configurable parameters for kube-events-exporter.

func NewOptions

func NewOptions() *Options

NewOptions returns a new instance of `Options`.

func (*Options) AddFlags

func (o *Options) AddFlags()

AddFlags creates a flagset and initializes Options

func (*Options) Parse

func (o *Options) Parse()

Parse parses the flags

func (*Options) Usage

func (o *Options) Usage()

Usage displays the usage

Jump to

Keyboard shortcuts

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