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"`
Description string `json:"description,omitempty" bson:"description,omitempty" validate:"required"`
Attributes map[string]interface{} `json:"attributes,omitempty" bson:"attributes,omitempty"`
Workspaces []string `json:"workspaces,omitempty" bson:"workspaces,omitempty"`
Workflows []string `json:"workflows,omitempty" bson:"workflows,omitempty"`
Peers []string `json:"peers,omitempty" bson:"peers,omitempty"`
Rules []string `json:"rules,omitempty" bson:"rules,omitempty"`
Workspaces []string `json:"workspaces" bson:"workspaces"`
Workflows []string `json:"workflows" bson:"workflows"`
Peers []string `json:"peers" bson:"peers"`
Rules []string `json:"rules" bson:"rules"`
SharedRules []*rule.Rule `json:"shared_rules,omitempty"`
SharedWorkspaces []*workspace.Workspace `json:"shared_workspaces,omitempty"`
SharedWorkflows []*w.Workflow `json:"shared_workflows,omitempty"`
SharedPeers []*peer.Peer `json:"shared_peers,omitempty"`
SharedRules []*rule.Rule `json:"shared_rules,omitempty" bson:"-"`
SharedWorkspaces []*workspace.Workspace `json:"shared_workspaces,omitempty" bson:"-"`
SharedWorkflows []*w.Workflow `json:"shared_workflows,omitempty" bson:"-"`
SharedPeers []*peer.Peer `json:"shared_peers,omitempty" bson:"-"`
}
func (ao *SharedWorkspace) GetID() string {