Documentation
¶
Index ¶
- Constants
- Variables
- func SetupCredHelpers(refs ...string) error
- func WriteTOML(path string, data interface{}) error
- type Analyzer
- type AppImageMetadata
- type AppMetadata
- type BuildEnv
- type BuildMetadata
- type Builder
- type Buildpack
- type BuildpackGroup
- type BuildpackMap
- type BuildpackMetadata
- type BuildpackOrder
- type CacheImageMetadata
- type Cacher
- type ConfigMetadata
- type DetectConfig
- type Env
- type Exporter
- type LaunchTOML
- type Launcher
- type LauncherMetadata
- type LayerMetadata
- type Plan
- type Process
- type Restorer
- type RunImageMetadata
- type StackMetadata
- type StackRunImageMetadata
Constants ¶
View Source
const ( CodeDetectPass = iota CodeDetectError CodeDetectFail = 100 )
View Source
const ( MetadataLabel = "io.buildpacks.lifecycle.metadata" CacheMetadataLabel = "io.buildpacks.lifecycle.cache.metadata" )
Variables ¶
View Source
var POSIXBuildEnv = map[string][]string{
"bin": {
"PATH",
},
"lib": {
"LD_LIBRARY_PATH",
"LIBRARY_PATH",
},
"include": {
"CPATH",
"C_INCLUDE_PATH",
"CPLUS_INCLUDE_PATH",
"OBJC_INCLUDE_PATH",
},
"pkgconfig": {
"PKG_CONFIG_PATH",
},
}
View Source
var POSIXLaunchEnv = map[string][]string{
"bin": {"PATH"},
"lib": {"LD_LIBRARY_PATH"},
}
Functions ¶
func SetupCredHelpers ¶
Types ¶
type Analyzer ¶
type AppImageMetadata ¶
type AppImageMetadata struct {
App AppMetadata `json:"app"`
Config ConfigMetadata `json:"config"`
Launcher LauncherMetadata `json:"launcher"`
Buildpacks []BuildpackMetadata `json:"buildpacks"`
RunImage RunImageMetadata `json:"runImage"`
Stack StackMetadata `json:"stack"`
}
type AppMetadata ¶
type AppMetadata struct {
SHA string `json:"sha"`
}
type BuildMetadata ¶
type Builder ¶
type Builder struct {
PlatformDir string
LayersDir string
AppDir string
Env BuildEnv
Buildpacks []*Buildpack
Plan Plan
Out, Err io.Writer
}
func (*Builder) Build ¶
func (b *Builder) Build() (*BuildMetadata, error)
type Buildpack ¶
type Buildpack struct {
ID string `toml:"id"`
Version string `toml:"version"`
Optional bool `toml:"optional,omitempty"`
Name string `toml:"-"`
Dir string `toml:"-"`
}
type BuildpackGroup ¶
type BuildpackGroup struct {
Buildpacks []*Buildpack `toml:"buildpacks"`
}
func (*BuildpackGroup) Detect ¶
func (bg *BuildpackGroup) Detect(c *DetectConfig) (plan []byte, group *BuildpackGroup, ok bool)
func (*BuildpackGroup) Write ¶
func (g *BuildpackGroup) Write(path string) error
type BuildpackMap ¶
func NewBuildpackMap ¶
func NewBuildpackMap(dir string) (BuildpackMap, error)
func (BuildpackMap) ReadGroup ¶
func (m BuildpackMap) ReadGroup(path string) (*BuildpackGroup, error)
func (BuildpackMap) ReadOrder ¶
func (m BuildpackMap) ReadOrder(orderPath string) (BuildpackOrder, error)
type BuildpackMetadata ¶
type BuildpackMetadata struct {
ID string `json:"key"`
Version string `json:"version"`
Layers map[string]LayerMetadata `json:"layers"`
}
type BuildpackOrder ¶
type BuildpackOrder []BuildpackGroup
func (BuildpackOrder) Detect ¶
func (bo BuildpackOrder) Detect(c *DetectConfig) (plan []byte, group *BuildpackGroup)
type CacheImageMetadata ¶
type CacheImageMetadata struct {
Buildpacks []BuildpackMetadata `json:"buildpacks"`
}
type Cacher ¶
type ConfigMetadata ¶
type ConfigMetadata struct {
SHA string `json:"sha"`
}
type DetectConfig ¶
type Env ¶
type Env struct {
Getenv func(key string) string
Setenv func(key, value string) error
Environ func() []string
Map map[string][]string
}
func (*Env) AddRootDir ¶
type Exporter ¶
type LaunchTOML ¶
type LaunchTOML struct {
Processes []Process `toml:"processes"`
}
type Launcher ¶
type LauncherMetadata ¶
type LauncherMetadata struct {
SHA string `json:"sha"`
}
type LayerMetadata ¶
type Restorer ¶
type RunImageMetadata ¶
type StackMetadata ¶
type StackMetadata struct {
RunImage StackRunImageMetadata `toml:"run-image" json:"runImage"`
}
type StackRunImageMetadata ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.