@@ -130,6 +130,7 @@ projectType: string - The project framework that is used in the devfile
130
130
language: string - The project language that is used in the devfile
131
131
links: map[string]string - Links related to the devfile
132
132
commandGroups: map[CommandGroupKind]bool - The command groups that are used in the devfile
133
+ deploymentScopes: map[DeploymentScopeKind]bool - The deployment scope that are detected in the devfile
133
134
resources: []string - The file resources that compose a devfile stack.
134
135
starterProjects: string[] - The project templates that can be used in the devfile
135
136
git: *git - The information of remote repositories
@@ -139,26 +140,27 @@ versions: []Version - The list of stack versions information
139
140
140
141
// Schema is the index file schema
141
142
type Schema struct {
142
- Name string `yaml:"name,omitempty" json:"name,omitempty"`
143
- Version string `yaml:"version,omitempty" json:"version,omitempty"`
144
- Attributes map [string ]apiext.JSON `yaml:"attributes,omitempty" json:"attributes,omitempty"`
145
- DisplayName string `yaml:"displayName,omitempty" json:"displayName,omitempty"`
146
- Description string `yaml:"description,omitempty" json:"description,omitempty"`
147
- Type DevfileType `yaml:"type,omitempty" json:"type,omitempty"`
148
- Tags []string `yaml:"tags,omitempty" json:"tags,omitempty"`
149
- Architectures []string `yaml:"architectures,omitempty" json:"architectures,omitempty"`
150
- Icon string `yaml:"icon,omitempty" json:"icon,omitempty"`
151
- GlobalMemoryLimit string `yaml:"globalMemoryLimit,omitempty" json:"globalMemoryLimit,omitempty"`
152
- ProjectType string `yaml:"projectType,omitempty" json:"projectType,omitempty"`
153
- Language string `yaml:"language,omitempty" json:"language,omitempty"`
154
- Links map [string ]string `yaml:"links,omitempty" json:"links,omitempty"`
155
- CommandGroups map [CommandGroupKind ]bool `yaml:"commandGroups,omitempty" json:"commandGroups,omitempty"`
156
- Resources []string `yaml:"resources,omitempty" json:"resources,omitempty"`
157
- StarterProjects []string `yaml:"starterProjects,omitempty" json:"starterProjects,omitempty"`
158
- Git * Git `yaml:"git,omitempty" json:"git,omitempty"`
159
- Provider string `yaml:"provider,omitempty" json:"provider,omitempty"`
160
- SupportUrl string `yaml:"supportUrl,omitempty" json:"supportUrl,omitempty"`
161
- Versions []Version `yaml:"versions,omitempty" json:"versions,omitempty"`
143
+ Name string `yaml:"name,omitempty" json:"name,omitempty"`
144
+ Version string `yaml:"version,omitempty" json:"version,omitempty"`
145
+ Attributes map [string ]apiext.JSON `yaml:"attributes,omitempty" json:"attributes,omitempty"`
146
+ DisplayName string `yaml:"displayName,omitempty" json:"displayName,omitempty"`
147
+ Description string `yaml:"description,omitempty" json:"description,omitempty"`
148
+ Type DevfileType `yaml:"type,omitempty" json:"type,omitempty"`
149
+ Tags []string `yaml:"tags,omitempty" json:"tags,omitempty"`
150
+ Architectures []string `yaml:"architectures,omitempty" json:"architectures,omitempty"`
151
+ Icon string `yaml:"icon,omitempty" json:"icon,omitempty"`
152
+ GlobalMemoryLimit string `yaml:"globalMemoryLimit,omitempty" json:"globalMemoryLimit,omitempty"`
153
+ ProjectType string `yaml:"projectType,omitempty" json:"projectType,omitempty"`
154
+ Language string `yaml:"language,omitempty" json:"language,omitempty"`
155
+ Links map [string ]string `yaml:"links,omitempty" json:"links,omitempty"`
156
+ CommandGroups map [CommandGroupKind ]bool `yaml:"commandGroups,omitempty" json:"commandGroups,omitempty"`
157
+ DeploymentScopes map [DeploymentScopeKind ]bool `yaml:"deploymentScopes,omitempty" json:"deploymentScopes,omitempty"`
158
+ Resources []string `yaml:"resources,omitempty" json:"resources,omitempty"`
159
+ StarterProjects []string `yaml:"starterProjects,omitempty" json:"starterProjects,omitempty"`
160
+ Git * Git `yaml:"git,omitempty" json:"git,omitempty"`
161
+ Provider string `yaml:"provider,omitempty" json:"provider,omitempty"`
162
+ SupportUrl string `yaml:"supportUrl,omitempty" json:"supportUrl,omitempty"`
163
+ Versions []Version `yaml:"versions,omitempty" json:"versions,omitempty"`
162
164
}
163
165
164
166
// DevfileType describes the type of devfile
@@ -183,6 +185,14 @@ const (
183
185
DeployCommandGroupKind CommandGroupKind = "deploy"
184
186
)
185
187
188
+ // DeploymentScopeKind describes the kind of deployment scope
189
+ type DeploymentScopeKind string
190
+
191
+ const (
192
+ InnerloopKind DeploymentScopeKind = "innerloop"
193
+ OuterloopKind DeploymentScopeKind = "outerloop"
194
+ )
195
+
186
196
// StarterProject is the devfile starter project
187
197
type StarterProject struct {
188
198
Name string `yaml:"name,omitempty" json:"name,omitempty"`
@@ -241,16 +251,17 @@ type StackInfo struct {
241
251
242
252
// Version stores the information for each stack version
243
253
type Version struct {
244
- Version string `yaml:"version,omitempty" json:"version,omitempty"`
245
- SchemaVersion string `yaml:"schemaVersion,omitempty" json:"schemaVersion,omitempty"`
246
- Default bool `yaml:"default,omitempty" json:"default,omitempty"`
247
- Git * Git `yaml:"git,omitempty" json:"git,omitempty"`
248
- Description string `yaml:"description,omitempty" json:"description,omitempty"`
249
- Tags []string `yaml:"tags,omitempty" json:"tags,omitempty"`
250
- Architectures []string `yaml:"architectures,omitempty" json:"architectures,omitempty"`
251
- Icon string `yaml:"icon,omitempty" json:"icon,omitempty"`
252
- Links map [string ]string `yaml:"links,omitempty" json:"links,omitempty"`
253
- CommandGroups map [CommandGroupKind ]bool `yaml:"commandGroups,omitempty" json:"commandGroups,omitempty"`
254
- Resources []string `yaml:"resources,omitempty" json:"resources,omitempty"`
255
- StarterProjects []string `yaml:"starterProjects,omitempty" json:"starterProjects,omitempty"`
254
+ Version string `yaml:"version,omitempty" json:"version,omitempty"`
255
+ SchemaVersion string `yaml:"schemaVersion,omitempty" json:"schemaVersion,omitempty"`
256
+ Default bool `yaml:"default,omitempty" json:"default,omitempty"`
257
+ Git * Git `yaml:"git,omitempty" json:"git,omitempty"`
258
+ Description string `yaml:"description,omitempty" json:"description,omitempty"`
259
+ Tags []string `yaml:"tags,omitempty" json:"tags,omitempty"`
260
+ Architectures []string `yaml:"architectures,omitempty" json:"architectures,omitempty"`
261
+ Icon string `yaml:"icon,omitempty" json:"icon,omitempty"`
262
+ Links map [string ]string `yaml:"links,omitempty" json:"links,omitempty"`
263
+ CommandGroups map [CommandGroupKind ]bool `yaml:"commandGroups,omitempty" json:"commandGroups,omitempty"`
264
+ DeploymentScopes map [DeploymentScopeKind ]bool `yaml:"deploymentScopes,omitempty" json:"deploymentScopes,omitempty"`
265
+ Resources []string `yaml:"resources,omitempty" json:"resources,omitempty"`
266
+ StarterProjects []string `yaml:"starterProjects,omitempty" json:"starterProjects,omitempty"`
256
267
}
0 commit comments