helper

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

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)
)

Variables

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

Functions

func ResolveBoolWithDefault

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

type Debug8 struct {
	Logger bard.Logger
}

func (Debug8) Execute

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

type Debug9

type Debug9 struct {
	Logger bard.Logger
}

func (Debug9) Execute

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

type JFR

type JFR struct {
	Logger bard.Logger
}

func (JFR) Execute

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

type JMX

type JMX struct {
	Logger bard.Logger
}

func (JMX) Execute

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

type JVMHeapDump

type JVMHeapDump struct {
	Logger bard.Logger
}

func (JVMHeapDump) Execute

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

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

func (MemoryCalculator) Execute

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

type NMT

type NMT struct {
	Logger bard.Logger
}

func (NMT) Execute

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