Documentation ¶
Index ¶
- Constants
- type AppConfig
- type Buildpack
- type BuildpackList
- type Colorizer
- type Config
- type Container
- type DockerEngine
- type Engine
- type ExportConfig
- type ForwardConfig
- type Forwarder
- type Image
- type LocalYML
- type NetworkConfig
- type ReadResetWriter
- type RunConfig
- type Runner
- type StageConfig
- type Stager
- type UI
- type Versioner
Constants ¶
View Source
const ForwardScript = `` /* 521-byte string literal not displayed */
View Source
const RunnerScript = `` /* 504-byte string literal not displayed */
View Source
const StagerScript = `` /* 353-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { Name string `yaml:"name"` Buildpack string `yaml:"buildpack,omitempty"` Buildpacks []string `yaml:"buildpacks,omitempty"` Command string `yaml:"command,omitempty"` DiskQuota string `yaml:"disk_quota,omitempty"` Memory string `yaml:"memory,omitempty"` StagingEnv map[string]string `yaml:"staging_env,omitempty"` RunningEnv map[string]string `yaml:"running_env,omitempty"` Env map[string]string `yaml:"env,omitempty"` Services service.Services `yaml:"services,omitempty"` }
type BuildpackList ¶ added in v0.10.0
type BuildpackList []Buildpack
var Buildpacks BuildpackList = []Buildpack{
{
Name: "staticfile_buildpack",
URL: "https://github.com/cloudfoundry/staticfile-buildpack/releases/download/v{{.}}/staticfile-buildpack-v{{.}}.zip",
VersionURL: "https://raw.githubusercontent.com/sclevine/cflocal-data/master/versions/staticfile-buildpack",
},
{
Name: "java_buildpack",
URL: "https://github.com/cloudfoundry/java-buildpack/releases/download/v{{.}}/java-buildpack-v{{.}}.zip",
VersionURL: "https://raw.githubusercontent.com/sclevine/cflocal-data/master/versions/java-buildpack",
},
{
Name: "ruby_buildpack",
URL: "https://github.com/cloudfoundry/ruby-buildpack/releases/download/v{{.}}/ruby-buildpack-v{{.}}.zip",
VersionURL: "https://raw.githubusercontent.com/sclevine/cflocal-data/master/versions/ruby-buildpack",
},
{
Name: "nodejs_buildpack",
URL: "https://github.com/cloudfoundry/nodejs-buildpack/releases/download/v{{.}}/nodejs-buildpack-v{{.}}.zip",
VersionURL: "https://raw.githubusercontent.com/sclevine/cflocal-data/master/versions/nodejs-buildpack",
},
{
Name: "go_buildpack",
URL: "https://github.com/cloudfoundry/go-buildpack/releases/download/v{{.}}/go-buildpack-v{{.}}.zip",
VersionURL: "https://raw.githubusercontent.com/sclevine/cflocal-data/master/versions/go-buildpack",
},
{
Name: "python_buildpack",
URL: "https://github.com/cloudfoundry/python-buildpack/releases/download/v{{.}}/python-buildpack-v{{.}}.zip",
VersionURL: "https://raw.githubusercontent.com/sclevine/cflocal-data/master/versions/python-buildpack",
},
{
Name: "php_buildpack",
URL: "https://github.com/cloudfoundry/php-buildpack/releases/download/v{{.}}/php-buildpack-v{{.}}.zip",
VersionURL: "https://raw.githubusercontent.com/sclevine/cflocal-data/master/versions/php-buildpack",
},
{
Name: "dotnet_core_buildpack",
URL: "https://github.com/cloudfoundry/dotnet-core-buildpack/releases/download/v{{.}}/dotnet-core-buildpack-v{{.}}.zip",
VersionURL: "https://raw.githubusercontent.com/sclevine/cflocal-data/master/versions/dotnet-core-buildpack",
},
{
Name: "binary_buildpack",
URL: "https://github.com/cloudfoundry/binary-buildpack/releases/download/v{{.}}/binary-buildpack-v{{.}}.zip",
VersionURL: "https://raw.githubusercontent.com/sclevine/cflocal-data/master/versions/binary-buildpack",
},
}
TODO: merge the version URLs into a single JSON file with download URLs
type Container ¶ added in v0.10.0
type Container interface { io.Closer ID() string CloseAfterStream(stream *engine.Stream) error Background() error Start(logPrefix string, logs io.Writer, restart <-chan time.Time) (status int64, err error) HealthCheck() <-chan string Commit(ref string) (imageID string, err error) ExtractTo(tar io.Reader, path string) error CopyTo(stream engine.Stream, path string) error CopyFrom(path string) (engine.Stream, error) }
type DockerEngine ¶ added in v0.10.0
func (*DockerEngine) NewContainer ¶ added in v0.10.0
func (d *DockerEngine) NewContainer(config *container.Config, hostConfig *container.HostConfig) (Container, error)
type ExportConfig ¶
type ForwardConfig ¶ added in v0.14.0
type NetworkConfig ¶ added in v0.14.0
type ReadResetWriter ¶ added in v0.10.0
type ReadResetWriter interface { io.ReadWriter Reset() error }
type StageConfig ¶
type Stager ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.