helper

package
v1.44.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 19 Imported by: 13

Documentation

Index

Constants

View Source
const (
	ClassLoadFactor          = 0.35
	DefaultHeadroom          = 0
	DefaultMemoryLimitPathV1 = "/sys/fs/cgroup/memory/memory.limit_in_bytes"
	DefaultMemoryLimitPathV2 = "/sys/fs/cgroup/memory.max"
	DefaultMemoryInfoPath    = "/proc/meminfo"
	DefaultThreadCount       = 250
	MaxJVMSize               = 64 * calc.Tebi
	UnsetTotalMemory         = int64(9_223_372_036_854_771_712)
)
View Source
const DefaultIPv6CheckPath = "/sys/module/ipv6/parameters/disable"

Variables

View Source
var TmpTrustStore = filepath.Join(os.TempDir(), "truststore")

Functions

func IPv6Enabled added in v1.44.2

func IPv6Enabled(iPv6CheckPath string) bool

func ResolveBoolWithDefault added in v1.32.0

func ResolveBoolWithDefault(name string, defaultVal bool) bool

ResolveBoolWithDefault TODO - replace calling this with libpak's sherpa.ResolveBoolWithDefault once it is implemented

Types

type ActiveProcessorCount

type ActiveProcessorCount struct {
	Logger bard.Logger
}

func (ActiveProcessorCount) Execute

func (a ActiveProcessorCount) Execute() (map[string]string, error)

type Debug8 added in v1.31.0

type Debug8 struct {
	Logger bard.Logger
}

func (Debug8) Execute added in v1.31.0

func (d Debug8) Execute() (map[string]string, error)

type Debug9 added in v1.31.0

type Debug9 struct {
	Logger              bard.Logger
	CustomIPv6CheckPath string
}

func (Debug9) Execute added in v1.31.0

func (d Debug9) Execute() (map[string]string, error)

type JFR added in v1.32.0

type JFR struct {
	Logger bard.Logger
}

func (JFR) Execute added in v1.32.0

func (j JFR) Execute() (map[string]string, error)

type JMX added in v1.31.0

type JMX struct {
	Logger bard.Logger
}

func (JMX) Execute added in v1.31.0

func (j JMX) Execute() (map[string]string, error)

type JVMHeapDump added in v1.29.0

type JVMHeapDump struct {
	Logger bard.Logger
}

func (JVMHeapDump) Execute added in v1.29.0

func (a JVMHeapDump) Execute() (map[string]string, error)

type JavaOpts

type JavaOpts struct {
	Logger bard.Logger
}

func (JavaOpts) Execute

func (j JavaOpts) Execute() (map[string]string, error)

type LinkLocalDNS

type LinkLocalDNS struct {
	Config *dns.ClientConfig
	Logger bard.Logger
}

func (LinkLocalDNS) Execute

func (l LinkLocalDNS) Execute() (map[string]string, error)

type MemoryCalculator

type MemoryCalculator struct {
	Logger            bard.Logger
	MemoryLimitPathV1 string
	MemoryLimitPathV2 string
	MemoryInfoPath    string
}

func (MemoryCalculator) CountAgentClasses added in v1.36.2

func (m MemoryCalculator) CountAgentClasses(opts string) (int, error)

func (MemoryCalculator) Execute

func (m MemoryCalculator) Execute() (map[string]string, error)

type NMT added in v1.31.0

type NMT struct {
	Logger bard.Logger
}

func (NMT) Execute added in v1.31.0

func (n NMT) Execute() (map[string]string, error)

type OpenSSLCertificateLoader

type OpenSSLCertificateLoader struct {
	CertificateLoader libjvm.CertificateLoader
	Logger            bard.Logger
}

func (OpenSSLCertificateLoader) Execute

func (o OpenSSLCertificateLoader) Execute() (map[string]string, error)

type SecurityProvidersClasspath8

type SecurityProvidersClasspath8 struct {
	Logger bard.Logger
}

func (SecurityProvidersClasspath8) Execute

func (s SecurityProvidersClasspath8) Execute() (map[string]string, error)

type SecurityProvidersClasspath9

type SecurityProvidersClasspath9 struct {
	Logger bard.Logger
}

func (SecurityProvidersClasspath9) Execute

func (s SecurityProvidersClasspath9) Execute() (map[string]string, error)

type SecurityProvidersConfigurer

type SecurityProvidersConfigurer struct {
	Logger bard.Logger
}

func (SecurityProvidersConfigurer) Execute

func (s SecurityProvidersConfigurer) Execute() (map[string]string, error)

Jump to

Keyboard shortcuts

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