Documentation
¶
Index ¶
- Constants
- type Params
- func (k Params) Exists(key string) bool
- func (k Params) Get(key string) ([]string, bool)
- func (k Params) GetOne(key string) (string, bool)
- func (k Params) GetVersion() string
- func (k Params) IsDebug() bool
- func (k Params) IsGPUDisabled() bool
- func (k Params) IsLight() bool
- func (k Params) IsV3() bool
- func (k Params) IsV3Light() bool
- func (k Params) IsV4() bool
- func (k Params) IsVirtualMachine() bool
Constants ¶
View Source
const ( // Debug means zos is running in debug mode // applications can handle this flag differently Debug = "zos-debug" // VirtualMachine forces zos to think it's running // on a virtual machine. used mainly for development VirtualMachine = "zos-debug-vm" // if disable-gpu flag is provided gpu feature will be disabled on that node DisableGPU = "disable-gpu" // This allows the node to work without ssd disk. If ssd disk is available // it will still be preferred for workloads. Otherwise fall back on HDD MissingSSD = "missing-ssd" // Light means zos is running in light mode Light = "light" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Params ¶
Params represent the parameters passed to the kernel at boot
func (Params) Get ¶
Get returns the values link to a key and a boolean boolean if true when the key exists in the params or false otherwise a nil list, and a true will be returned if the `key` is set in kernel params, but with no associated value
func (Params) GetOne ¶
GetOne gets a single value for given key. If key is provided multiple times in the cmdline, the last one is used. If key does not exist, or has no associated value, a false is returned
func (Params) GetVersion ¶ added in v0.1.1
getVersion checks if node is running version 4
func (Params) IsGPUDisabled ¶
GPUDisabled checks if gpu is diabled
func (Params) IsVirtualMachine ¶
IsVirtualMachine checks if zos-debug-vm is set
Click to show internal directories.
Click to hide internal directories.