filemap

package
v1.7.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package filemap provides a way to create reproducible layers from a file system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Layer

func Layer(filemap []File) (v1.Layer, error)

Layer creates a layer from a single file map.

These layers are reproducible and consistent.

A filemap is a path -> file content map representing a file system.

Types

type File

type File struct {
	ImagePath  string
	SourcePath string
}

File is a path -> file content map representing a file system.

func Walk added in v1.6.0

func Walk(sourceBasePath, imageBasePath string) ([]File, error)

Walk the filesystem generating a filemap.

Jump to

Keyboard shortcuts

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