command

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProgramName = "dramemory"
)

Variables

This section is empty.

Functions

func Inspect

func Inspect(params Params, logger logr.Logger) error

func MakeLogger

func MakeLogger(setupLogger logr.Logger) (logr.Logger, error)

func MakeManifests

func MakeManifests(params Params, logger logr.Logger) error

func RunDaemon

func RunDaemon(ctx context.Context, params Params, drvLogger logr.Logger) error

func Validate

func Validate(params Params, setupLogger logr.Logger) error

Types

type HugePageAmounts

type HugePageAmounts = ghwmemory.HugePageAmounts

type InspectMode

type InspectMode int
const (
	InspectNone InspectMode = iota
	InspectRaw
	InspectSummary
)

type InspectValue

type InspectValue struct {
	Mode *InspectMode
}

func (InspectValue) Set

func (v InspectValue) Set(s string) error

func (InspectValue) String

func (v InspectValue) String() string

type Params

type Params struct {
	HostnameOverride string
	Kubeconfig       string
	BindAddress      string
	ProcRoot         string
	SysRoot          string
	CgroupMount      string
	DoValidation     bool
	DoManifests      bool
	DoVersion        bool
	InspectMode      InspectMode
}

func DefaultParams

func DefaultParams() Params

func (*Params) DumpFlags

func (par *Params) DumpFlags(lh logr.Logger)

func (*Params) InitFlags

func (par *Params) InitFlags()

func (*Params) ParseFlags

func (par *Params) ParseFlags()

type SysinfoDiscovererFunc

type SysinfoDiscovererFunc func() (sysinfo.MachineData, error)

func (SysinfoDiscovererFunc) Discover

type SysinfoVerifierFunc

type SysinfoVerifierFunc func() error

func (SysinfoVerifierFunc) Validate

func (f SysinfoVerifierFunc) Validate() error

type Version

type Version struct {
	Golang string
	Build  string
}

func GetVersion

func GetVersion() (Version, bool)

Jump to

Keyboard shortcuts

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