Documentation ¶
Index ¶
- Constants
- func AddHook(hook Hook)
- func CheckSha256(filePath, expectedSha256 string) error
- func ClearHooks()
- func CopyDirectory(srcDir, destDir string) error
- func CopyFile(source, destFile string) error
- func ExtractTarGz(tarfile, destDir string) error
- func ExtractTarXz(tarfile, destDir string) error
- func ExtractZip(zipfile, destDir string) error
- func FileExists(file string) (bool, error)
- func FindMatchingVersion(constraint string, versions []string) (string, error)
- func FindMatchingVersions(constraint string, versions []string) ([]string, error)
- func GetBuildpackDir() (string, error)
- func MoveDirectory(srcDir, destDir string) error
- func RandString(n int) string
- func RunAfterCompile(stager *Stager) error
- func RunBeforeCompile(stager *Stager) error
- type BuildpackMetadata
- type Command
- func (c *Command) Execute(dir string, stdout io.Writer, stderr io.Writer, program string, args ...string) error
- func (c *Command) Output(dir string, program string, args ...string) (string, error)
- func (c *Command) Run(cmd *exec.Cmd) error
- func (c *Command) RunWithOutput(cmd *exec.Cmd) ([]byte, error)
- type DefaultHook
- type Dependency
- type DeprecationDate
- type Hook
- type Installer
- func (i *Installer) CleanupAppCache() error
- func (i *Installer) FetchDependency(dep Dependency, outputFile string) error
- func (i *Installer) GetVersionLine() *map[string]string
- func (i *Installer) InstallDependency(dep Dependency, outputDir string) error
- func (i *Installer) InstallOnlyVersion(depName string, installDir string) error
- func (i *Installer) SetAppCacheDir(appCacheDir string) (err error)
- func (i *Installer) SetRetryTimeInitialInterval(duration time.Duration)
- func (i *Installer) SetRetryTimeLimit(duration time.Duration)
- func (i *Installer) SetVersionLine(depName string, line string)
- type JSON
- type Logger
- func (l *Logger) BeginStep(format string, args ...interface{})
- func (l *Logger) Debug(format string, args ...interface{})
- func (l *Logger) Error(format string, args ...interface{})
- func (l *Logger) Info(format string, args ...interface{})
- func (l *Logger) Output() io.Writer
- func (l *Logger) Protip(tip string, helpURL string)
- func (l *Logger) Warning(format string, args ...interface{})
- type Manifest
- func (m *Manifest) AllDependencyVersions(depName string) []string
- func (m *Manifest) ApplyOverride(depsDir string) error
- func (m *Manifest) CheckBuildpackVersion(cacheDir string)
- func (m *Manifest) CheckStackSupport() error
- func (m *Manifest) DefaultVersion(depName string) (Dependency, error)
- func (m *Manifest) GetEntry(dep Dependency) (*ManifestEntry, error)
- func (m *Manifest) IsCached() bool
- func (m *Manifest) Language() string
- func (m *Manifest) RootDir() string
- func (m *Manifest) StoreBuildpackMetadata(cacheDir string) error
- func (m *Manifest) Version() (string, error)
- type ManifestEntry
- type Stager
- func (s *Stager) AddBinDependencyLink(destPath, sourceName string) error
- func (s *Stager) BuildDir() string
- func (s *Stager) BuildpackLanguage() string
- func (s *Stager) BuildpackVersion() (string, error)
- func (s *Stager) CacheDir() string
- func (s *Stager) CheckBuildpackValid() error
- func (s *Stager) ClearCache() error
- func (s *Stager) ClearDepDir() error
- func (s *Stager) DepDir() string
- func (s *Stager) DepsDir() string
- func (s *Stager) DepsIdx() string
- func (s *Stager) LinkDirectoryInDepDir(destDir, depSubDir string) error
- func (s *Stager) Logger() *Logger
- func (s *Stager) ProfileDir() string
- func (s *Stager) SetLaunchEnvironment() error
- func (s *Stager) SetStagingEnvironment() error
- func (s *Stager) StagingComplete()
- func (s *Stager) WriteConfigYml(config interface{}) error
- func (s *Stager) WriteEnvFile(envVar, envVal string) error
- func (s *Stager) WriteProfileD(scriptName, scriptContents string) error
- type YAML
Constants ¶
View Source
const ( CFLINUXFS2 = "cflinuxfs2" WINDOWS2016 = "windows2016" ATTENTION_MSG = "!! !!" WARNING_MSG_CFLINUXFS2 = "" /* 253-byte string literal not displayed */ WARNING_MSG_WINDOWS2016 = "" /* 356-byte string literal not displayed */ )
View Source
const SENTINEL = "sentinel"
Variables ¶
This section is empty.
Functions ¶
func CheckSha256 ¶
func ClearHooks ¶
func ClearHooks()
func CopyDirectory ¶
CopyDirectory copies srcDir to destDir
func CopyFile ¶
CopyFile copies source file to destFile, creating all intermediate directories in destFile
func ExtractTarGz ¶
ExtractTarGz extracts tar.gz to destDir
func ExtractTarXz ¶
func ExtractZip ¶
ExtractZip extracts zipfile to destDir
func FileExists ¶
func FindMatchingVersion ¶
func FindMatchingVersions ¶
func MoveDirectory ¶
func RandString ¶
func RunAfterCompile ¶
func RunBeforeCompile ¶
Types ¶
type BuildpackMetadata ¶
type DefaultHook ¶
type DefaultHook struct{}
func (DefaultHook) AfterCompile ¶
func (d DefaultHook) AfterCompile(stager *Stager) error
func (DefaultHook) BeforeCompile ¶
func (d DefaultHook) BeforeCompile(stager *Stager) error
type Dependency ¶
type DeprecationDate ¶
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
func NewInstaller ¶
func (*Installer) CleanupAppCache ¶
func (*Installer) FetchDependency ¶
func (i *Installer) FetchDependency(dep Dependency, outputFile string) error
func (*Installer) GetVersionLine ¶
func (*Installer) InstallDependency ¶
func (i *Installer) InstallDependency(dep Dependency, outputDir string) error
func (*Installer) InstallOnlyVersion ¶
func (*Installer) SetAppCacheDir ¶
func (*Installer) SetRetryTimeInitialInterval ¶
func (*Installer) SetRetryTimeLimit ¶
func (*Installer) SetVersionLine ¶
type Manifest ¶
type Manifest struct { LanguageString string `yaml:"language"` DefaultVersions []Dependency `yaml:"default_versions"` ManifestEntries []ManifestEntry `yaml:"dependencies"` Deprecations []DeprecationDate `yaml:"dependency_deprecation_dates"` Stack string `yaml:"stack"` // contains filtered or unexported fields }
func NewManifest ¶
func (*Manifest) AllDependencyVersions ¶
func (*Manifest) ApplyOverride ¶
func (*Manifest) CheckBuildpackVersion ¶
func (*Manifest) CheckStackSupport ¶
func (*Manifest) DefaultVersion ¶
func (m *Manifest) DefaultVersion(depName string) (Dependency, error)
func (*Manifest) GetEntry ¶
func (m *Manifest) GetEntry(dep Dependency) (*ManifestEntry, error)
func (*Manifest) StoreBuildpackMetadata ¶
type ManifestEntry ¶
type ManifestEntry struct { Dependency Dependency `yaml:",inline"` URI string `yaml:"uri"` File string `yaml:"file"` SHA256 string `yaml:"sha256"` CFStacks []string `yaml:"cf_stacks"` }
type Stager ¶
type Stager struct {
// contains filtered or unexported fields
}
func (*Stager) AddBinDependencyLink ¶
func (*Stager) BuildpackLanguage ¶
func (*Stager) BuildpackVersion ¶
func (*Stager) CheckBuildpackValid ¶
func (*Stager) ClearCache ¶
func (*Stager) ClearDepDir ¶
func (*Stager) LinkDirectoryInDepDir ¶
func (*Stager) ProfileDir ¶
func (*Stager) SetLaunchEnvironment ¶
func (*Stager) SetStagingEnvironment ¶
func (*Stager) StagingComplete ¶
func (s *Stager) StagingComplete()
func (*Stager) WriteConfigYml ¶
func (*Stager) WriteEnvFile ¶
func (*Stager) WriteProfileD ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Code generated for package packager by go-bindata DO NOT EDIT.
|
Code generated for package packager by go-bindata DO NOT EDIT. |
Click to show internal directories.
Click to hide internal directories.