From c7fcde7a49e6ea090e788560a982b3a477b28829 Mon Sep 17 00:00:00 2001 From: AliDatadog Date: Fri, 29 Sep 2023 11:42:42 +0200 Subject: [PATCH] SUCCESS at position 0 --- proto/sbom/sbom.proto | 6 +++--- sbom/sbom.pb.go | 26 +++++++++++++------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/proto/sbom/sbom.proto b/proto/sbom/sbom.proto index 427152f4..3d61e5e5 100644 --- a/proto/sbom/sbom.proto +++ b/proto/sbom/sbom.proto @@ -42,7 +42,7 @@ enum SBOMSourceType { } enum SBOMStatus { - PENDING = 0; - SUCCESS = 1; - FAILED = 2; + SUCCESS = 0; + FAILED = 1; + PENDING = 2; } diff --git a/sbom/sbom.pb.go b/sbom/sbom.pb.go index 28ec74c3..f311c9b0 100644 --- a/sbom/sbom.pb.go +++ b/sbom/sbom.pb.go @@ -81,22 +81,22 @@ func (SBOMSourceType) EnumDescriptor() ([]byte, []int) { type SBOMStatus int32 const ( - SBOMStatus_PENDING SBOMStatus = 0 - SBOMStatus_SUCCESS SBOMStatus = 1 - SBOMStatus_FAILED SBOMStatus = 2 + SBOMStatus_SUCCESS SBOMStatus = 0 + SBOMStatus_FAILED SBOMStatus = 1 + SBOMStatus_PENDING SBOMStatus = 2 ) // Enum value maps for SBOMStatus. var ( SBOMStatus_name = map[int32]string{ - 0: "PENDING", - 1: "SUCCESS", - 2: "FAILED", + 0: "SUCCESS", + 1: "FAILED", + 2: "PENDING", } SBOMStatus_value = map[string]int32{ - "PENDING": 0, - "SUCCESS": 1, - "FAILED": 2, + "SUCCESS": 0, + "FAILED": 1, + "PENDING": 2, } ) @@ -332,7 +332,7 @@ func (x *SBOMEntity) GetStatus() SBOMStatus { if x != nil { return x.Status } - return SBOMStatus_PENDING + return SBOMStatus_SUCCESS } type isSBOMEntity_Sbom interface { @@ -416,9 +416,9 @@ var file_proto_sbom_sbom_proto_rawDesc = []byte{ 0x54, 0x45, 0x4d, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x49, 0x5f, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x04, 0x2a, 0x32, 0x0a, 0x0a, - 0x53, 0x42, 0x4f, 0x4d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, - 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43, 0x45, - 0x53, 0x53, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x02, + 0x53, 0x42, 0x4f, 0x4d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, + 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, + 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x44, 0x6f, 0x67, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2d, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2f, 0x76, 0x35, 0x2f, 0x73, 0x62, 0x6f, 0x6d, 0x62, 0x06, 0x70, 0x72,