@@ -30,6 +30,7 @@ type Context struct {
30
30
CortexConfig * config.CortexConfig `json:"cortex_config"`
31
31
DatasetVersion string `json:"dataset_version"`
32
32
Root string `json:"root"`
33
+ MetadataRoot string `json:"metadata_root"`
33
34
RawDataset RawDataset `json:"raw_dataset"`
34
35
StatusPrefix string `json:"status_prefix"`
35
36
App * App `json:"app"`
@@ -46,16 +47,14 @@ type Context struct {
46
47
}
47
48
48
49
type RawDataset struct {
49
- Key string `json:"key"`
50
- MetadataKey string `json:"metadata_key"`
50
+ Key string `json:"key"`
51
51
}
52
52
53
53
type Resource interface {
54
54
userconfig.Resource
55
55
GetID () string
56
56
GetIDWithTags () string
57
57
GetResourceFields () * ResourceFields
58
- GetMetadataKey () string
59
58
}
60
59
61
60
type ComputedResource interface {
@@ -73,7 +72,6 @@ type ResourceFields struct {
73
72
ID string `json:"id"`
74
73
IDWithTags string `json:"id_with_tags"`
75
74
ResourceType resource.Type `json:"resource_type"`
76
- MetadataKey string `json:"metadata_key"`
77
75
}
78
76
79
77
type ComputedResourceFields struct {
@@ -93,10 +91,6 @@ func (r *ResourceFields) GetResourceFields() *ResourceFields {
93
91
return r
94
92
}
95
93
96
- func (r * ResourceFields ) GetMetadataKey () string {
97
- return r .MetadataKey
98
- }
99
-
100
94
func (r * ComputedResourceFields ) GetWorkloadID () string {
101
95
return r .WorkloadID
102
96
}
0 commit comments