ospkg

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultOutName = "system-transparency-os-package"

Variables

View Source
var ErrInvalidSuffix = errors.New("invalid file extension")

Functions

func Create

func Create(args *CreateArgs) error

Create will create a new OS package using the stboot/ospkg package. If no errors occur, it will be written to disk using the provided path or default values.

func Sign

func Sign(keyPath, certPath, pkgPath string) error

Sign will sign an OS package using the provided path of the private ed25519 key and corresponding certificate.

Types

type CreateArgs

type CreateArgs struct {
	OutPath   string
	Label     string
	URL       string
	Kernel    string
	Initramfs string
	Cmdline   string
}

Jump to

Keyboard shortcuts

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