Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmdline ¶
type Cmdline struct { sync.Mutex Parameters }
Cmdline represents a set of kernel parameters.
func NewCmdline ¶
NewCmdline initializes and returns a representation of the cmdline values specified by `parameters`. nolint: golint
func NewDefaultCmdline ¶
func NewDefaultCmdline() *Cmdline
NewDefaultCmdline returns a set of kernel parameters that serve as the base for all Talos installations. nolint: golint
func ProcCmdline ¶ added in v0.2.0
func ProcCmdline() *Cmdline
Cmdline returns a representation of /proc/cmdline. nolint: golint
func (*Cmdline) AppendDefaults ¶ added in v0.2.0
func (c *Cmdline) AppendDefaults()
AppendDefaults add the Talos default kernel commandline options to the existing set
func (*Cmdline) Bytes ¶ added in v0.2.0
Bytes returns the byte slice representation of the cmdline struct.
type Parameter ¶
type Parameter struct {
// contains filtered or unexported fields
}
Parameter represents a value in a kernel parameter key-value pair.
func NewParameter ¶
NewParameter initializes and returns a Parameter.
func (*Parameter) First ¶
First attempts to return the first string of a value's internal representation.
type Parameters ¶
type Parameters []*Parameter
Parameters represents /proc/cmdline.
func (Parameters) String ¶
func (p Parameters) String() string
String returns a string representation of all parameters.