cmdcommon

package
v1.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringInSlice added in v1.7.0

func StringInSlice(a string, list []string) bool

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(scheme *apiruntime.Scheme, addToSchemeFuncs []func(*apiruntime.Scheme) error)

func (HcCmdHelper) ExitOnError

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

func (HcCmdHelper) InitiateCommand

func (h HcCmdHelper) InitiateCommand()

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

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