kconfig

package
v0.0.0-...-4a34186 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package main implements the core logic of running composable Dagger pipelines via GitHub Actions. Currently supported are coreboot and Linux pipelines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kconfig

type Kconfig map[string]string

Kconfig holds the same information as a linux 'defconfig' or '.config' file

func NewKconfig

func NewKconfig(c string) (*Kconfig, error)

NewKconfig generates a Kconfig object from text file Keys that are "not set" have the '# ' prefix and the value 'isNotSet'

func NewKconfigFromIoReader

func NewKconfigFromIoReader(r io.Reader) (*Kconfig, error)

func (*Kconfig) EvalPath

func (c *Kconfig) EvalPath(p string) string

EvalPath replaces "$key" and "$(key)" in the input argument with the corresponding value

func (Kconfig) KeyIsNotSet

func (c Kconfig) KeyIsNotSet(k string) bool

KeyIsNotSet returns true if the key "is not set" It returns false if the key is set or doesn't exist

func (*Kconfig) String

func (c *Kconfig) String() string

String generates a multiline representation as this would be a defconfig or .config file

func (*Kconfig) UnsetKey

func (c *Kconfig) UnsetKey(k string)

UnsetKey marks the key as "is not set"

func (Kconfig) Value

func (c Kconfig) Value(k string) (string, error)

Value returns the value of key. If key isn't found or the entry is "is not set" this functions returns an error

Jump to

Keyboard shortcuts

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