package
1.6.3
Repository: https://github.com/devfile/alizer.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ConvertPropertiesFileAsPathToMap fetches a file from a given path and transforms it into a map.
ConvertPropertiesFileAsPathToMap transforms a slice of bytes it into a map.
FindAllPortsSubmatch returns a slice of port int values, matching a regex inside a given text.
FindPortSubMatch returns a port number in case it finds one for a given regex group.
FindPotentialPortGroup returns a placeholder for port if is found.
GenerateApplicationFileFromFilters generates a slice of model.ApplicationFileInfo from a given list of files and the root path of a component.
GenLogger: Generates the logger with the given zapcore.Level.
GetAnyApplicationFilePath returns the location of a file if it exists in the directory and the given file name is a substring.
GetAnyApplicationFilePathExactMatch returns the location of a file if it exists in the directory and matches the given file name.
GetApplicationFileBytes returns a slice of bytes of a file if it exists in the directory and the given file name is a substring.
GetApplicationFileContents returns a slice of strings for all file contents found for a given slice of ApplicationFileInfo.
GetApplicationFileInfo returns an item from a slice of applicationFileInfos if it matches the given filename.
No description provided by the author
GetComposerJsonSchemaFromFile returns the composer.json found in the path.
GetEnvVarPortValueFromDockerfile gets port value defined as env vars.
GetEnvVarsFromDockerFile returns a slice of env vars from Dockerfiles in the given directory.
GetFile returns the first match where the wantedFile is in a filePaths path.
GetFilePathsFromRoot walks the file tree starting from root and returns a slice of all file paths found.
GetFilePathsInRoot returns a slice of all files in the root.
GetFilesByRegex returns a slice of file paths from filePaths if the file name matches the regex.
GetLocations returns a list of file paths representing common locations where Dockerfiles might be found within the specified 'root' directory and one level down.
GetOrCreateLogger: Checks if the CliLogger is already created, otherwise it creates it with errorLevel.
GetPackageJsonSchemaFromFile returns the package.json found in the path.
GetPomFileContent returns the pom found in the path.
GetPortValueFromEnvFile returns the first port value of a slice of port values declared from env var files.
GetPortValuesFromEnvFile returns all port values found inside an env var file.
GetStringValueFromEnvFile returns port values as string from env file.
GetValidPort checks if a string is a valid port and returns the port.
GetValidPorts returns a slice of valid ports.
GetValidPortsFromEnvs returns a slice of valid ports from a dockerfile.
GetValidPortsFromEnvs returns a slice of valid ports.
IsPathOfWantedFile checks if the file is in the path.
IsTagInComposerJsonFile checks if the file is a composer.json and contains the tag.
IsTagInFile checks if the file contains the tag.
IsTagInPackageJsonFile checks if the file is a package.json and contains the tag.
IsTagInPomXMLFile checks if a pom file contains the tag.
IsTagInPomXMLFileArtifactId checks if a pom file contains the artifactId.
IsValidPort checks if an integer is a valid port.
NormalizeSplit splits a filepath into dir and filename.
No description provided by the author
No description provided by the author
No description provided by the author
ReadAnyApplicationFileExactMatch returns a byte slice if the exact given file exists in the directory.
ReadPortsFromDockerfile returns a slice of port numbers.
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

No description provided by the author