From 528a7085f638dee0b59241dd6b282b5d253beb68 Mon Sep 17 00:00:00 2001 From: Ashish Tiwari Date: Fri, 18 Nov 2022 20:16:50 +0530 Subject: [PATCH] Adding MeshModelRegistrantData struct Signed-off-by: Ashish Tiwari --- models/meshmodel/registry.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/models/meshmodel/registry.go b/models/meshmodel/registry.go index 549b0ea3..02529685 100644 --- a/models/meshmodel/registry.go +++ b/models/meshmodel/registry.go @@ -10,6 +10,18 @@ import ( "github.com/layer5io/meshkit/models/meshmodel/core/v1alpha1" ) +// MeshModelRegistrantData struct defines the body of the POST request that is sent to the capability +// registry (Meshery) +// +// The body contains the +// 1. Host information +// 2. Entity type +// 3. Entity +type MeshModelRegistrantData struct { + Host Host `json:"host"` + EntityType types.CapabilityType `json:"entityType"` + Entity []byte `json:"entity"` //This will be type converted to appropriate entity on server based on passed entity type +} type Registry struct { ID uuid.UUID RegistrantID uuid.UUID