File tree Expand file tree Collapse file tree 3 files changed +13
-12
lines changed Expand file tree Collapse file tree 3 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 1
1
package schemas
2
2
3
3
import "embed"
4
+
4
5
//go:embed configuration
5
- var Schemas embed.FS
6
+ var Schemas embed.FS
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ func getSchemaMap() map[string]string {
9
9
"application" : "configuration/applicationImport.json" ,
10
10
"filter" : "configuration/filterImport.json" ,
11
11
"design" : "configuration/designImport.json" ,
12
- "publish" : "publish/publishModal.json" ,
12
+ "publish" : "publish/publishModal.json" ,
13
13
}
14
14
}
15
15
@@ -18,7 +18,7 @@ func getUiSchemaMap() map[string]string {
18
18
"application" : "configuration/uiSchemaApplication.json" ,
19
19
"design" : "configuration/uiSchemaDesignImport.json" ,
20
20
"filter" : "configuration/uiSchemaFilter.json" ,
21
- "publish" : "publish/uiSchemaPublishSchema.json" ,
21
+ "publish" : "publish/uiSchemaPublishSchema.json" ,
22
22
}
23
23
}
24
24
Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ const AhHelmExporterEndpoint = ArtifactHubAPIEndpint + "/helm-exporter"
21
21
// internal representation of artifacthub package
22
22
// it contains information we need to identify a package using ArtifactHub API
23
23
type AhPackage struct {
24
- Name string
25
- Repository string
26
- Organization string
27
- RepoUrl string
28
- ChartUrl string
29
- Official bool
30
- VerifiedPublisher bool
31
- CNCF bool
32
- Version string
24
+ Name string `yaml:"name"`
25
+ Repository string `yaml:"repository"`
26
+ Organization string `yaml:"organization"`
27
+ RepoUrl string `yaml:"repo_url"`
28
+ ChartUrl string `yaml:"chart_url"`
29
+ Official bool `yaml:"official"`
30
+ VerifiedPublisher bool `yaml:"verified_publisher"`
31
+ CNCF bool `yaml:"cncf"`
32
+ Version string `yaml:"version"`
33
33
}
34
34
35
35
func (pkg AhPackage ) GenerateComponents () ([]v1alpha1.ComponentDefinition , error ) {
You can’t perform that action at this time.
0 commit comments