Documentation
¶
Overview ¶
Package container contains the logic for creating and entering containers.
Index ¶
- Variables
- func Create(cfg config.Structure, deleteOld bool)
- func Enter(cfg config.Structure, root bool) error
- func FileExists(path string) bool
- func GetFolderFiles(path string) ([]string, error)
- func GetFolderFilesMtch(path string, match string) ([]string, error)
- func InstallAndEnter(cfg config.Structure, root bool) error
- func ReplaceEnvVars(str string) string
- func RunCommandList(name string, commands []string, pman *podman.Podman, root bool, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var PkgVersion = "latest"
PkgVersion specifies the version of develbox (inside the container)
Functions ¶
func FileExists ¶
FileExists checks if a file/path exists using os.Stat()
func GetFolderFiles ¶
GetFolderFiles reads all the names in the a path, and returns them
func GetFolderFilesMtch ¶ added in v0.1.0
GetFolderFilesMtch returns a list of all the files inside a path that match a string
func InstallAndEnter ¶ added in v0.4.0
InstallAndEnter install the packages and runs a shell in the container
func ReplaceEnvVars ¶ added in v0.4.0
ReplaceEnvVars matches any text that starts with "$" and replaces it with the value of the environment variable. If not set, it will return an empty string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.