Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildOS ¶
type BuildOS interface { // GetCreateNewUserScript returns a script to create a new user GetCreateNewUserScript() string // GetScriptName returns the script name GetScriptName(basefile string) string // ExecAndDeleteScriptCommand returns the command to execute a given script and delete the same ExecAndDeleteScriptCommand(script string, args ...string) string // GetHomeDir returns the home directory for the given user GetHomeDir(buildUser string) string // GetSuperUser returns the name of the superuser as used in the dockerfile for the platform GetSuperUser() string // SourceEnvFile sources a given environment file onto the current shell SourceEnvFile(envFile string) string // RestoreTarFile restores a tar file to a given directory RestoreTarFile(tarFile string, directory string) string // GetUserDetails represents a command to get the details of a given user GetUserDetails(user string) string }
BuildOS contains the abstractions specific to OS
Click to show internal directories.
Click to hide internal directories.