Documentation
¶
Index ¶
- func Run(f *Finalizer) error
- type Command
- type Finalizer
- func (f *Finalizer) CreatePHPEnvironmentScript() error
- func (f *Finalizer) CreatePHPRuntimeDirectories() error
- func (f *Finalizer) CreatePreprocessScript(opts *options.Options) error
- func (f *Finalizer) CreateStartScript() error
- func (f *Finalizer) ProcessConfigs(opts *options.Options) error
- func (f *Finalizer) SetupProcessTypes() error
- type Manifest
- type Stager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command interface {
Execute(dir string, stdout io.Writer, stderr io.Writer, program string, args ...string) error
}
Command interface abstracts command execution
type Finalizer ¶
type Finalizer struct {
Manifest Manifest
Stager Stager
Command Command
Log *libbuildpack.Logger
Logfile *os.File
Registry *extensions.Registry
}
Finalizer contains the buildpack finalize phase logic
func (*Finalizer) CreatePHPEnvironmentScript ¶
CreatePHPEnvironmentScript creates a .profile.d script to set up PHP environment
func (*Finalizer) CreatePHPRuntimeDirectories ¶
CreatePHPRuntimeDirectories creates directories needed by PHP-FPM at runtime
func (*Finalizer) CreatePreprocessScript ¶
CreatePreprocessScript creates a .profile.d script to run ADDITIONAL_PREPROCESS_CMDS This matches v4.x behavior where preprocess commands run via .profile.d with $HOME=/home/vcap (not /home/vcap/app as in the start script)
SECURITY NOTE: ADDITIONAL_PREPROCESS_CMDS executes arbitrary shell commands provided by the application. This is intentional for v4.x compatibility (e.g., running database migrations, sourcing bootstrap scripts).
func (*Finalizer) CreateStartScript ¶
CreateStartScript creates the start script for the application
func (*Finalizer) ProcessConfigs ¶
ProcessConfigs replaces build-time placeholders in all config files
func (*Finalizer) SetupProcessTypes ¶
SetupProcessTypes creates the process types for the application
type Manifest ¶
type Manifest interface {
IsCached() bool
AllDependencyVersions(depName string) []string
DefaultVersion(depName string) (libbuildpack.Dependency, error)
}
Manifest interface abstracts buildpack manifest operations