backend

package
v0.0.0-...-3d889b7 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2018 License: Apache-2.0 Imports: 16 Imported by: 9

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 ErrMissingDockerCredentials = errors.New(diego_errors.MISSING_DOCKER_CREDENTIALS)
View Source
var ErrMissingDockerImageUrl = errors.New(diego_errors.MISSING_DOCKER_IMAGE_URL)

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)
}

func NewDockerBackend

func NewDockerBackend(config Config, logger lager.Logger) Backend

func NewTraditionalBackend

func NewTraditionalBackend(config Config, logger lager.Logger) Backend

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

func (c Config) CallbackURL(stagingGuid string) string

type FailureReasonSanitizer

type FailureReasonSanitizer func(string) *cc_messages.StagingError

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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