libuspin

package
v0.0.0-...-7c0940c Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

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

func ApplyOperations

func ApplyOperations(manager pkg.Manager, ops []spec.Operation) error

ApplyOperations will apply the given spec operations against the package manager instance

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

func NewImageSpec(spinFile string) (*ImageSpec, error)

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

Jump to

Keyboard shortcuts

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