filemap

package
v1.6.8 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 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