v7

package
v0.0.0-...-814db2d Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiGreaterThan

func ApiGreaterThan(version string) (bool, error)

func ApiVersion

func ApiVersion() (string, error)

func CopyCfHome

func CopyCfHome() error

func CountBuildpack

func CountBuildpack(language string, stack string) (int, error)

func CreateOrUpdateBuildpack

func CreateOrUpdateBuildpack(language, file, stack string) error

func DeleteBuildpack

func DeleteBuildpack(language string) error

func DeleteOrphanedRoutes

func DeleteOrphanedRoutes() error

func FindRoot

func FindRoot() (string, error)

func RemovePackagedBuildpack

func RemovePackagedBuildpack(buildpack VersionedBuildpackPackage) error

func SeedRandom

func SeedRandom()

func Stacks

func Stacks() ([]string, error)

func UpdateBuildpack

func UpdateBuildpack(language, file, stack string) error

Types

type App

type App struct {
	Name         string
	Path         string
	Stack        string
	Buildpacks   []string
	Memory       string
	Disk         string
	StartCommand string
	Stdout       *cutlass.Buffer

	HealthCheck string
	// contains filtered or unexported fields
}

func New

func New(fixture string) *App

func (*App) AppGUID

func (a *App) AppGUID() (string, error)

func (*App) ConfirmBuildpack

func (a *App) ConfirmBuildpack(version string) error

func (*App) Destroy

func (a *App) Destroy() error

func (*App) DownloadDroplet

func (a *App) DownloadDroplet(path string) error

func (*App) Files

func (a *App) Files(path string) ([]string, error)

func (*App) Get

func (a *App) Get(path string, headers map[string]string) (string, map[string][]string, error)

func (*App) GetBody

func (a *App) GetBody(path string) (string, error)

func (*App) GetUrl

func (a *App) GetUrl(path string) (string, error)

func (*App) InstanceStates

func (a *App) InstanceStates() ([]string, error)

func (*App) Push

func (a *App) Push() error

func (*App) PushNoStart

func (a *App) PushNoStart() error

func (*App) Restart

func (a *App) Restart() error

func (*App) RunTask

func (a *App) RunTask(command string) ([]byte, error)

func (*App) SetEnv

func (a *App) SetEnv(key, value string)

func (*App) SpaceGUID

func (a *App) SpaceGUID() (string, error)

func (*App) Stop

func (a *App) Stop() error

type VersionedBuildpackPackage

type VersionedBuildpackPackage struct {
	Version string
	File    string
}

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)

Jump to

Keyboard shortcuts

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