sysext

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultAllowListRegex = regexp.MustCompile(`^usr/*|^/usr/*|^etc/*|^/etc/*`)

DefaultAllowListRegex provided for easy use of defaults for confext and sysext

View Source
var ErrorImageNoLayers = errors.New("image")

Functions

func ExtractFilesFromLastLayer

func ExtractFilesFromLastLayer(image v1.Image, dst string, log types.KairosLogger, allowList *regexp.Regexp) error

ExtractFilesFromLastLayer will get an image and a destination and extract the files from the last layer in the image into that destination. It will skip anything that doesn't start with /usr or /etc as its purpose is to get the files for creating a sysextension or a confextension Accepts an allowList in form of regexp.Regexp that will match the files and allow copying

Types

This section is empty.

Jump to

Keyboard shortcuts

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