operator

package
v0.0.0-...-503c688 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0, Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefineFlagsForPauseGcConfig

func DefineFlagsForPauseGcConfig(f *pflag.FlagSet)

func PauseGCAndScheduler

func PauseGCAndScheduler(ctx context.Context, cfg *PauseGcConfig) error

PauseGCAndScheduler blocks the current goroutine and pause the GC safepoint and remove the scheduler by the config. This function will block until the context being canceled.

Types

type PauseGcConfig

type PauseGcConfig struct {
	task.Config

	SafePoint uint64        `json:"safepoint" yaml:"safepoint"`
	TTL       time.Duration `json:"ttl" yaml:"ttl"`
}

func (*PauseGcConfig) ParseFromFlags

func (cfg *PauseGcConfig) ParseFromFlags(flags *pflag.FlagSet) error

ParseFromFlags fills the config via the flags.

Jump to

Keyboard shortcuts

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