Skip to content

Commit

Permalink
Adding MeshModelRegistrantData struct
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Tiwari <[email protected]>
  • Loading branch information
Revolyssup committed Nov 18, 2022
1 parent 2b901d2 commit 528a708
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions models/meshmodel/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 528a708

Please sign in to comment.