Documentation ¶
Index ¶
- Constants
- func GitClone(repo url.URL, destination string) error
- func OpenBuildpackURL(buildpackURL string, client *http.Client) ([]byte, error)
- type BuildpackManager
- type BuildpacksKeyModifier
- type Commander
- type DropletUploader
- type Executor
- type Extractor
- type Installer
- type NotZipFileError
- type PackageInstaller
- type ReaderFrom
- type Responder
- type StagingResultModifier
- type Unzipper
- type Uploader
Constants ¶
View Source
const ( // Environment Variable Names. EnvDownloadURL = "DOWNLOAD_URL" EnvBuildpacks = "BUILDPACKS" EnvDropletUploadURL = "DROPLET_UPLOAD_URL" EnvAppID = "APP_ID" EnvStagingGUID = "STAGING_GUID" EnvCompletionCallback = "COMPLETION_CALLBACK" EnvCfUsername = "CF_USERNAME" EnvCfPassword = "CF_PASSWORD" EnvAPIAddress = "API_ADDRESS" EnvEiriniAddress = "EIRINI_ADDRESS" EnvCertsPath = "EIRINI_CERTS_PATH" EnvBuildpacksDir = "EIRINI_BUILDPACKS_DIR" EnvWorkspaceDir = "EIRINI_WORKSPACE_DIR" EnvOutputDropletLocation = "EIRINI_OUTPUT_DROPLET_LOCATION" EnvOutputBuildArtifactsCache = "EIRINI_OUTPUT_BUILD_ARTIFACTS_CACHE" EnvOutputMetadataLocation = "EIRINI_OUTPUT_METADATA_LOCATION" EnvBuildArtifactsCacheDir = "EIRINI_BUILD_ARTIFACTS_CACHE_DIR" EnvBuildpackCacheUploadURI = "BUILDPACK_CACHE_UPLOAD_URI" EnvBuildpackCacheDownloadURI = "BUILDPACK_CACHE_DOWNLOAD_URI" EnvBuildpackCacheChecksum = "BUILDPACK_CACHE_CHECKSUM" EnvBuildpackCacheChecksumAlgorithm = "BUILDPACK_CACHE_CHECKSUM_ALGORITHM" RegisteredRoutes = "routes" AppBits = "app.zip" RecipeBuildPacksDir = "/var/lib/buildpacks" RecipeBuildPacksName = "recipe-buildpacks" RecipeWorkspaceDir = "/recipe_workspace" RecipeWorkspaceName = "recipe-workspace" RecipeOutputName = "staging-output" RecipeOutputLocation = "/out" RecipeOutputDropletLocation = "/out/droplet.tgz" RecipeOutputMetadataLocation = "/out/result.json" CCUploaderInternalURL = "cc-uploader.service.cf.internal" CACertName = "internal-ca-cert" CCCertsMountPath = "/etc/config/certs" CCAPICertName = "cc-server-crt" CCAPIKeyName = "cc-server-crt-key" EiriniClientCert = "eirini-client-crt" EiriniClientKey = "eirini-client-crt-key" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildpackManager ¶
type BuildpackManager struct {
// contains filtered or unexported fields
}
func (*BuildpackManager) Install ¶
func (b *BuildpackManager) Install() error
type BuildpacksKeyModifier ¶
type BuildpacksKeyModifier struct {
CCBuildpacksJSON string
}
func (*BuildpacksKeyModifier) Modify ¶
func (m *BuildpacksKeyModifier) Modify(result builder.StagingResult) (builder.StagingResult, error)
type DropletUploader ¶
type Installer ¶
type Installer interface {
Install() error
}
func NewBuildpackManager ¶
func NewPackageManager ¶
func NewPackageManager( client *http.Client, downloadURL, downloadDir string, readerFrom ReaderFrom, ) Installer
type NotZipFileError ¶
type NotZipFileError struct {
// contains filtered or unexported fields
}
func (NotZipFileError) Error ¶
func (z NotZipFileError) Error() string
type PackageInstaller ¶
type PackageInstaller struct {
// contains filtered or unexported fields
}
func (*PackageInstaller) Install ¶
func (d *PackageInstaller) Install() error
type Responder ¶
type Responder struct {
// contains filtered or unexported fields
}
func NewResponder ¶
func (Responder) PrepareSuccessResponse ¶
func (r Responder) PrepareSuccessResponse(outputLocation, buildpackCfg string) (*models.TaskCallbackResponse, error)
func (Responder) RespondWithFailure ¶
func (Responder) RespondWithSuccess ¶
func (r Responder) RespondWithSuccess(resp *models.TaskCallbackResponse) error
type StagingResultModifier ¶
type StagingResultModifier interface {
Modify(result builder.StagingResult) (builder.StagingResult, error)
}
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
integration
|
|
integrationfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Click to show internal directories.
Click to hide internal directories.