packager

package
v0.0.0-...-570e82b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CacheDir = filepath.Join(os.Getenv("HOME"), ".buildpack-packager", "cache")

Functions

func Package

func Package(bpDir, cacheDir, version string, cached bool) (string, error)

func Summary

func Summary(bpDir string) (string, error)

func ZipFiles

func ZipFiles(filename string, files []File) error

Types

type Dependencies

type Dependencies []struct {
	URI     string   `yaml:"uri"`
	SHA256  string   `yaml:"sha256"`
	Name    string   `yaml:"name"`
	Version string   `yaml:"version"`
	Stacks  []string `yaml:"cf_stacks"`
	Modules []string `yaml:"modules"`
}

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 File

type File struct {
	Name, Path string
}

type Manifest

type Manifest struct {
	Language     string       `yaml:"language"`
	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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL