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.
Click to show internal directories.
Click to hide internal directories.