kernel

package
v0.0.0-...-05f81da Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	Add    []string // Add is the set of arguments to be added
	Remove []string // Remove is the set of arguments to be removed
}

Arguments defines the set of arguments to be added and/or removed from the list of kernel comand line arguments

type Kernel

type Kernel struct {
	Bundle string // Bundle is the bundle name containing this kernel
	Name   string // Name the bundle name for a given kernel
	Desc   string // Desc is the kernel description
	// contains filtered or unexported fields
}

Kernel describes a linux kernel to be installed

func LoadKernelList

func LoadKernelList() ([]*Kernel, error)

LoadKernelList loads the kernel definitions

func LoadKernelListChroot

func LoadKernelListChroot(pathPrefix string) ([]*Kernel, error)

LoadKernelListChroot loads the kernel definitions within the specified chroot

func (*Kernel) Equals

func (k *Kernel) Equals(comp *Kernel) bool

Equals compares tow Kernels instances

func (*Kernel) IsUserDefined

func (k *Kernel) IsUserDefined() bool

IsUserDefined returns true if the configuration was interactively defined by the user

func (*Kernel) MarshalYAML

func (k *Kernel) MarshalYAML() (interface{}, error)

MarshalYAML marshals Kernel into YAML format

func (*Kernel) UnmarshalYAML

func (k *Kernel) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML unmarshals Kernel from YAML format

Jump to

Keyboard shortcuts

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