flags

package
v0.5.40 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NumaNodeSeparator         = "/"
	NumaConfSeparator         = ":"
	NumaResourceSeparator     = ","
	NumaResourceConfSeparator = "="

	StringSeparator = ","
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ReservedMemoryVar

type ReservedMemoryVar struct {
	Value *[]native.MemoryReservation
	// contains filtered or unexported fields
}

ReservedMemoryVar is used for validating a command line option that represents a reserved memory. It implements the pflag.Value interface

func (*ReservedMemoryVar) Set

func (v *ReservedMemoryVar) Set(s string) error

Set sets the flag value The flag configuration is like "--reserved-memory 0:memory=1Gi,hugepages-1M=2Gi/1:memory=2Gi"

func (*ReservedMemoryVar) String

func (v *ReservedMemoryVar) String() string

String returns the flag value

func (*ReservedMemoryVar) Type

func (v *ReservedMemoryVar) Type() string

Type gets the flag type

Jump to

Keyboard shortcuts

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