kernel

package
v0.0.0-...-1a99902 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(kernelRoot string) error

Validate checks whether the given directory contains valid kernel snap metadata and a matching content.

Types

type Asset

type Asset struct {
	Edition edition.Number `yaml:"edition,omitempty"`
	Content []string       `yaml:"content,omitempty"`
}

type Info

type Info struct {
	Assets map[string]*Asset `yaml:"assets,omitempty"`
}

func InfoFromKernelYaml

func InfoFromKernelYaml(kernelYaml []byte) (*Info, error)

InfoFromKernelYaml reads the provided kernel metadata.

func ReadInfo

func ReadInfo(kernelSnapRootDir string) (*Info, error)

ReadInfo reads the kernel specific metadata from meta/kernel.yaml in the snap root directory if the file exists.

Jump to

Keyboard shortcuts

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