Documentation ¶
Index ¶
- Variables
- func ApiGreaterThan(version string) (bool, error)
- func ApiVersion() (string, error)
- func CopyCfHome() error
- func CopyFixture(srcDir string) (string, error)
- func CountBuildpack(language string, stack string) (int, error)
- func CreateOrUpdateBuildpack(language, file, stack string) error
- func CreateProxyNetwork() (string, error)
- func CreateProxyServer(networkName string) (proxyContainerName string, proxyPort string, err error)
- func DeleteBuildpack(language string) error
- func DeleteContainer(containerName string) error
- func DeleteOrphanedRoutes() error
- func DeleteProxyNetwork(networkName string) error
- func EnsureUsesProxy(fixturePath, buildpackPath string) error
- func ExecuteDockerFile(path, network, command string) (string, error)
- func FindRoot() (string, error)
- func InternetTraffic(fixturePath, buildpackPath string, envs []string) ([]string, bool, []string, error)
- func InternetTrafficForNetwork(networkName, fixturePath, buildpackPath string, envs []string, resolve bool) ([]string, bool, []string, error)
- func NewLogger() lager.Logger
- func NewProxy() (*httptest.Server, error)
- func NewTLSProxy() (*httptest.Server, error)
- func ParseTrafficAndLogs(output string) ([]string, bool, []string, error)
- func RandStringRunes(n int) string
- func RemovePackagedBuildpack(buildpack VersionedBuildpackPackage) error
- func SeedRandom()
- func Stacks() ([]string, error)
- func StripColor(input string) string
- func UniqueDestination(traffic []string, destination string) error
- func UpdateBuildpack(language, file, stack string) error
- type App
- func (a *App) AppGUID() (string, error)
- func (a *App) ConfirmBuildpack(version string) error
- func (a *App) Destroy() error
- func (a *App) DownloadDroplet(path string) error
- func (a *App) Files(path string) ([]string, error)
- func (a *App) Get(path string, headers map[string]string) (string, map[string][]string, error)
- func (a *App) GetBody(path string) (string, error)
- func (a *App) GetUrl(path string) (string, error)
- func (a *App) InstanceStates() ([]string, error)
- func (a *App) Push() error
- func (a *App) PushNoStart() error
- func (a *App) Restart() error
- func (a *App) RunTask(command string) ([]byte, error)
- func (a *App) SetEnv(key, value string)
- func (a *App) SpaceGUID() (string, error)
- func (a *App) Stop() error
- func (a *App) V3Push() error
- type Buffer
- type VersionedBuildpackPackage
- func PackageShimmedBuildpack(bpDir, stack string) (VersionedBuildpackPackage, error)
- func PackageUniquelyVersionedBuildpack(stack string, stackAssociationSupported bool) (VersionedBuildpackPackage, error)
- func PackageUniquelyVersionedBuildpackExtra(name, version, stack string, cached, stackAssociationSupported bool) (VersionedBuildpackPackage, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultMemory string DefaultDisk string Cached bool DefaultStdoutStderr io.Writer = &bytes.Buffer{} )
View Source
var DefaultLogger = NewLogger()
Functions ¶
func ApiGreaterThan ¶
func ApiVersion ¶
func CopyCfHome ¶
func CopyCfHome() error
func CopyFixture ¶
func CreateOrUpdateBuildpack ¶
func CreateProxyNetwork ¶
func CreateProxyServer ¶
func DeleteBuildpack ¶
func DeleteContainer ¶
func DeleteOrphanedRoutes ¶
func DeleteOrphanedRoutes() error
func DeleteProxyNetwork ¶
func EnsureUsesProxy ¶
func ExecuteDockerFile ¶
func InternetTraffic ¶
func InternetTraffic(fixturePath, buildpackPath string, envs []string) ([]string, bool, []string, error)
TODO: Delete after all buildpacks use EnsureUsesProxy
func NewTLSProxy ¶
func ParseTrafficAndLogs ¶
func RandStringRunes ¶
func RemovePackagedBuildpack ¶
func RemovePackagedBuildpack(buildpack VersionedBuildpackPackage) error
func SeedRandom ¶
func SeedRandom()
func StripColor ¶
func UniqueDestination ¶
func UpdateBuildpack ¶
Types ¶
type App ¶
type App struct { Name string Path string Stack string Buildpacks []string Memory string Disk string StartCommand string Stdout *Buffer HealthCheck string // contains filtered or unexported fields }
func (*App) ConfirmBuildpack ¶
func (*App) DownloadDroplet ¶
func (*App) InstanceStates ¶
func (*App) PushNoStart ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func (*Buffer) ANSIStrippedString ¶
type VersionedBuildpackPackage ¶
func PackageShimmedBuildpack ¶
func PackageShimmedBuildpack(bpDir, stack string) (VersionedBuildpackPackage, error)
func PackageUniquelyVersionedBuildpack ¶
func PackageUniquelyVersionedBuildpack(stack string, stackAssociationSupported bool) (VersionedBuildpackPackage, error)
func PackageUniquelyVersionedBuildpackExtra ¶
func PackageUniquelyVersionedBuildpackExtra(name, version, stack string, cached, stackAssociationSupported bool) (VersionedBuildpackPackage, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.