diff --git a/go/info/patch_envelope.pb.go b/go/info/patch_envelope.pb.go
index 75babf9d..a594bb03 100644
--- a/go/info/patch_envelope.pb.go
+++ b/go/info/patch_envelope.pb.go
@@ -314,8 +314,8 @@ type ZInfoPatchEnvelopeUsage struct {
// count the number of times app instance called patch APIs
PatchApiCallCount uint64 `protobuf:"varint,1,opt,name=patchApiCallCount,proto3" json:"patchApiCallCount,omitempty"`
- // information about every patchEnvelope referred to this app
- PatchStatus []*ZInfoPatchEnvelopeApp `protobuf:"bytes,2,rep,name=patchStatus,proto3" json:"patchStatus,omitempty"`
+ // information about patchEnvelope referred to this app
+ PatchStatus *ZInfoPatchEnvelopeApp `protobuf:"bytes,2,opt,name=patchStatus,proto3" json:"patchStatus,omitempty"`
}
func (x *ZInfoPatchEnvelopeUsage) Reset() {
@@ -357,7 +357,7 @@ func (x *ZInfoPatchEnvelopeUsage) GetPatchApiCallCount() uint64 {
return 0
}
-func (x *ZInfoPatchEnvelopeUsage) GetPatchStatus() []*ZInfoPatchEnvelopeApp {
+func (x *ZInfoPatchEnvelopeUsage) GetPatchStatus() *ZInfoPatchEnvelopeApp {
if x != nil {
return x.PatchStatus
}
@@ -469,7 +469,7 @@ var file_info_patch_envelope_proto_rawDesc = []byte{
0x70, 0x69, 0x43, 0x61, 0x6c, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
0x04, 0x52, 0x11, 0x70, 0x61, 0x74, 0x63, 0x68, 0x41, 0x70, 0x69, 0x43, 0x61, 0x6c, 0x6c, 0x43,
0x6f, 0x75, 0x6e, 0x74, 0x12, 0x4c, 0x0a, 0x0b, 0x70, 0x61, 0x74, 0x63, 0x68, 0x53, 0x74, 0x61,
- 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6f, 0x72, 0x67, 0x2e,
+ 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6f, 0x72, 0x67, 0x2e,
0x6c, 0x66, 0x65, 0x64, 0x67, 0x65, 0x2e, 0x65, 0x76, 0x65, 0x2e, 0x69, 0x6e, 0x66, 0x6f, 0x2e,
0x5a, 0x49, 0x6e, 0x66, 0x6f, 0x50, 0x61, 0x74, 0x63, 0x68, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f,
0x70, 0x65, 0x41, 0x70, 0x70, 0x52, 0x0b, 0x70, 0x61, 0x74, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74,
diff --git a/images/devconfig.svg b/images/devconfig.svg
index 64d136e6..4cff910b 100644
--- a/images/devconfig.svg
+++ b/images/devconfig.svg
@@ -12,6 +12,30 @@
org.lfedge.eve.config
+
+cluster_c75e6f3a3956
+
+
+org.lfedge.eve.common
+
+
+
+
+cluster_087a8b768833
+
+
+netconfig.proto
+
+
+
+
+cluster_a1a638239bbb
+
+
+edgeview.proto
+
+
+
cluster_ed03ba9919d5
@@ -60,38 +84,6 @@
-
-cluster_c75e6f3a3956
-
-
-org.lfedge.eve.common
-
-
-
-
-cluster_087a8b768833
-
-
-netconfig.proto
-
-
-
-
-cluster_a1a638239bbb
-
-
-edgeview.proto
-
-
-
-
-cluster_f89bbdbe2429
-
-
-netinst.proto
-
-
-
cluster_0eca8c4caf24
@@ -124,6 +116,14 @@
+
+cluster_f89bbdbe2429
+
+
+netinst.proto
+
+
+
cluster_c4848830929a
diff --git a/proto/info/patch_envelope.proto b/proto/info/patch_envelope.proto
index 7aed49c9..fa3bbec7 100644
--- a/proto/info/patch_envelope.proto
+++ b/proto/info/patch_envelope.proto
@@ -66,8 +66,8 @@ message ZInfoOpaqueAppInstanceStatus {
message ZInfoPatchEnvelopeUsage {
// count the number of times app instance called patch APIs
uint64 patchApiCallCount = 1;
- // information about every patchEnvelope referred to this app
- repeated ZInfoPatchEnvelopeApp patchStatus = 2;
+ // information about patchEnvelope referred to this app
+ ZInfoPatchEnvelopeApp patchStatus = 2;
}
// Statistics on usage of specific patchEnvelope for specific app
diff --git a/python/info/patch_envelope_pb2.py b/python/info/patch_envelope_pb2.py
index e2f39036..e4c1ae32 100644
--- a/python/info/patch_envelope_pb2.py
+++ b/python/info/patch_envelope_pb2.py
@@ -13,7 +13,7 @@
-DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19info/patch_envelope.proto\x12\x13org.lfedge.eve.info\"\x9b\x01\n\x12ZInfoPatchEnvelope\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12<\n\x05state\x18\x04 \x01(\x0e\x32-.org.lfedge.eve.info.EVE_PATCH_ENVELOPE_STATE\x12\x0c\n\x04size\x18\x05 \x01(\x04\x12\x0e\n\x06\x65rrors\x18\x06 \x03(\t\"\x9f\x01\n\x1cZInfoOpaqueAppInstanceStatus\x12\r\n\x05\x61ppId\x18\x01 \x01(\t\x12\x0f\n\x07\x61ppName\x18\x02 \x01(\t\x12I\n\x12opaqueStatusAction\x18\x03 \x01(\x0e\x32-.org.lfedge.eve.info.EVE_OPAQUE_STATUS_ACTION\x12\x14\n\x0copaqueStatus\x18\x04 \x01(\x0c\"u\n\x17ZInfoPatchEnvelopeUsage\x12\x19\n\x11patchApiCallCount\x18\x01 \x01(\x04\x12?\n\x0bpatchStatus\x18\x02 \x03(\x0b\x32*.org.lfedge.eve.info.ZInfoPatchEnvelopeApp\"O\n\x15ZInfoPatchEnvelopeApp\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x17\n\x0ftimesDownloaded\x18\x03 \x01(\x04*\xa1\x01\n\x18\x45VE_PATCH_ENVELOPE_STATE\x12\x10\n\x0cPATCH_UNKOWN\x10\x00\x12\x0f\n\x0bPATCH_ERROR\x10\x01\x12\x12\n\x0ePATCH_RECEIVED\x10\x02\x12\x15\n\x11PATCH_DOWNLOADING\x10\x03\x12\x14\n\x10PATCH_DOWNLOADED\x10\x04\x12\x0f\n\x0bPATCH_READY\x10\x05\x12\x10\n\x0cPATCH_ACTIVE\x10\x06*5\n\x18\x45VE_OPAQUE_STATUS_ACTION\x12\n\n\x06IGNORE\x10\x00\x12\r\n\tOVERWRITE\x10\x01\x42\x39\n\x13org.lfedge.eve.infoZ\"github.com/lf-edge/eve-api/go/infob\x06proto3')
+DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19info/patch_envelope.proto\x12\x13org.lfedge.eve.info\"\x9b\x01\n\x12ZInfoPatchEnvelope\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12<\n\x05state\x18\x04 \x01(\x0e\x32-.org.lfedge.eve.info.EVE_PATCH_ENVELOPE_STATE\x12\x0c\n\x04size\x18\x05 \x01(\x04\x12\x0e\n\x06\x65rrors\x18\x06 \x03(\t\"\x9f\x01\n\x1cZInfoOpaqueAppInstanceStatus\x12\r\n\x05\x61ppId\x18\x01 \x01(\t\x12\x0f\n\x07\x61ppName\x18\x02 \x01(\t\x12I\n\x12opaqueStatusAction\x18\x03 \x01(\x0e\x32-.org.lfedge.eve.info.EVE_OPAQUE_STATUS_ACTION\x12\x14\n\x0copaqueStatus\x18\x04 \x01(\x0c\"u\n\x17ZInfoPatchEnvelopeUsage\x12\x19\n\x11patchApiCallCount\x18\x01 \x01(\x04\x12?\n\x0bpatchStatus\x18\x02 \x01(\x0b\x32*.org.lfedge.eve.info.ZInfoPatchEnvelopeApp\"O\n\x15ZInfoPatchEnvelopeApp\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x17\n\x0ftimesDownloaded\x18\x03 \x01(\x04*\xa1\x01\n\x18\x45VE_PATCH_ENVELOPE_STATE\x12\x10\n\x0cPATCH_UNKOWN\x10\x00\x12\x0f\n\x0bPATCH_ERROR\x10\x01\x12\x12\n\x0ePATCH_RECEIVED\x10\x02\x12\x15\n\x11PATCH_DOWNLOADING\x10\x03\x12\x14\n\x10PATCH_DOWNLOADED\x10\x04\x12\x0f\n\x0bPATCH_READY\x10\x05\x12\x10\n\x0cPATCH_ACTIVE\x10\x06*5\n\x18\x45VE_OPAQUE_STATUS_ACTION\x12\n\n\x06IGNORE\x10\x00\x12\r\n\tOVERWRITE\x10\x01\x42\x39\n\x13org.lfedge.eve.infoZ\"github.com/lf-edge/eve-api/go/infob\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)