Documentation ¶
Index ¶
Constants ¶
View Source
const ( TaskLogSource = "STG" DefaultStagingTimeout = 15 * time.Minute TrustedSystemCertificatesPath = "/etc/cf-system-certificates" )
View Source
const ( TraditionalLifecycleName = "buildpack" StagingTaskCpuWeight = uint32(50) DefaultLANG = "en_US.UTF-8" )
View Source
const ( DockerLifecycleName = "docker" MountCgroupsPath = "/tmp/docker_app_lifecycle/mount_cgroups" DockerBuilderExecutablePath = "/tmp/docker_app_lifecycle/builder" DockerBuilderOutputPath = "/tmp/docker-result/result.json" )
Variables ¶
View Source
var ErrMissingAppBitsDownloadUri = errors.New(diego_errors.MISSING_APP_BITS_DOWNLOAD_URI_MESSAGE)
View Source
var ErrMissingAppId = errors.New(diego_errors.MISSING_APP_ID_MESSAGE)
View Source
var ErrMissingDockerCredentials = errors.New(diego_errors.MISSING_DOCKER_CREDENTIALS)
View Source
var ErrMissingDockerImageUrl = errors.New(diego_errors.MISSING_DOCKER_IMAGE_URL)
View Source
var ErrMissingLifecycleData = errors.New(diego_errors.MISSING_LIFECYCLE_DATA_MESSAGE)
View Source
var ErrNoCompilerDefined = errors.New(diego_errors.NO_COMPILER_DEFINED_MESSAGE)
Functions ¶
func SanitizeErrorMessage ¶
func SanitizeErrorMessage(message string) *cc_messages.StagingError
Types ¶
type Backend ¶
type Backend interface { BuildRecipe(stagingGuid string, request cc_messages.StagingRequestFromCC) (*models.TaskDefinition, string, string, error) BuildStagingResponse(*models.TaskCallbackResponse) (cc_messages.StagingResponseForCC, error) }
type Config ¶
type Config struct { TaskDomain string StagerURL string FileServerURL string CCUploaderURL string Lifecycles map[string]string InsecureDockerRegistries []string ConsulCluster string SkipCertVerify bool Sanitizer FailureReasonSanitizer DockerStagingStack string PrivilegedContainers bool }
func (Config) CallbackURL ¶
type FailureReasonSanitizer ¶
type FailureReasonSanitizer func(string) *cc_messages.StagingError
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.