Documentation
¶
Index ¶
- Constants
- Variables
- func Build(config Configuration, dependencyService DependencyService, ...) packit.BuildFunc
- func Detect(config Configuration, versionParser VersionParser) packit.DetectFunc
- type BindingsResolver
- type BuildPlanMetadata
- type Calculator
- type ConfigGenerator
- type Configuration
- type DefaultConfigGenerator
- type DependencyService
- type Parser
- type SBOMGenerator
- type VersionParser
Constants ¶
View Source
const ( NGINX = "nginx" DepKey = "dependency-sha" ConfigureBinKey = "configure-bin-sha" ConfFile = "nginx.conf" BuildpackYMLSource = "buildpack.yml" )
Variables ¶
View Source
var DefaultConfigTemplate string
View Source
var IncludeConfRegexp = regexp.MustCompile(`include\s+(\S*.conf);`)
Functions ¶
func Build ¶
func Build(config Configuration, dependencyService DependencyService, configGenerator ConfigGenerator, calculator Calculator, sbomGenerator SBOMGenerator, logger scribe.Emitter, clock chronos.Clock, ) packit.BuildFunc
func Detect ¶
func Detect(config Configuration, versionParser VersionParser) packit.DetectFunc
Types ¶
type BindingsResolver ¶
type BindingsResolver interface {
ResolveOne(typ, provider, platformDir string) (servicebindings.Binding, error)
}
type BuildPlanMetadata ¶
type Calculator ¶
type ConfigGenerator ¶
type ConfigGenerator interface {
Generate(config Configuration) error
}
type Configuration ¶
type Configuration struct {
NGINXConfLocation string `env:"BP_NGINX_CONF_LOCATION"`
NGINXVersion string `env:"BP_NGINX_VERSION"`
LiveReloadEnabled bool `env:"BP_LIVE_RELOAD_ENABLED"`
WebServer string `env:"BP_WEB_SERVER"`
WebServerForceHTTPS bool `env:"BP_WEB_SERVER_FORCE_HTTPS"`
WebServerEnablePushState bool `env:"BP_WEB_SERVER_ENABLE_PUSH_STATE"`
WebServerRoot string `env:"BP_WEB_SERVER_ROOT"`
WebServerLocationPath string `env:"BP_WEB_SERVER_LOCATION_PATH"`
NGINXStubStatusPort string `env:"BP_NGINX_STUB_STATUS_PORT"`
BasicAuthFile string
}
func LoadConfiguration ¶
func LoadConfiguration(environ []string, bindingsResolver BindingsResolver, platformPath string) (Configuration, error)
type DefaultConfigGenerator ¶
type DefaultConfigGenerator struct {
// contains filtered or unexported fields
}
func NewDefaultConfigGenerator ¶
func NewDefaultConfigGenerator(logs scribe.Emitter) DefaultConfigGenerator
func (DefaultConfigGenerator) Generate ¶
func (g DefaultConfigGenerator) Generate(config Configuration) error
type DependencyService ¶
type DependencyService interface {
Resolve(path, name, version, stack string) (postal.Dependency, error)
Deliver(dependency postal.Dependency, cnbPath, layerPath, platformPath string) error
GenerateBillOfMaterials(dependencies ...postal.Dependency) []packit.BOMEntry
}
type SBOMGenerator ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.