compat

package
v0.0.64 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Layer = "php-compat"

Variables

This section is empty.

Functions

func WriteOptionsToBuildpackYAML

func WriteOptionsToBuildpackYAML(appRoot string, options Options) error

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

func (c Contributor) MigratePHPSnippets(name string, oldSnippetFolder string, newSnippetFolder string, extension string) error

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

func LoadOptionsJSON(appRoot string) (Options, error)

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:"-"`
}

Jump to

Keyboard shortcuts

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