k8sworker

package
v0.18.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close undoes any changes to GoMaxProcs.

Types

type K8sConfig

type K8sConfig struct {
	GoMaxProcs int

	GoMemLimit int64

	GoVersion string
}

K8sConfig sets the cpu and memory

go configuration for kubernetes.

func NewK8Config

func NewK8Config(opts ...K8sOption) (*K8sConfig, error)

type K8sOption

type K8sOption func(*K8sOptions)

func WithLogger

func WithLogger(logger func(string, ...any)) K8sOption

WithLogger sets the optional logger for goMaxProcs

type K8sOptions

type K8sOptions struct {
	// contains filtered or unexported fields
}

func ParseOptions

func ParseOptions(options ...K8sOption) K8sOptions

ParseOptions parses the given options into a K8sOptions struct

Jump to

Keyboard shortcuts

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