cmdcommon

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HcCmdHelper

type HcCmdHelper struct {
	Logger logr.Logger

	Name string
	// contains filtered or unexported fields
}

func NewHelper

func NewHelper(logger logr.Logger, name string) *HcCmdHelper

func (HcCmdHelper) AddToScheme

func (h HcCmdHelper) AddToScheme(mgr manager.Manager, addToSchemeFuncs []func(*apiruntime.Scheme) error)

func (HcCmdHelper) ExitOnError

func (h HcCmdHelper) ExitOnError(err error, message string, keysAndValues ...interface{})

func (HcCmdHelper) GetWatchNS

func (h HcCmdHelper) GetWatchNS() string

func (HcCmdHelper) InitiateCommand

func (h HcCmdHelper) InitiateCommand()

InitiateCommand adds flags registered by imported packages (e.g. glog and controller-runtime)

func (HcCmdHelper) IsRunInLocal

func (h HcCmdHelper) IsRunInLocal() bool

func (HcCmdHelper) RegisterPPROFServer added in v1.4.1

func (h HcCmdHelper) RegisterPPROFServer(mgr manager.Manager) error

Registers a pprof server for cpu and memory profiling the running operator.

Jump to

Keyboard shortcuts

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