Documentation ¶
Index ¶
- func CopyFile(srcPath string, dstPath string) error
- func CreateSelfSignedSsl(dirPath string, virtualHost string) error
- func CreateSymlink(sourcePath string, targetPath string, shouldOverwrite bool) error
- func DownloadFile(url string, filePath string) error
- func FileExists(filePath string) bool
- func GenPass(length int) string
- func GetAllRegexGroupMatches(input string, regexExpression string) ([]string, error)
- func GetFileContent(filePath string) (string, error)
- func GetFilePathWithMatch(dir string, partialMatch string) (string, error)
- func GetOsRelease() (string, error)
- func GetPkgLatestVersion(pkgName string, majorVersion *string) (string, error)
- func GetPrimaryVirtualHost() (valueObject.Fqdn, error)
- func GetRegexCapturingGroups(input string, regex string) map[string]string
- func GetRootDomain(hostname valueObject.Fqdn) (valueObject.Fqdn, error)
- func GetRuntimeContext() (valueObject.RuntimeContext, error)
- func InstallPkgs(packages []string) error
- func IsPrimaryVirtualHost(vhost valueObject.Fqdn) bool
- func IsSymlink(sourcePath string) bool
- func IsSymlinkTo(sourcePath string, targetPath string) bool
- func MakeDir(dirPath string) error
- func RunCmd(command string, args ...string) (string, error)
- func RunCmdWithSubShell(command string) (string, error)
- func UpdateFile(filePath string, content string, shouldOverwrite bool) error
- type CommandError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSelfSignedSsl ¶
func CreateSymlink ¶
func DownloadFile ¶
func FileExists ¶
func GetAllRegexGroupMatches ¶
func GetFileContent ¶
func GetFilePathWithMatch ¶
func GetOsRelease ¶
func GetPkgLatestVersion ¶
func GetPrimaryVirtualHost ¶
func GetPrimaryVirtualHost() (valueObject.Fqdn, error)
func GetRegexCapturingGroups ¶
func GetRootDomain ¶
func GetRootDomain(hostname valueObject.Fqdn) (valueObject.Fqdn, error)
func GetRuntimeContext ¶
func GetRuntimeContext() (valueObject.RuntimeContext, error)
func InstallPkgs ¶
func IsPrimaryVirtualHost ¶
func IsPrimaryVirtualHost(vhost valueObject.Fqdn) bool
func IsSymlinkTo ¶
func RunCmdWithSubShell ¶
Types ¶
type CommandError ¶
func (*CommandError) Error ¶
func (e *CommandError) Error() string
Source Files ¶
- copyFile.go
- createSelfSignedSsl.go
- createSymlink.go
- downloadFile.go
- fileExists.go
- genPass.go
- getAllRegexGroupMatches.go
- getFileContent.go
- getFilePathWithMatch.go
- getOsRelease.go
- getPkgLatestVersion.go
- getPrimaryVirtualHost.go
- getRegexCapturingGroups.go
- getRootDomain.go
- getRuntimeContext.go
- installPkgs.go
- isPrimaryVirtualHost.go
- isSymlink.go
- makeDir.go
- runCmd.go
- updateFile.go
Click to show internal directories.
Click to hide internal directories.