Documentation ¶
Index ¶
- Constants
- Variables
- type BuildpackRecipeBuilder
- func (b *BuildpackRecipeBuilder) Build(desiredApp *cc_messages.DesireAppRequestFromCC) (*models.DesiredLRP, error)
- func (b *BuildpackRecipeBuilder) BuildTask(task *cc_messages.TaskRequestFromCC) (*models.TaskDefinition, error)
- func (b BuildpackRecipeBuilder) ExtractExposedPorts(desiredApp *cc_messages.DesireAppRequestFromCC) ([]uint32, error)
- type Config
- type DockerExecutionMetadata
- type DockerRecipeBuilder
- func (b *DockerRecipeBuilder) Build(desiredApp *cc_messages.DesireAppRequestFromCC) (*models.DesiredLRP, error)
- func (b *DockerRecipeBuilder) BuildTask(task *cc_messages.TaskRequestFromCC) (*models.TaskDefinition, error)
- func (b DockerRecipeBuilder) ExtractExposedPorts(desiredApp *cc_messages.DesireAppRequestFromCC) ([]uint32, error)
- type Error
- type Port
- type RecipeBuilder
Constants ¶
View Source
const ( DockerScheme = "docker" DockerIndexServer = "docker.io" )
View Source
const ( MinCpuProxy = 128 MaxCpuProxy = 8192 DefaultFileDescriptorLimit = uint64(1024) LRPLogSource = "CELL" AppLogSource = "APP" HealthLogSource = "HEALTH" Router = "router" DefaultPort = uint32(8080) DefaultSSHPort = uint32(2222) DefaultLANG = "en_US.UTF-8" TrustedSystemCertificatesPath = "/etc/cf-system-certificates" )
Variables ¶
View Source
var ( ErrNoDockerImage = Error{Type: "ErrNoDockerImage", Message: "no docker image provided"} ErrNoLifecycleDefined = Error{Type: "ErrNoLifecycleDefined", Message: "no lifecycle binary bundle defined for stack"} ErrDropletSourceMissing = Error{Type: "ErrAppSourceMissing", Message: "desired app missing droplet_uri"} ErrDockerImageMissing = Error{Type: "ErrDockerImageMissing", Message: "desired app missing docker_image"} ErrMultipleAppSources = Error{Type: "ErrMultipleAppSources", Message: "desired app contains both droplet_uri and docker_image; exactly one is required."} )
Functions ¶
This section is empty.
Types ¶
type BuildpackRecipeBuilder ¶
type BuildpackRecipeBuilder struct {
// contains filtered or unexported fields
}
func NewBuildpackRecipeBuilder ¶
func NewBuildpackRecipeBuilder(logger lager.Logger, config Config) *BuildpackRecipeBuilder
func (*BuildpackRecipeBuilder) Build ¶
func (b *BuildpackRecipeBuilder) Build(desiredApp *cc_messages.DesireAppRequestFromCC) (*models.DesiredLRP, error)
func (*BuildpackRecipeBuilder) BuildTask ¶
func (b *BuildpackRecipeBuilder) BuildTask(task *cc_messages.TaskRequestFromCC) (*models.TaskDefinition, error)
func (BuildpackRecipeBuilder) ExtractExposedPorts ¶
func (b BuildpackRecipeBuilder) ExtractExposedPorts(desiredApp *cc_messages.DesireAppRequestFromCC) ([]uint32, error)
type DockerExecutionMetadata ¶
type DockerExecutionMetadata struct { Cmd []string `json:"cmd,omitempty"` Entrypoint []string `json:"entrypoint,omitempty"` Workdir string `json:"workdir,omitempty"` ExposedPorts []Port `json:"ports,omitempty"` User string `json:"user,omitempty"` }
func NewDockerExecutionMetadata ¶
func NewDockerExecutionMetadata(dockerExecutionMetadata string) (DockerExecutionMetadata, error)
type DockerRecipeBuilder ¶
type DockerRecipeBuilder struct {
// contains filtered or unexported fields
}
func NewDockerRecipeBuilder ¶
func NewDockerRecipeBuilder(logger lager.Logger, config Config) *DockerRecipeBuilder
func (*DockerRecipeBuilder) Build ¶
func (b *DockerRecipeBuilder) Build(desiredApp *cc_messages.DesireAppRequestFromCC) (*models.DesiredLRP, error)
func (*DockerRecipeBuilder) BuildTask ¶
func (b *DockerRecipeBuilder) BuildTask(task *cc_messages.TaskRequestFromCC) (*models.TaskDefinition, error)
func (DockerRecipeBuilder) ExtractExposedPorts ¶
func (b DockerRecipeBuilder) ExtractExposedPorts(desiredApp *cc_messages.DesireAppRequestFromCC) ([]uint32, error)
type RecipeBuilder ¶
type RecipeBuilder interface { Build(*cc_messages.DesireAppRequestFromCC) (*models.DesiredLRP, error) BuildTask(*cc_messages.TaskRequestFromCC) (*models.TaskDefinition, error) ExtractExposedPorts(*cc_messages.DesireAppRequestFromCC) ([]uint32, error) }
Click to show internal directories.
Click to hide internal directories.