...
1 package api
2
3 import (
4 "github.com/devfile/registry-support/index/generator/schema"
5 )
6
7
8 type Registry struct {
9 Name string `json:"name"`
10 URL string `json:"url"`
11 Secure bool `json:"secure"`
12
13 Priority int `json:"-"`
14 }
15
16
17 type DevfileStack struct {
18 Name string `json:"name"`
19 DisplayName string `json:"displayName"`
20 Description string `json:"description"`
21 Registry Registry `json:"registry"`
22 Language string `json:"language"`
23 Tags []string `json:"tags"`
24 ProjectType string `json:"projectType"`
25
26
27
28 DefaultVersion string `json:"version"`
29 Versions []DevfileStackVersion `json:"versions,omitempty"`
30
31
32
33
34 DefaultStarterProjects []string `json:"starterProjects"`
35 DevfileData *DevfileData `json:"devfileData,omitempty"`
36 Architectures []string `json:"architectures,omitempty"`
37 }
38
39 type DevfileStackVersion struct {
40 Version string `json:"version,omitempty"`
41 IsDefault bool `json:"isDefault"`
42 SchemaVersion string `json:"schemaVersion,omitempty"`
43 StarterProjects []string `json:"starterProjects"`
44 CommandGroups map[schema.CommandGroupKind]bool `json:"commandGroups"`
45 }
46
View as plain text