BuildOptions group options of the Build API
| 192 | |
| 193 | // BuildOptions group options of the Build API |
| 194 | type BuildOptions struct { |
| 195 | // Pull always attempt to pull a newer version of the image |
| 196 | Pull bool |
| 197 | // Push pushes service images |
| 198 | Push bool |
| 199 | // Progress set type of progress output ("auto", "plain", "tty") |
| 200 | Progress string |
| 201 | // Args set build-time args |
| 202 | Args types.MappingWithEquals |
| 203 | // NoCache disables cache use |
| 204 | NoCache bool |
| 205 | // Quiet make the build process not output to the console |
| 206 | Quiet bool |
| 207 | // Services passed in the command line to be built |
| 208 | Services []string |
| 209 | // Deps also build selected services dependencies |
| 210 | Deps bool |
| 211 | // Ssh authentications passed in the command line |
| 212 | SSHs []types.SSHKey |
| 213 | // Memory limit for the build container |
| 214 | Memory int64 |
| 215 | // Builder name passed in the command line |
| 216 | Builder string |
| 217 | // Print don't actually run builder but print equivalent build config |
| 218 | Print bool |
| 219 | // Check let builder validate build configuration |
| 220 | Check bool |
| 221 | // Attestations enables attestation generation |
| 222 | Attestations bool |
| 223 | // Provenance generate a provenance attestation |
| 224 | Provenance string |
| 225 | // SBOM generate a SBOM attestation |
| 226 | SBOM string |
| 227 | // Out is the stream to write build progress |
| 228 | Out io.Writer |
| 229 | } |
| 230 | |
| 231 | // Apply mutates project according to build options |
| 232 | func (o BuildOptions) Apply(project *types.Project) error { |
nothing calls this directly
no outgoing calls
no test coverage detected