package
0.0.0-20250310040240-6f83902a83f8
Repository: https://github.com/lxc/distrobuilder.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

ApplyFilter returns true if the filter matches.
CaseInsensitive returns case insensive pattern used by filepath.Glob or filepath.Match.
Copy copies a file.
FindAllMatches find all the matched files case insensitive.
FindFirstMatch find the first matched file case insensitive.
GetArch returns the correct architecture name used by the specified distribution.
GetExpiryDate returns an expiry date based on the creationDate and format.
GetLogger returns a new logger.
Pack creates an uncompressed tarball.
PackUpdate updates an existing tarball.
ParseCompression extracts the compression method and level (if any) from the compression flag.
ParseSquashfsCompression extracts the compression method and level (if any) from the compression flag for use with mksquashfs.
RenderTemplate renders a pongo2 template.
Retry retries a function up to <attempts> times.
RsyncLocal copies src to dest using rsync.
RunCommand runs a command.
RunScript runs a script hereby setting the SHELL and PATH env variables, and redirecting the process's stdout and stderr to the real stdout and stderr respectively.
SetEnvVariables sets the provided environment variables and returns the old ones.
SetupChroot sets up mount and files, a reverter and then chroots for you.
Unpack unpacks a tarball.

# Constants

No description provided by the author
No description provided by the author
DefinitionFilterTypeContainer is used for containers.
DefinitionFilterTypeVM is used for VMs.
No description provided by the author
ImageTargetAll is used for all targets.
ImageTargetContainer is used for container targets.
ImageTargetUndefined is used when no type has been specified.
ImageTargetVM is used for VM targets.

# Variables

ActiveChroots is a map of all active chroots and their exit functions.

# Structs

ChrootMount defines mount args.
CustomManagerCmd represents a command for a custom manager.
A Definition a definition.
A DefinitionAction specifies a custom action (script) which is to be run after a certain action.
DefinitionEnv represents the config part of the environment section.
DefinitionEnvVars defines custom environment variables.
A DefinitionFile represents a file which is to be created inside to chroot.
A DefinitionFileTemplate represents the settings used by generators.
A DefinitionFilter defines filters for various actions.
A DefinitionImage represents the image.
DefinitionMappings defines custom mappings.
A DefinitionPackages represents a package handler.
DefinitionPackagesCustomManager represents a custom package manager.
A DefinitionPackagesRepository contains data of a specific repository.
A DefinitionPackagesSet is a set of packages which are to be installed or removed.
A DefinitionSource specifies the download type and location.
A DefinitionTarget specifies target dependent files.
DefinitionTargetIncus represents Incus specific options.
DefinitionTargetIncusVM represents Incus VM specific options.
A DefinitionTargetLXC represents LXC specific files as part of the metadata.
A DefinitionTargetLXCConfig represents the config part of the metadata.
EnvVariable represents a environment variable.

# Interfaces

Filter represents a filter.

# Type aliases

ContextKey type.
DefinitionFilterType represents the filter type.
Environment represents a set of environment variables.
ImageTarget represents the image target.
WriteFunc type.