Documentation
¶
Index ¶
- func CopyConfigFile(configPath, destPath string) error
- func CopyWithSubstitution(src io.Reader, dest io.Writer, vars map[string]string) error
- func ExtractConfig(configType, destDir string) error
- func ExtractDefaults(destDir string) error
- func GetOptionsJSON() ([]byte, error)
- func ListConfigFiles(configType string) ([]string, error)
- func OpenConfigFile(configPath string) (fs.File, error)
- func ProcessPhpIni(phpIniPath string, phpInstallDir string, phpExtensions []string, ...) error
- func ReadConfigFile(configPath string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyConfigFile ¶
CopyConfigFile copies a single config file from embedded FS to destination with optional variable substitution
func CopyWithSubstitution ¶
CopyWithSubstitution copies a file and performs variable substitution
func ExtractConfig ¶
ExtractConfig extracts a specific config directory (httpd, nginx, or php) to the destination
func ExtractDefaults ¶
ExtractDefaults extracts all embedded default config files to the specified destination directory. This is used during buildpack execution to populate configuration files for httpd, nginx, and PHP.
func GetOptionsJSON ¶
GetOptionsJSON returns the default options.json content
func ListConfigFiles ¶
ListConfigFiles returns a list of all files in a specific config directory
func OpenConfigFile ¶
OpenConfigFile opens a config file from the embedded FS for reading
func ProcessPhpIni ¶
func ProcessPhpIni( phpIniPath string, phpInstallDir string, phpExtensions []string, zendExtensions []string, additionalReplacements map[string]string, logWarning func(string, ...interface{}), ) error
ProcessPhpIni processes php.ini file by validating extensions and replacing placeholders
func ReadConfigFile ¶
ReadConfigFile reads a single config file from the embedded FS
Types ¶
This section is empty.