Documentation ¶
Index ¶
- Constants
- func Build(redisBindingConfigParser ConfigParser, bindingResolver BuildBindingResolver, ...) packit.BuildFunc
- func Detect(bindingResolver DetectBindingResolver) packit.DetectFunc
- type BuildBindingResolver
- type BuildPlanMetadata
- type ConfigParser
- type ConfigWriter
- type DetectBindingResolver
- type RedisConfig
- type RedisConfigParser
- type RedisConfigWriter
Constants ¶
View Source
const ( PhpLayer = "php" PhpRedisLayer = "php-redis-config" RedisBindingType = "php-redis-session" )
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(redisBindingConfigParser ConfigParser, bindingResolver BuildBindingResolver, redisConfigWriter ConfigWriter, logger scribe.Emitter) packit.BuildFunc
Build will return a packit.BuildFunc that will be invoked during the build phase of the buildpack lifecycle.
func Detect ¶
func Detect(bindingResolver DetectBindingResolver) packit.DetectFunc
Types ¶
type BuildBindingResolver ¶
type BuildBindingResolver interface {
ResolveOne(typ, provider, platformDir string) (servicebindings.Binding, error)
}
type BuildPlanMetadata ¶
type BuildPlanMetadata struct {
Launch bool
}
type ConfigParser ¶
type ConfigParser interface {
Parse(dir string) (RedisConfig, error)
}
type ConfigWriter ¶
type ConfigWriter interface {
Write(redisConfig RedisConfig, layerPath, cnbPath string) (string, error)
}
type DetectBindingResolver ¶
type DetectBindingResolver interface {
Resolve(typ, provider, platformDir string) ([]servicebindings.Binding, error)
}
type RedisConfig ¶
type RedisConfigParser ¶
type RedisConfigParser struct { }
func NewRedisConfigParser ¶
func NewRedisConfigParser() RedisConfigParser
func (RedisConfigParser) Parse ¶
func (p RedisConfigParser) Parse(dir string) (RedisConfig, error)
type RedisConfigWriter ¶
type RedisConfigWriter struct {
// contains filtered or unexported fields
}
func NewRedisConfigWriter ¶
func NewRedisConfigWriter(logger scribe.Emitter) RedisConfigWriter
func (RedisConfigWriter) Write ¶
func (c RedisConfigWriter) Write(redisConfig RedisConfig, layerPath, cnbPath string) (string, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.