container

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(cfg config.Struct, deleteOld bool)

func Enter

func Enter(cfg config.Struct, root bool) error

Runs a shell in the container and creates a pipe for package installations.

func FileExists

func FileExists(path string) bool

Checks if a file/path exists using os.Stat()

func GetFolderFiles

func GetFolderFiles(path string) ([]string, error)

Reads all the names in the a path, and returns them If an item is a folder it will return it like this: "foldername/" instead of "foldername"

func GetFolderFilesMtch added in v0.1.0

func GetFolderFilesMtch(path string, match string) ([]string, error)

Returns a list of all the files inside a path that match a string

Wrapper around GetFolderFiles() that filters the results

func RunCommandList

func RunCommandList(name string, commands []string, pman *podman.Podman, root bool, attach podman.Attach) error

Loops through the commands list and runs each one separately

Types

This section is empty.

Jump to

Keyboard shortcuts

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