Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
// ProcfileName is the name of the Procfile file.
ProcfileName = "Procfile"
)
Functions ¶
This section is empty.
Types ¶
type CMDExtractor ¶
type CMDExtractor struct {
// contains filtered or unexported fields
}
CommandExtractor is an Extractor implementation that returns a Procfile based on the CMD directive in the Dockerfile. It makes the assumption that the cmd is a "web" process.
func NewCMDExtractor ¶
func NewCMDExtractor(c *docker.Client) *CMDExtractor
type Extractor ¶
Extract represents something that can extract a Procfile from an image.
func MultiExtractor ¶
MultiExtractor is an Extractor implementation that tries multiple Extractors in succession until one succeeds.
type ExtractorFunc ¶
type FileExtractor ¶
type FileExtractor struct {
// contains filtered or unexported fields
}
FileExtractor is an implementation of the Extractor interface that extracts the Procfile from the images WORKDIR.
func NewFileExtractor ¶
func NewFileExtractor(c *docker.Client) *FileExtractor
type Procfile ¶
Procfile is a Go representation of a Procfile, which maps a named process to a command to run.
TODO: This would be better represented as a map[string][]string.
func ParseProcfile ¶
ParseProcfile takes a byte slice representing a YAML Procfile and parses it into a Procfile.
type ProcfileError ¶
type ProcfileError struct {
Err error
}
Example instance: Procfile doesn't exist
func (*ProcfileError) Error ¶
func (e *ProcfileError) Error() string