infraHelper

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: EPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IndexFileTemplatePath string = infraEnvs.VirtualHostsConfDir + "/index.html"
	IndexFilePath         string = infraEnvs.PrimaryVirtualHostPublicDir + "/index.html"
	IndexFileBackupPath   string = infraEnvs.PrimaryVirtualHostPublicDir + "/../index.html.backup"
)

Functions

func BackupPrimaryIndexFile added in v0.2.4

func BackupPrimaryIndexFile() error

func CreateSelfSignedSsl

func CreateSelfSignedSsl(
	dirPath tkValueObject.UnixAbsoluteFilePath,
	vhostHostname tkValueObject.Fqdn,
	aliasesHostname []tkValueObject.Fqdn,
) error

func DnsLookup

func DnsLookup(recordName string, recordType *string) ([]string, error)

func DownloadFile

func DownloadFile(url string, filePath string) error

func GenStrongHash

func GenStrongHash(value string) string

func GenStrongShortHash

func GenStrongShortHash(value string) string

func GenWeakHash

func GenWeakHash(value string) string

func GetAllRegexGroupMatches

func GetAllRegexGroupMatches(input string, regexExpression string) []string

func GetFilePathWithMatch

func GetFilePathWithMatch(dir string, partialMatch string) (string, error)

func GetRegexCapturingGroups

func GetRegexCapturingGroups(input string, regex string) map[string]string

func GetRootDomain

func GetRootDomain(hostname tkValueObject.Fqdn) (tkValueObject.Fqdn, error)

func InstallPkgs

func InstallPkgs(packages []string) error

func IsDevMode added in v0.3.1

func IsDevMode() bool

func IsSilentExitMode added in v0.3.1

func IsSilentExitMode() bool

func RestorePrimaryIndexFile added in v0.2.4

func RestorePrimaryIndexFile() error

func UpdateOwnershipForWebServerUse added in v0.2.0

func UpdateOwnershipForWebServerUse(
	filePath string, isRecursive bool, shouldIncludeSymlink bool,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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