Documentation ¶
Overview ¶
Package processfile allows for reading, modifying, and writing Procfile format files.
It does not preserve the ordering of definitions within a Procfile.
Index ¶
- type Procfile
- func (p Procfile) Add(process, entrypoint string) Procfile
- func (p Procfile) Defined(process string) bool
- func (p Procfile) Entrypoint(process string) (string, bool)
- func (p Procfile) Processes() []string
- func (p Procfile) Remove(process string) Procfile
- func (p Procfile) Write(out io.Writer) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Procfile ¶
Procfile contains the definition of a Procfile.
func Read ¶
Read reads and parses a Procfile from the given io.Reader.
Read does not call Close() on in, the caller is expected to do so.
func (Procfile) Add ¶
Add adds a new entry to the Procfile, overwriting any previous entry for the same process.
func (Procfile) Defined ¶
Defined checks whether the given process is defined (has an entrypoint) in the Procfile.
func (Procfile) Entrypoint ¶
Entrypoint returns the entrypoint for the given process as defined in the Procfile.
Click to show internal directories.
Click to hide internal directories.