@@ -30,6 +30,7 @@ type Context struct {
3030 CortexConfig * config.CortexConfig `json:"cortex_config"`
3131 DatasetVersion string `json:"dataset_version"`
3232 Root string `json:"root"`
33+ MetadataRoot string `json:"metadata_root"`
3334 RawDataset RawDataset `json:"raw_dataset"`
3435 StatusPrefix string `json:"status_prefix"`
3536 App * App `json:"app"`
@@ -46,16 +47,14 @@ type Context struct {
4647}
4748
4849type RawDataset struct {
49- Key string `json:"key"`
50- MetadataKey string `json:"metadata_key"`
50+ Key string `json:"key"`
5151}
5252
5353type Resource interface {
5454 userconfig.Resource
5555 GetID () string
5656 GetIDWithTags () string
5757 GetResourceFields () * ResourceFields
58- GetMetadataKey () string
5958}
6059
6160type ComputedResource interface {
@@ -73,7 +72,6 @@ type ResourceFields struct {
7372 ID string `json:"id"`
7473 IDWithTags string `json:"id_with_tags"`
7574 ResourceType resource.Type `json:"resource_type"`
76- MetadataKey string `json:"metadata_key"`
7775}
7876
7977type ComputedResourceFields struct {
@@ -93,10 +91,6 @@ func (r *ResourceFields) GetResourceFields() *ResourceFields {
9391 return r
9492}
9593
96- func (r * ResourceFields ) GetMetadataKey () string {
97- return r .MetadataKey
98- }
99-
10094func (r * ComputedResourceFields ) GetWorkloadID () string {
10195 return r .WorkloadID
10296}
0 commit comments