ProcessSpec contains parameters for running a script inside a container.
| 134 | |
| 135 | // ProcessSpec contains parameters for running a script inside a container. |
| 136 | type ProcessSpec struct { |
| 137 | // ID for the process. If empty, an ID will be generated. |
| 138 | ID string `json:"id,omitempty"` |
| 139 | |
| 140 | // Path to command to execute. |
| 141 | Path string `json:"path,omitempty"` |
| 142 | |
| 143 | // Arguments to pass to command. |
| 144 | Args []string `json:"args,omitempty"` |
| 145 | |
| 146 | // Environment variables. |
| 147 | Env []string `json:"env,omitempty"` |
| 148 | |
| 149 | // Working directory (default: home directory). |
| 150 | Dir string `json:"dir,omitempty"` |
| 151 | |
| 152 | // The name of a user in the container to run the process as. |
| 153 | // This must either be a username, or uid:gid. |
| 154 | User string `json:"user,omitempty"` |
| 155 | |
| 156 | // Resource limits |
| 157 | Limits ResourceLimits `json:"rlimits,omitempty"` |
| 158 | |
| 159 | // Limits to be applied to the newly created process |
| 160 | OverrideContainerLimits *ProcessLimits `json:"limits,omitempty"` |
| 161 | |
| 162 | // Execute with a TTY for stdio. |
| 163 | TTY *TTYSpec `json:"tty,omitempty"` |
| 164 | |
| 165 | // Execute process in own root filesystem, different from the other processes |
| 166 | // in the container. |
| 167 | Image ImageRef `json:"image,omitempty"` |
| 168 | |
| 169 | // Bind mounts to be applied to the process's filesystem |
| 170 | // An error is returned if ProcessSpec.Image is not also set. |
| 171 | BindMounts []BindMount `json:"bind_mounts,omitempty"` |
| 172 | } |
| 173 | |
| 174 | type TTYSpec struct { |
| 175 | WindowSize *WindowSize `json:"window_size,omitempty"` |
nothing calls this directly
no outgoing calls
no test coverage detected