# Packages
Package v1config defines the configuration file and provides functions to read and write it
This is the old version of the config file, which is now deprecated in favor of the new version (v2 at time of writing).
# Functions
CheckDocker checks if we only have docker installed and if so, it sets the container engine to docker.
ConvertFromV1 converts a v1 config file to a v2 config file.
Exists checks if the config file exists.
FileExists checks if a file exists.
GetContainerTool returns if we should use podman or docker.
GetCurrentDirectory returns the current directory.
GetDirNmHash returns a hash made using the current directory's name.
GetPathHash returns a hash made using the provided path.
Read reads the config file and returns the Struct.
ReadBytes parses bytes and returns the Struct
It converts the v1 config file to the v2 config file if it detects a v1 config file.
ReadFile reads the config file from a path and returns the Struct
It converts the v1 config file to the v2 config file if it detects a v1 config file.
SetDefaults sets the default values for the configuration.
SetName sets the name of the container.
Write writes the config file.
WriteNewVersion writes the new version of the config file.
# Structs
Binds is a list of bind mounts.
Container is the struct for the container configuration.
Image contains the information for the image.
Operations is a list of pkgm that can be performed on a container.
PackageManager is the configuration for the package manager.
Podman is the struct for the podman configuration.
Structure is the main configuration struct.