procfile

package
v0.0.0-...-1fa5987 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const BasePort = 5000
View Source
const MaxLineLen = 4096
View Source
const PortStep = 100

Variables

This section is empty.

Functions

func Generate

func Generate(w io.Writer, procs []Process) error

func Organize

func Organize(in *[]Process)

Establishes a stable order of Processes based on PORT environment variable assignment logic. Removes redundant PORT variables from environments. If gaps are left by the port alignment mapping, they are filled in with the remaining processes sorted alphabetically by name.

Types

type Importer

type Importer struct{}

func (*Importer) Import

func (imp *Importer) Import(ctx *exohcl.AnalysisContext, bs []byte) *hcl.File

type Process

type Process struct {
	Name         string
	Program      string
	Arguments    []string
	Environment  map[string]string
	NameRange    hcl.Range
	CommandRange hcl.Range
	Range        hcl.Range
}

func ParseCommand

func ParseCommand(r io.Reader) (*Process, error)

type Procfile

type Procfile struct {
	Processes []Process
}

func Parse

func Parse(r io.Reader) (*Procfile, hcl.Diagnostics)

Jump to

Keyboard shortcuts

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