bratshelper

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: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDotProfileScriptToApp

func AddDotProfileScriptToApp(dir string)

func DeployAnAppWithSensitiveEnvironmentVariables

func DeployAnAppWithSensitiveEnvironmentVariables(copyBrats func(string) *cutlass.App)

func DeployAppWithExecutableProfileScript

func DeployAppWithExecutableProfileScript(depName string, copyBrats func(string) *cutlass.App)

func DeployingAnAppWithAnUpdatedVersionOfTheSameBuildpack

func DeployingAnAppWithAnUpdatedVersionOfTheSameBuildpack(copyBrats func(string) *cutlass.App)

func DestroyApp

func DestroyApp(app *cutlass.App)

func ForAllSupportedVersions

func ForAllSupportedVersions(depName string, copyBrats func(string) *cutlass.App, runTests func(string, *cutlass.App))

func GenBpName

func GenBpName(name string) string

func ModifyBuildpack

func ModifyBuildpack(path string, cb func(path string, r io.Reader) (io.Reader, error)) (string, error)

func ModifyBuildpackManifest

func ModifyBuildpackManifest(path string, cb func(*Manifest)) (string, error)

func PushApp

func PushApp(app *cutlass.App)

func StagingWithADepThatIsNotTheLatest

func StagingWithADepThatIsNotTheLatest(depName string, copyBrats func(string) *cutlass.App)

func StagingWithBuildpackThatSetsEOL

func StagingWithBuildpackThatSetsEOL(depName string, copyBrats func(string) *cutlass.App)

func StagingWithCustomBuildpackWithCredentialsInDependencies

func StagingWithCustomBuildpackWithCredentialsInDependencies(depRegexp string, copyBrats func(string) *cutlass.App)

func UnbuiltBuildpack

func UnbuiltBuildpack(depName string, copyBrats func(string) *cutlass.App)

Types

type BpData

type BpData struct {
	BpVersion    string
	BpLanguage   string
	BpDir        string
	Cached       string
	CachedFile   string
	Uncached     string
	UncachedFile string
}
var Data BpData

func InitBpData

func InitBpData() *BpData

func (*BpData) Marshal

func (d *BpData) Marshal() []byte

func (*BpData) Unmarshal

func (d *BpData) Unmarshal(data []byte)

type Manifest

type Manifest struct {
	Language        string `yaml:"language"`
	DefaultVersions []*struct {
		Name    string `yaml:"name"`
		Version string `yaml:"version"`
	} `yaml:"default_versions"`
	PrePackage                 string `yaml:"pre_package"`
	DependencyDeprecationDates []*struct {
		VersionLine string `yaml:"version_line"`
		Name        string `yaml:"name"`
		Date        string `yaml:"date"`
		Link        string `yaml:"link"`
	} `yaml:"dependency_deprecation_dates"`
	Dependencies []*struct {
		Name     string   `yaml:"name"`
		Version  string   `yaml:"version"`
		URI      string   `yaml:"uri"`
		Md5      string   `yaml:"md5,omitempty"`
		Sha256   string   `yaml:"sha256,omitempty"`
		CfStacks []string `yaml:"cf_stacks"`
	} `yaml:"dependencies"`
	IncludeFiles []string `yaml:"include_files"`
}

Jump to

Keyboard shortcuts

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