package
0.0.0-20250312152250-ea85ec9d2454
Repository: https://github.com/snapcore/snapd.git
Documentation: pkg.go.dev

# Functions

KernelCommandLine returns the command line reported by the running kernel.
KeyValues returns a map of the specified keys to the values set for them in the kernel command line (eg.
MockProcCmdline overrides the path to /proc/cmdline.
This constructor is needed mainly for test instead of unmarshaling from yaml.
This constructor is needed mainly for test instead of unmarshaling from yaml.
No description provided by the author
Parse parses a kernel command line, returning a slice with the arguments in the same order as in cmdline.
RemoveMatchingFilter parses a kernel command line and remove arguments that matches match patterns.
Split tries to split the string comprising full or a part of a kernel command line into a list of individual arguments.

# Structs

Argument represents a parsed kernel argument.
ArgumentPattern represents a pattern which can match a Argument This is intended to be used with Matcher.
Matcher matches a Argument with multiple ArgumentPatterns.