recipebuilder

package
v0.0.0-...-45400c2 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: 13 Imported by: 5 modules, 20 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 (*BuildpackRecipeBuilder) BuildTask

func (BuildpackRecipeBuilder) ExtractExposedPorts

func (b BuildpackRecipeBuilder) ExtractExposedPorts(desiredApp *cc_messages.DesireAppRequestFromCC) ([]uint32, error)

type Config

type Config struct {
	Lifecycles           map[string]string
	FileServerURL        string
	KeyFactory           keys.SSHKeyFactory
	PrivilegedContainers bool
}

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 (*DockerRecipeBuilder) BuildTask

func (DockerRecipeBuilder) ExtractExposedPorts

func (b DockerRecipeBuilder) ExtractExposedPorts(desiredApp *cc_messages.DesireAppRequestFromCC) ([]uint32, error)

type Error

type Error struct {
	Type    string `json:"name"`
	Message string `json:"message"`
}

func (Error) Error

func (err Error) Error() string

type Port

type Port struct {
	Port     uint32
	Protocol string
}

Jump to

Keyboard shortcuts

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