|
| 1 | +/* |
| 2 | + Copyright 2020 The Compose Specification Authors. |
| 3 | +
|
| 4 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + you may not use this file except in compliance with the License. |
| 6 | + You may obtain a copy of the License at |
| 7 | +
|
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | + Unless required by applicable law or agreed to in writing, software |
| 11 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + See the License for the specific language governing permissions and |
| 14 | + limitations under the License. |
| 15 | +*/ |
| 16 | + |
| 17 | +package types |
| 18 | + |
| 19 | +// BuildConfig is a type for build |
| 20 | +type BuildConfig struct { |
| 21 | + Context string `yaml:"context,omitempty" json:"context,omitempty"` |
| 22 | + Dockerfile string `yaml:"dockerfile,omitempty" json:"dockerfile,omitempty"` |
| 23 | + DockerfileInline string `yaml:"dockerfile_inline,omitempty" json:"dockerfile_inline,omitempty"` |
| 24 | + Entitlements []string `yaml:"entitlements,omitempty" json:"entitlements,omitempty"` |
| 25 | + Args MappingWithEquals `yaml:"args,omitempty" json:"args,omitempty"` |
| 26 | + Provenance string `yaml:"provenance,omitempty" json:"provenance,omitempty"` |
| 27 | + SBOM string `yaml:"sbom,omitempty" json:"sbom,omitempty"` |
| 28 | + SSH SSHConfig `yaml:"ssh,omitempty" json:"ssh,omitempty"` |
| 29 | + Labels Labels `yaml:"labels,omitempty" json:"labels,omitempty"` |
| 30 | + CacheFrom StringList `yaml:"cache_from,omitempty" json:"cache_from,omitempty"` |
| 31 | + CacheTo StringList `yaml:"cache_to,omitempty" json:"cache_to,omitempty"` |
| 32 | + NoCache bool `yaml:"no_cache,omitempty" json:"no_cache,omitempty"` |
| 33 | + NoCacheFilter StringList `yaml:"no_cache_filter,omitempty" json:"no_cache_filter,omitempty"` |
| 34 | + AdditionalContexts Mapping `yaml:"additional_contexts,omitempty" json:"additional_contexts,omitempty"` |
| 35 | + Pull bool `yaml:"pull,omitempty" json:"pull,omitempty"` |
| 36 | + ExtraHosts HostsList `yaml:"extra_hosts,omitempty" json:"extra_hosts,omitempty"` |
| 37 | + Isolation string `yaml:"isolation,omitempty" json:"isolation,omitempty"` |
| 38 | + Network string `yaml:"network,omitempty" json:"network,omitempty"` |
| 39 | + Target string `yaml:"target,omitempty" json:"target,omitempty"` |
| 40 | + Secrets []ServiceSecretConfig `yaml:"secrets,omitempty" json:"secrets,omitempty"` |
| 41 | + ShmSize UnitBytes `yaml:"shm_size,omitempty" json:"shm_size,omitempty"` |
| 42 | + Tags StringList `yaml:"tags,omitempty" json:"tags,omitempty"` |
| 43 | + Ulimits map[string]*UlimitsConfig `yaml:"ulimits,omitempty" json:"ulimits,omitempty"` |
| 44 | + Platforms StringList `yaml:"platforms,omitempty" json:"platforms,omitempty"` |
| 45 | + Privileged bool `yaml:"privileged,omitempty" json:"privileged,omitempty"` |
| 46 | + |
| 47 | + Extensions Extensions `yaml:"#extensions,inline,omitempty" json:"-"` |
| 48 | +} |
0 commit comments