Documentation ¶
Index ¶
- Constants
- func DeleteBuildpack(root string) error
- func DockerArtifactExists(name string) (bool, error)
- func FindBPRoot() (string, error)
- func GetLatestBuildpack(name string) (string, error)
- func GetLatestCommunityBuildpack(org, name string) (string, error)
- func GetLatestUnpackagedBuildpack(name string) (string, error)
- func GetLatestUnpackagedCommunityBuildpack(org, name string) (string, error)
- func PackageBuildpack(root string) (string, error)
- func PackageCachedBuildpack(root string) (string, string, error)
- func SyncParallelOutput(f func())
- type App
- func NewApp(fixturePath, imageName, cacheImage string, buildLogs *bytes.Buffer, ...) App
- func PackBuild(appDir string, buildpacks ...string) (*App, error)
- func PackBuildNamedImage(appImage, appDir string, buildpacks ...string) (*App, error)
- func PackBuildNamedImageWithEnv(appImage, appDir string, env map[string]string, buildpacks ...string) (*App, error)
- func PackBuildWithEnv(appDir string, env map[string]string, buildpacks ...string) (*App, error)
- func (a *App) BuildLogs() string
- func (a *App) Destroy() error
- func (a *App) Files(path string) ([]string, error)
- func (a App) GetBaseURL() string
- func (a *App) HTTPGet(path string) (string, map[string][]string, error)
- func (a *App) HTTPGetBody(path string) (string, error)
- func (a *App) Info() (cID string, imageID string, cacheID []string, e error)
- func (a *App) Logs() (string, error)
- func (a *App) SetHealthCheck(command, interval, timeout string)
- func (a *App) Start() error
- func (a *App) StartWithCommand(startCmd string) error
- type Executable
- type HealthCheck
- type Pack
- type PackOption
- type TestConfig
Constants ¶
View Source
const ( Tiny = "org.cloudfoundry.stacks.tiny" CFLinuxFS3 = "org.cloudfoundry.stacks.cflinuxfs3" Bionic = "io.buildpacks.stacks.bionic" DefaultBuildImage = "cloudfoundry/build:full-cnb" DefaultRunImage = "cloudfoundry/run:full-cnb" TestBuilderImage = "cloudfoundry/cnb:cflinuxfs3" Cflinuxfs3Builder = "cloudfoundry/cnb:cflinuxfs3" BionicBuilder = "cloudfoundry/cnb:bionic" )
Variables ¶
This section is empty.
Functions ¶
func DeleteBuildpack ¶
func DockerArtifactExists ¶
func FindBPRoot ¶
func GetLatestBuildpack ¶
func PackageBuildpack ¶
func SyncParallelOutput ¶
func SyncParallelOutput(f func())
Types ¶
type App ¶
type App struct { ImageName string CacheImage string ContainerID string Memory string Env map[string]string // contains filtered or unexported fields }
func PackBuildNamedImage ¶
This pack builds an app from appDir into appImageName, to allow specifying an image name in a test
func PackBuildWithEnv ¶
func (App) GetBaseURL ¶
func (*App) SetHealthCheck ¶
func (*App) StartWithCommand ¶
type Executable ¶
type HealthCheck ¶
type HealthCheck struct {
// contains filtered or unexported fields
}
type Pack ¶
type Pack struct {
// contains filtered or unexported fields
}
func NewPack ¶
func NewPack(dir string, options ...PackOption) Pack
type PackOption ¶
func NoPull ¶
func NoPull() PackOption
func RandomImage ¶
func RandomImage() PackOption
func SetBuilder ¶
func SetBuilder(builder string) PackOption
func SetBuildpacks ¶
func SetBuildpacks(buildpacks ...string) PackOption
func SetEnv ¶
func SetEnv(env map[string]string) PackOption
func SetImage ¶
func SetImage(image string) PackOption
func SetOffline ¶
func SetOffline() PackOption
func SetVerbose ¶
func SetVerbose() PackOption
type TestConfig ¶
type TestConfig struct { Builder string `json:"builder"` BuildpackOrder map[string][]string `json:"buildpackOrder"` }
func ParseConfig ¶
func ParseConfig(configPath string) (TestConfig, error)
Click to show internal directories.
Click to hide internal directories.