Documentation ¶
Index ¶
- func CopyFile(srcPath string, dstPath string) error
- func CreateSelfSignedSsl(dirPath string, vhostName string, aliasesHostname []string) error
- func CreateSymlink(sourcePath string, targetPath string, shouldOverwrite bool) error
- func DecryptStr(secretKey, encryptedText string) (decryptedText string, err error)
- func DnsLookup(recordName string, recordType *string) ([]string, error)
- func DownloadFile(url string, filePath string) error
- func EncryptStr(secretKey, plainText string) (encryptedText string, err error)
- func FileExists(filePath string) bool
- func FileSerializedDataToMap(filePath valueObject.UnixFilePath) (outputMap map[string]interface{}, err error)
- func GenPass(length int) string
- func GenStrongHash(value string) string
- func GenStrongShortHash(value string) string
- func GenWeakHash(value string) string
- func GetAllRegexGroupMatches(input string, regexExpression string) []string
- func GetFileContent(filePath string) (string, error)
- func GetFilePathWithMatch(dir string, partialMatch 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 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 ReadServerPublicIpAddress() (ipAddress valueObject.IpAddress, err error)
- func ReloadWebServer() error
- func RemoveSymlink(symlinkPath 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
- func UpdatePermissionsForWebServerUse(filePath string, isRecursive bool, shouldIncludeSymlink bool) error
- func ValidateWebServerConfig() error
- type CommandError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSelfSignedSsl ¶
func CreateSymlink ¶
func DecryptStr ¶ added in v0.1.2
func DownloadFile ¶
func EncryptStr ¶ added in v0.1.2
func FileExists ¶
func FileSerializedDataToMap ¶ added in v0.1.5
func FileSerializedDataToMap( filePath valueObject.UnixFilePath, ) (outputMap map[string]interface{}, err error)
func GenStrongHash ¶
func GenStrongShortHash ¶
func GenWeakHash ¶
func GetAllRegexGroupMatches ¶
func GetFileContent ¶
func GetFilePathWithMatch ¶
func GetPrimaryVirtualHost ¶
func GetPrimaryVirtualHost() (valueObject.Fqdn, error)
func GetRegexCapturingGroups ¶
func GetRootDomain ¶
func GetRootDomain(hostname valueObject.Fqdn) (valueObject.Fqdn, error)
func InstallPkgs ¶
func IsPrimaryVirtualHost ¶
func IsPrimaryVirtualHost(vhost valueObject.Fqdn) bool
func IsSymlinkTo ¶
func ReadServerPublicIpAddress ¶
func ReadServerPublicIpAddress() (ipAddress valueObject.IpAddress, err error)
func ReloadWebServer ¶
func ReloadWebServer() error
func RemoveSymlink ¶
func RunCmdWithSubShell ¶
func ValidateWebServerConfig ¶
func ValidateWebServerConfig() error
Types ¶
type CommandError ¶
func (*CommandError) Error ¶
func (e *CommandError) Error() string
Source Files ¶
- copyFile.go
- createSelfSignedSsl.go
- dnsLookup.go
- downloadFile.go
- encryptDecryptStr.go
- fileExists.go
- fileSerializedDataToMap.go
- genHash.go
- genPass.go
- getAllRegexGroupMatches.go
- getFileContent.go
- getFilePathWithMatch.go
- getPrimaryVirtualHost.go
- getRegexCapturingGroups.go
- getRootDomain.go
- installPkgs.go
- isPrimaryVirtualHost.go
- makeDir.go
- readServerPublicIpAddress.go
- reloadWebServer.go
- runCmd.go
- symlink.go
- updateFile.go
- updatePermissionsForWebServerUse.go
- validateWebServerConfig.go
Click to show internal directories.
Click to hide internal directories.