Documentation
¶
Overview ¶
Package libuspin provides key utilities in dealing with the USpin configuration formats.
Notably it provides the ImageSpec type, core to the main routines within USpin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotEnoughOps should never, ever happen. So check for it. >_> ErrNotEnoughOps = errors.New("Internal error: 0 args passed to ApplyOperations") // ErrUnknownOperation is returned when we don't know how to handle an operation ErrUnknownOperation = errors.New("Unknown or unsupported operation requested") )
Functions ¶
Types ¶
type ImageSpec ¶
type ImageSpec struct {
Stack *spec.OpStack
Config *config.ImageConfiguration
BaseDir string // Used to join filename paths relative to the .spin file, i.e. packages
}
ImageSpec is a validated/loaded image configuration ready for building
func NewImageSpec ¶
NewImageSpec is a factory function to load a .spin file with it's associated Packages file prepped into a usable stack.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package boot provides implementations to help manage the bootloader setup and installation on various medium types.
|
Package boot provides implementations to help manage the bootloader setup and installation on various medium types. |
|
Package config provides the TOML based configuration format used for the main .spin files
|
Package config provides the TOML based configuration format used for the main .spin files |
|
Package spec contains the specification format and parser for .spin package files
|
Package spec contains the specification format and parser for .spin package files |
Click to show internal directories.
Click to hide internal directories.