standardflags

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Overview

Package standardflags contains flags that multiple CSI sidecars and drivers may want to support.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAutomaxprocs

func AddAutomaxprocs(printf func(format string, args ...interface{}))

AddAutomaxprocs adds the -automaxprocs boolean flag to the commandline options. By default the flag is disabled, use EnableAutomaxprocs to enable it during startup of an application.

The printf function that is passed as an argument, will be used by the maxprocs.Logger option when the GOMAXPROCS runtime configuration is adjusted.

func EnableAutomaxprocs

func EnableAutomaxprocs()

EnableAutomaxprocs can be used as an equivalent of -automaxprocs=true on the commandline.

Types

This section is empty.

Jump to

Keyboard shortcuts

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