Documentation ¶
Overview ¶
Code generated for package packager by go-bindata DO NOT EDIT. (@generated) sources: scaffold/.envrc scaffold/.gitignore scaffold/README.md scaffold/VERSION scaffold/bin/compile scaffold/bin/detect scaffold/bin/finalize scaffold/bin/release scaffold/bin/supply scaffold/fixtures/.gitkeep scaffold/fixtures/simple_test/some_file.txt scaffold/manifest.yml scaffold/scripts/brats.sh scaffold/scripts/build.sh scaffold/scripts/install_go.sh scaffold/scripts/install_tools.sh scaffold/scripts/integration.sh scaffold/scripts/unit.sh scaffold/src/LANGUAGE/Gopkg.toml scaffold/src/LANGUAGE/finalize/_finalize.go scaffold/src/LANGUAGE/finalize/_finalize_suite_test.go scaffold/src/LANGUAGE/finalize/_finalize_test.go scaffold/src/LANGUAGE/finalize/cli/_cli_suite_test.go scaffold/src/LANGUAGE/finalize/cli/_main.go scaffold/src/LANGUAGE/hooks/_hooks_debug.go scaffold/src/LANGUAGE/hooks/_hooks_suite_test.go scaffold/src/LANGUAGE/integration/_integration_suite_test.go scaffold/src/LANGUAGE/integration/_simple_test.go scaffold/src/LANGUAGE/supply/_supply.go scaffold/src/LANGUAGE/supply/_supply_suite_test.go scaffold/src/LANGUAGE/supply/_supply_test.go scaffold/src/LANGUAGE/supply/cli/_cli_suite_test.go scaffold/src/LANGUAGE/supply/cli/_main.go scaffold/src/LANGUAGE/vendor/.gitkeep
Index ¶
- Variables
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func CompileExtensionPackage(bpDir, version string, cached bool, stack string) (string, error)
- func CopyDirectory(srcDir string) (string, error)
- func DownloadFromURI(uri, fileName string) error
- func Envrc() (*asset, error)
- func EnvrcBytes() ([]byte, error)
- func Gitignore() (*asset, error)
- func GitignoreBytes() ([]byte, error)
- func MustAsset(name string) []byte
- func OurRestoreAsset(dir, name string, funcMap template.FuncMap, shas map[string]string, force bool) error
- func OurRestoreAssets(dir, name string, funcMap template.FuncMap, shas map[string]string, force bool) error
- func Package(bpDir, cacheDir, version, stack string, cached bool) (string, error)
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- func Summary(bpDir string) (string, error)
- func ZipFiles(filename string, files []File) error
- type Dependencies
- type Dependency
- type File
- type Manifest
- type SubDependency
Constants ¶
This section is empty.
Variables ¶
var CacheDir = filepath.Join(os.Getenv("HOME"), ".buildpack-packager", "cache")
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func CompileExtensionPackage ¶
func CopyDirectory ¶
func DownloadFromURI ¶
func EnvrcBytes ¶
func GitignoreBytes ¶
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func OurRestoreAsset ¶
func OurRestoreAsset(dir, name string, funcMap template.FuncMap, shas map[string]string, force bool) error
RestoreAsset restores an asset under the given directory
func OurRestoreAssets ¶
func OurRestoreAssets(dir, name string, funcMap template.FuncMap, shas map[string]string, force bool) error
RestoreAssets restores an asset under the given directory recursively
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
Types ¶
type Dependencies ¶
type Dependencies []Dependency
func (Dependencies) Len ¶
func (d Dependencies) Len() int
func (Dependencies) Less ¶
func (d Dependencies) Less(i, j int) bool
func (Dependencies) Swap ¶
func (d Dependencies) Swap(i, j int)
type Dependency ¶
type Manifest ¶
type Manifest struct { Language string `yaml:"language"` Stack string `yaml:"stack"` IncludeFiles []string `yaml:"include_files"` PrePackage string `yaml:"pre_package"` Dependencies Dependencies `yaml:"dependencies"` Defaults []struct { Name string `yaml:"name"` Version string `yaml:"version"` } `yaml:"default_versions"` }
type SubDependency ¶
type SubDependency struct{ Name string }