initrd

package
v0.4.1-100-g44fbd19 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const InputDelimeter = ":"

Variables

View Source
var NameToType = map[string]InitrdFormat{
	"odc":   ODC,
	"newc":  NEWC,
	"ustar": USTAR,
}

Functions

This section is empty.

Types

type InitrdConfig

type InitrdConfig struct {
	Output     string       `yaml:",omitempty" json:"output,omitempty"`
	Input      []string     `yaml:",omitempty" json:"input,omitempty"`
	Format     InitrdFormat `yaml:",omitempty" json:"format,omitempty"`
	Compress   bool         `yaml:",omitempty" json:"compress,omitempty"`
	WorkingDir string
	OutDir     string
}

func ParseInitrdConfig

func ParseInitrdConfig(workdir string, value string) (*InitrdConfig, error)

ParseInitrdConfig parse short syntax for architecture configuration

func (*InitrdConfig) NewReader

func (i *InitrdConfig) NewReader(w io.Reader) (*cpio.Reader, error)

func (*InitrdConfig) NewWriter

func (i *InitrdConfig) NewWriter(w io.Writer) (*cpio.Writer, error)

func (*InitrdConfig) RelativePath

func (i *InitrdConfig) RelativePath(path string) string

RelativePath resolve a relative path based the working directory

type InitrdFormat

type InitrdFormat int
const (
	ODC InitrdFormat = iota
	NEWC
	USTAR
)

func (InitrdFormat) String

func (d InitrdFormat) String() string

Jump to

Keyboard shortcuts

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