refactor(cmd): rename deleted to missing in json output

main
sundowndev 2021-03-29 11:51:03 +02:00
parent 03fc4062be
commit 01a637f494
7 changed files with 14 additions and 14 deletions

View File

@ -24,7 +24,7 @@ type Summary struct {
TotalResources int `json:"total_resources"`
TotalDrifted int `json:"total_drifted"`
TotalUnmanaged int `json:"total_unmanaged"`
TotalDeleted int `json:"total_deleted"`
TotalDeleted int `json:"total_missing"`
TotalManaged int `json:"total_managed"`
}
@ -46,7 +46,7 @@ type serializableAnalysis struct {
Summary Summary `json:"summary"`
Managed []resource.SerializableResource `json:"managed"`
Unmanaged []resource.SerializableResource `json:"unmanaged"`
Deleted []resource.SerializableResource `json:"deleted"`
Deleted []resource.SerializableResource `json:"missing"`
Differences []serializableDifference `json:"differences"`
Coverage int `json:"coverage"`
Alerts map[string][]alerter.SerializableAlert `json:"alerts"`

View File

@ -3,7 +3,7 @@
"total_resources": 6,
"total_drifted": 1,
"total_unmanaged": 2,
"total_deleted": 2,
"total_missing": 2,
"total_managed": 2
},
"managed": [
@ -26,7 +26,7 @@
"type": "aws_s3_bucket_notification"
}
],
"deleted": [
"missing": [
{
"id": "test-driftctl2",
"type": "aws_iam_user"

View File

@ -3,7 +3,7 @@
"total_resources": 6,
"total_drifted": 1,
"total_unmanaged": 2,
"total_deleted": 2,
"total_missing": 2,
"total_managed": 2
},
"managed": [
@ -26,7 +26,7 @@
"type": "aws_s3_bucket_notification"
}
],
"deleted": [
"missing": [
{
"id": "test-driftctl2",
"type": "aws_iam_user"

View File

@ -3,7 +3,7 @@
"total_resources": 6,
"total_drifted": 1,
"total_unmanaged": 2,
"total_deleted": 2,
"total_missing": 2,
"total_managed": 2
},
"managed": [
@ -26,7 +26,7 @@
"type": "aws_unmanaged_resource"
}
],
"deleted": [
"missing": [
{
"id": "deleted-id-1",
"type": "aws_deleted_resource"

View File

@ -3,12 +3,12 @@
"total_resources": 0,
"total_drifted": 0,
"total_unmanaged": 0,
"total_deleted": 0,
"total_missing": 0,
"total_managed": 0
},
"managed": null,
"unmanaged": null,
"deleted": null,
"missing": null,
"differences": null,
"coverage": 0,
"alerts": {

View File

@ -3,12 +3,12 @@
"total_resources": 0,
"total_drifted": 0,
"total_unmanaged": 0,
"total_deleted": 0,
"total_missing": 0,
"total_managed": 0
},
"managed": null,
"unmanaged": null,
"deleted": null,
"missing": null,
"differences": null,
"coverage": 0,
"alerts": {

View File

@ -3,7 +3,7 @@
"total_resources": 1,
"total_drifted": 1,
"total_unmanaged": 0,
"total_deleted": 0,
"total_missing": 0,
"total_managed": 1
},
"managed": [
@ -13,7 +13,7 @@
}
],
"unmanaged": null,
"deleted": null,
"missing": null,
"differences": [
{
"res": {