Documentation ¶
Index ¶
- func GenerateManifest(pf Procfile, af Appfile, r Release) manifest.Manifest
- func ParseAddons(addons []string, m *manifest.Manifest)
- type AddonHandler
- type AppFramework
- type Appfile
- type Boilerplate
- func (bp *Boilerplate) GenerateDockerIgnore() ([]byte, error)
- func (bp *Boilerplate) GenerateDockerfile() ([]byte, error)
- func (bp *Boilerplate) GenerateGitIgnore() ([]byte, error)
- func (bp *Boilerplate) GenerateLocalEnv() ([]byte, error)
- func (bp *Boilerplate) GenerateManifest() ([]byte, error)
- func (bp *Boilerplate) Setup(dir string) error
- type EnvEntry
- type Procfile
- type ProcfileEntry
- type Release
- type RubyApp
- func (ra *RubyApp) GenerateDockerIgnore() ([]byte, error)
- func (ra *RubyApp) GenerateDockerfile() ([]byte, error)
- func (ra *RubyApp) GenerateGitIgnore() ([]byte, error)
- func (ra *RubyApp) GenerateLocalEnv() ([]byte, error)
- func (ra *RubyApp) GenerateManifest() ([]byte, error)
- func (ra *RubyApp) Setup(dir string) error
- type SimpleApp
- func (sa *SimpleApp) GenerateDockerIgnore() ([]byte, error)
- func (sa *SimpleApp) GenerateDockerfile() ([]byte, error)
- func (sa *SimpleApp) GenerateGitIgnore() ([]byte, error)
- func (sa *SimpleApp) GenerateLocalEnv() ([]byte, error)
- func (sa *SimpleApp) GenerateManifest() ([]byte, error)
- func (sa *SimpleApp) Setup(dir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateManifest ¶
GenerateManifest generates a Manifest from the union of a Procfile, Appfile and Release data
func ParseAddons ¶
ParseAddons iterates through an apps addons and edits the manifest accordingly
Types ¶
type AddonHandler ¶
AddonHandler is a func type to handle addons
type AppFramework ¶
type Appfile ¶
Appfile represent specific fields of an app.json file
func ReadAppfile ¶
ReadAppfile reads a file and returns an Appfile
func ReadAppfileData ¶
ReadAppfileData reads data that follows the app.json manifest format
type Boilerplate ¶
type Boilerplate struct{}
Boilerplate contains data representing a generic app
func (*Boilerplate) GenerateDockerIgnore ¶
func (bp *Boilerplate) GenerateDockerIgnore() ([]byte, error)
GenerateDockerIgnore generates a .dockerignore file
func (*Boilerplate) GenerateDockerfile ¶
func (bp *Boilerplate) GenerateDockerfile() ([]byte, error)
GenerateDockerfile generates a Dockerfile
func (*Boilerplate) GenerateGitIgnore ¶
func (bp *Boilerplate) GenerateGitIgnore() ([]byte, error)
GenerateGitIgnore generates a .gitignore file
func (*Boilerplate) GenerateLocalEnv ¶
func (bp *Boilerplate) GenerateLocalEnv() ([]byte, error)
GenerateLocalEnv generates a .env file
func (*Boilerplate) GenerateManifest ¶
func (bp *Boilerplate) GenerateManifest() ([]byte, error)
GenerateManifest generates a docker-compose.yml file
func (*Boilerplate) Setup ¶
func (bp *Boilerplate) Setup(dir string) error
Setup runs the buildpacks and collects metadata Must be called before other Generate* methods
type EnvEntry ¶
type EnvEntry struct {
Value string
}
EnvEntry is an environment entry from an app.json file
type Procfile ¶
type Procfile []ProcfileEntry
Procfile represents a Procfile used in Heroku-based apps
func ReadProcfile ¶
ReadProcfile reads a file and returns an Procfile
func ReadProcfileData ¶
ReadProcfileData reads data that follows the Procfile format
type ProcfileEntry ¶
ProcfileEntry is an entry in a Procfile
type Release ¶
type Release struct { Addons []string ConfigVars map[string]string `yaml:"config_vars"` ProcessTypes map[string]string `yaml:"default_process_types"` }
Release is type representing output buildback release script
type RubyApp ¶
type RubyApp struct {
// contains filtered or unexported fields
}
RubyApp contains data representing a ruby app
func (*RubyApp) GenerateDockerIgnore ¶
GenerateDockerIgnore generates a .dockerignore file
func (*RubyApp) GenerateDockerfile ¶
GenerateDockerfile generates a Dockerfile specifically for ruby
func (*RubyApp) GenerateGitIgnore ¶
GenerateGitIgnore generates a .gitignore file
func (*RubyApp) GenerateLocalEnv ¶
GenerateLocalEnv generates a .env file
func (*RubyApp) GenerateManifest ¶
GenerateManifest generates a docker-compose.yml file
type SimpleApp ¶
type SimpleApp struct { Kind string // contains filtered or unexported fields }
SimpleApp contains data representing a generic app
func (*SimpleApp) GenerateDockerIgnore ¶
GenerateDockerIgnore generates a .dockerignore file
func (*SimpleApp) GenerateDockerfile ¶
GenerateDockerfile generates a Dockerfile
func (*SimpleApp) GenerateGitIgnore ¶
GenerateGitIgnore generates a .gitignore file
func (*SimpleApp) GenerateLocalEnv ¶
GenerateLocalEnv generates a .env file
func (*SimpleApp) GenerateManifest ¶
GenerateManifest generates a docker-compose.yml file