Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.0.0-...-3d357ff Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyConfigFile

func CopyConfigFile(configPath, destPath string) error

CopyConfigFile copies a single config file from embedded FS to destination with optional variable substitution

func CopyWithSubstitution

func CopyWithSubstitution(src io.Reader, dest io.Writer, vars map[string]string) error

CopyWithSubstitution copies a file and performs variable substitution

func ExtractConfig

func ExtractConfig(configType, destDir string) error

ExtractConfig extracts a specific config directory (httpd, nginx, or php) to the destination

func ExtractDefaults

func ExtractDefaults(destDir string) error

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

func GetOptionsJSON() ([]byte, error)

GetOptionsJSON returns the default options.json content

func ListConfigFiles

func ListConfigFiles(configType string) ([]string, error)

ListConfigFiles returns a list of all files in a specific config directory

func OpenConfigFile

func OpenConfigFile(configPath string) (fs.File, error)

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

func ReadConfigFile(configPath string) ([]byte, error)

ReadConfigFile reads a single config file from the embedded FS

Types

This section is empty.

Jump to

Keyboard shortcuts

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