forked from paketo-buildpacks/packit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
process.go
22 lines (18 loc) · 801 Bytes
/
process.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package packit
// Process represents a process to be run during the launch phase as described
// in the specification:
// https://github.com/buildpacks/spec/blob/main/buildpack.md#launch. The
// fields of the process are describe in the specification of the launch.toml
// file:
// https://github.com/buildpacks/spec/blob/main/buildpack.md#launchtoml-toml.
type Process struct {
// Type is an identifier to describe the type of process to be executed, eg.
// "web".
Type string `toml:"type"`
// Command is the start command to be executed at launch.
Command string `toml:"command"`
// Args is a list of arguments to be passed to the command at launch.
Args []string `toml:"args"`
// Direct indicates whether the process should bypass the shell when invoked.
Direct bool `toml:"direct"`
}