simplify call to peer

This commit is contained in:
mr 2024-08-26 16:10:22 +02:00
parent 63b02199f6
commit 00625eabd6

View File

@ -18,15 +18,15 @@ type SharedWorkspace struct {
Version string `json:"version,omitempty" bson:"version,omitempty"` Version string `json:"version,omitempty" bson:"version,omitempty"`
Description string `json:"description,omitempty" bson:"description,omitempty" validate:"required"` Description string `json:"description,omitempty" bson:"description,omitempty" validate:"required"`
Attributes map[string]interface{} `json:"attributes,omitempty" bson:"attributes,omitempty"` Attributes map[string]interface{} `json:"attributes,omitempty" bson:"attributes,omitempty"`
Workspaces []string `json:"workspaces,omitempty" bson:"workspaces,omitempty"` Workspaces []string `json:"workspaces" bson:"workspaces"`
Workflows []string `json:"workflows,omitempty" bson:"workflows,omitempty"` Workflows []string `json:"workflows" bson:"workflows"`
Peers []string `json:"peers,omitempty" bson:"peers,omitempty"` Peers []string `json:"peers" bson:"peers"`
Rules []string `json:"rules,omitempty" bson:"rules,omitempty"` Rules []string `json:"rules" bson:"rules"`
SharedRules []*rule.Rule `json:"shared_rules,omitempty"` SharedRules []*rule.Rule `json:"shared_rules,omitempty" bson:"-"`
SharedWorkspaces []*workspace.Workspace `json:"shared_workspaces,omitempty"` SharedWorkspaces []*workspace.Workspace `json:"shared_workspaces,omitempty" bson:"-"`
SharedWorkflows []*w.Workflow `json:"shared_workflows,omitempty"` SharedWorkflows []*w.Workflow `json:"shared_workflows,omitempty" bson:"-"`
SharedPeers []*peer.Peer `json:"shared_peers,omitempty"` SharedPeers []*peer.Peer `json:"shared_peers,omitempty" bson:"-"`
} }
func (ao *SharedWorkspace) GetID() string { func (ao *SharedWorkspace) GetID() string {