Documentation ¶
Index ¶
- Constants
- Variables
- func NewCachingImage(image imgutil.Image, cache *cache.VolumeCache) imgutil.Image
- func SetupCredHelpers(dockerPath string, refs ...string) error
- func TruncateSha(sha string) string
- func WriteTOML(path string, data interface{}) error
- type Analyzer
- type BOMEntry
- type BuildEnv
- type BuildMetadata
- type BuildPlan
- type BuildPlanEntry
- type Builder
- type Buildpack
- type BuildpackGroup
- type BuildpackOrder
- type Cache
- type Cacher
- type DetectConfig
- type Env
- type Exporter
- type LaunchTOML
- type Launcher
- type LauncherConfig
- type Logger
- type MultiError
- type Process
- type Provide
- type Rebaser
- type Require
- type Restorer
Constants ¶
View Source
const ( CodeDetectPass = 0 CodeDetectFail = 100 )
Variables ¶
View Source
var ErrFail = errors.New("no buildpacks participating")
View Source
var POSIXBuildEnv = map[string][]string{
"bin": {
"PATH",
},
"lib": {
"LD_LIBRARY_PATH",
"LIBRARY_PATH",
},
"include": {
"CPATH",
},
"pkgconfig": {
"PKG_CONFIG_PATH",
},
}
View Source
var POSIXLaunchEnv = map[string][]string{
"bin": {"PATH"},
"lib": {"LD_LIBRARY_PATH"},
}
Functions ¶
func NewCachingImage ¶ added in v0.2.0
func SetupCredHelpers ¶
func TruncateSha ¶ added in v0.5.0
Types ¶
type Analyzer ¶
type BuildMetadata ¶
type BuildPlan ¶ added in v0.4.0
type BuildPlan struct {
Entries []BuildPlanEntry `toml:"entries"`
}
type BuildPlanEntry ¶ added in v0.4.0
type Builder ¶
type Builder struct { AppDir string LayersDir string PlatformDir string BuildpacksDir string Env BuildEnv Group BuildpackGroup Plan BuildPlan Out, Err *log.Logger }
func (*Builder) Build ¶
func (b *Builder) Build() (*BuildMetadata, error)
type Buildpack ¶
type BuildpackGroup ¶
type BuildpackGroup struct {
Group []Buildpack `toml:"group"`
}
func ReadGroup ¶ added in v0.4.0
func ReadGroup(path string) (BuildpackGroup, error)
func (BuildpackGroup) Detect ¶
func (bg BuildpackGroup) Detect(c *DetectConfig) (BuildpackGroup, BuildPlan, error)
type BuildpackOrder ¶
type BuildpackOrder []BuildpackGroup
func ReadOrder ¶ added in v0.4.0
func ReadOrder(path string) (BuildpackOrder, error)
func (BuildpackOrder) Detect ¶
func (bo BuildpackOrder) Detect(c *DetectConfig) (BuildpackGroup, BuildPlan, error)
type DetectConfig ¶
type Env ¶
type Env struct { LookupEnv func(key string) (string, bool) Getenv func(key string) string Setenv func(key, value string) error Unsetenv func(key string) error Environ func() []string Map map[string][]string }
func (*Env) AddRootDir ¶
type Exporter ¶
type Exporter struct { Buildpacks []Buildpack ArtifactsDir string In []byte Logger Logger UID, GID int }
func (*Exporter) Export ¶
func (e *Exporter) Export( layersDir, appDir string, workingImage imgutil.Image, runImageRef string, origMetadata metadata.LayersMetadata, additionalNames []string, launcherConfig LauncherConfig, stack metadata.StackMetadata, ) error
type LaunchTOML ¶
type LaunchTOML struct {
Processes []Process `toml:"processes"`
}
type Launcher ¶
type LauncherConfig ¶ added in v0.4.0
type LauncherConfig struct { Path string Metadata metadata.LauncherMetadata }
type MultiError ¶ added in v0.3.0
type MultiError struct {
Errors []error
}
func (*MultiError) Error ¶ added in v0.3.0
func (me *MultiError) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.