Documentation
¶
Index ¶
- Constants
- func NewBuildOS() buildos.BuildOS
- type BuildOS
- func (*BuildOS) ExecAndDeleteScriptCommand(script string, args ...string) string
- func (*BuildOS) GetCreateNewUserScript() string
- func (*BuildOS) GetHomeDir(buildUser string) string
- func (*BuildOS) GetScriptName(basefile string) string
- func (*BuildOS) GetSuperUser() string
- func (*BuildOS) GetUserDetails(user string) string
- func (*BuildOS) RestoreTarFile(tarFile string, directory string) string
- func (*BuildOS) SourceEnvFile(envFile string) string
Constants ¶
View Source
const CreateLinuxUserScript = `` /* 709-byte string literal not displayed */
CreateLinuxUserScript is a generic script to create user and group across all distributions of Linux
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildOS ¶
type BuildOS struct {
}
func (*BuildOS) ExecAndDeleteScriptCommand ¶
ExecAndDeleteScriptCommand returns the command to execute a given script and deletes the same
func (*BuildOS) GetCreateNewUserScript ¶
GetCreateNewUserScript returns a script to create a new user
func (*BuildOS) GetHomeDir ¶
GetHomeDir for the given user
func (*BuildOS) GetScriptName ¶ added in v0.1.1
GetScriptName returns the name of the script to run in the operating system
func (*BuildOS) GetSuperUser ¶
GetSuperUser returns the superuser of linux operating system
func (*BuildOS) GetUserDetails ¶ added in v0.2.4
GetUserDetails represents a command to get the details of a given user
func (*BuildOS) RestoreTarFile ¶ added in v0.1.5
RestoreTarFile restores a tar file to a given directory
func (*BuildOS) SourceEnvFile ¶
SourceEnvFile sources a given environment file onto the current shell
Click to show internal directories.
Click to hide internal directories.