bratshelper

package
v0.0.0-...-f75f763 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: Apache-2.0 Imports: 20 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 ForAllSupportedVersions2

func ForAllSupportedVersions2(depName1, depName2 string, compatible func(string, string) bool, itString string, copyBrats func(string, string) *cutlass.App, runTests func(string, 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 StagingWithADepThatIsNotTheLatestConstrained

func StagingWithADepThatIsNotTheLatestConstrained(depName string, versionConstraint 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(stack string) *BpData

func (*BpData) Marshal

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

func (*BpData) Unmarshal

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

type Manifest

type Manifest struct {
	Stack           string `yaml:"stack"`
	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"`
		Match       string `yaml:"match,omitempty"` // CompileExtensions
	} `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"`
		Modules  []string `yaml:"modules,omitempty"` // CompileExtensions PHP
	} `yaml:"dependencies"`
	IncludeFiles       []string      `yaml:"include_files,omitempty"`
	ExcludeFiles       []string      `yaml:"exclude_files,omitempty"`         // CompileExtensions
	UrlToDependencyMap []interface{} `yaml:"url_to_dependency_map,omitempty"` // CompileExtensions
}

Jump to

Keyboard shortcuts

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