Documentation ¶
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) (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 Scaffold(bpDir string, languageName string) error
- func Summary(bpDir string) (string, error)
- func Upgrade(bpDir string, force bool) error
- func ZipFiles(filename string, files []File) error
- type Dependencies
- type Dependency
- type File
- type Manifest
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 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"` }