Documentation
¶
Index ¶
- Constants
- func WriteOptionsToBuildpackYAML(appRoot string, options Options) error
- type ComposerOptions
- type Contributor
- func (c Contributor) CheckForPythonExtentions() error
- func (c Contributor) Contribute() error
- func (c Contributor) ErrorIfShouldHaveMovedWebFilesToWebDir(options Options) error
- func (c Contributor) ErrorOnCustomServerConfig(serverName string, folderName string, extension string) error
- func (c Contributor) MigrateAdditionalCommands(options Options) error
- func (c Contributor) MigrateExtensions(options Options) error
- func (c Contributor) MigratePHPSnippets(name string, oldSnippetFolder string, newSnippetFolder string, ...) error
- type HTTPDOptions
- type NginxOptions
- type Options
- type PHPOptions
Constants ¶
View Source
const Layer = "php-compat"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ComposerOptions ¶
type ComposerOptions struct {
Version string `json:"COMPOSER_VERSION" yaml:"version,omitempty"`
Path string `yaml:"json_path,omitempty"`
GlobalOptions []string `json:"COMPOSER_INSTALL_GLOBAL" yaml:"install_global,omitempty"`
InstallOptions []string `json:"COMPOSER_INSTALL_OPTIONS" yaml:"install_options,omitempty"`
VendorDirectory string `json:"COMPOSER_VENDOR_DIR" yaml:"vendor_directory,omitempty"`
BinDirectory string `json:"COMPOSER_BIN_DIR" yaml:"-"`
CacheDirectory string `json:"COMPOSER_CACHE_DIR" yaml:"-"`
}
type Contributor ¶
type Contributor struct {
// contains filtered or unexported fields
}
func NewContributor ¶
func NewContributor(context build.Build) (Contributor, bool, error)
func (Contributor) CheckForPythonExtentions ¶ added in v0.0.51
func (c Contributor) CheckForPythonExtentions() error
func (Contributor) Contribute ¶
func (c Contributor) Contribute() error
func (Contributor) ErrorIfShouldHaveMovedWebFilesToWebDir ¶ added in v0.0.3
func (c Contributor) ErrorIfShouldHaveMovedWebFilesToWebDir(options Options) error
func (Contributor) ErrorOnCustomServerConfig ¶
func (c Contributor) ErrorOnCustomServerConfig(serverName string, folderName string, extension string) error
func (Contributor) MigrateAdditionalCommands ¶
func (c Contributor) MigrateAdditionalCommands(options Options) error
func (Contributor) MigrateExtensions ¶
func (c Contributor) MigrateExtensions(options Options) error
func (Contributor) MigratePHPSnippets ¶
type HTTPDOptions ¶
type HTTPDOptions struct {
Version string `json:"HTTPD_VERSION" yaml:"version,omitempty"`
}
type NginxOptions ¶
type NginxOptions struct {
Version string `json:"NGINX_VERSION" yaml:"version,omitempty"`
}
type Options ¶
type Options struct {
HTTPD HTTPDOptions `yaml:"httpd"`
PHP PHPOptions `yaml:"php"`
Nginx NginxOptions `yaml:"nginx"`
Composer ComposerOptions `yaml:"composer"`
}
func LoadOptionsJSON ¶
LoadOptionsJSON loads the options.json file from disk
type PHPOptions ¶
type PHPOptions struct {
WebServer string `json:"WEB_SERVER" yaml:"webserver,omitempty"`
Version string `json:"PHP_VERSION" yaml:"version,omitempty"`
AdminEmail string `json:"ADMIN_EMAIL" yaml:"serveradmin,omitempty"`
AppStartCommand string `json:"APP_START_CMD" yaml:"script,omitempty"`
WebDir string `json:"WEBDIR" yaml:"webdirectory,omitempty"`
LibDir string `json:"LIBDIR" yaml:"libdirectory,omitempty"`
Extensions []string `json:"PHP_EXTENSIONS" yaml:"-"`
ZendExtensions []string `json:"ZEND_EXTENSIONS" yaml:"-"`
AdditionalPreprocessCommands []string `json:"ADDITIONAL_PREPROCESS_CMDS" yaml:"-"`
}
Click to show internal directories.
Click to hide internal directories.