Documentation
¶
Index ¶
- func NewAccessor(request *tools.APIRequest) *collaborativeAreaMongoAccessor
- type CollaborativeArea
- func (ao *CollaborativeArea) Clear(peerID string)
- func (d *CollaborativeArea) GetAccessor(request *tools.APIRequest) utils.Accessor
- func (d *CollaborativeArea) StoreDraftDefault()
- func (d *CollaborativeArea) Trim() *CollaborativeArea
- func (ao *CollaborativeArea) VerifyAuth(request *tools.APIRequest) bool
- type CollaborativeAreaRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccessor ¶
func NewAccessor(request *tools.APIRequest) *collaborativeAreaMongoAccessor
Types ¶
type CollaborativeArea ¶
type CollaborativeArea struct { utils.AbstractObject // AbstractObject contains the basic fields of an object (id, name) IsSent bool `json:"is_sent" bson:"-"` // IsSent is a flag that indicates if the workspace is sent Version string `json:"version,omitempty" bson:"version,omitempty"` // Version is the version of the workspace Description string `json:"description,omitempty" bson:"description,omitempty" validate:"required"` // Description is the description of the workspace CollaborativeAreaRule *CollaborativeAreaRule `json:"collaborative_area,omitempty" bson:"collaborative_area,omitempty"` // CollaborativeArea is the collaborative area of the workspace Attributes map[string]interface{} `json:"attributes,omitempty" bson:"attributes,omitempty"` // Attributes is the attributes of the workspace (TODO) Workspaces []string `json:"workspaces" bson:"workspaces"` // Workspaces is the workspaces of the workspace Workflows []string `json:"workflows" bson:"workflows"` // Workflows is the workflows of the workspace AllowedPeersGroup map[string][]string `json:"allowed_peers_group" bson:"allowed_peers_group"` // AllowedPeersGroup is the group of allowed peers Rules []string `json:"rules" bson:"rules,omitempty"` // Rules is the rules of the workspace }
SharedWorkspace is a struct that represents a shared workspace WARNING : it got a shallow object version, this one is the full version full version is the one used by API other one is a shallow version used by the Lib for import cycle problem purposes
func (*CollaborativeArea) Clear ¶
func (ao *CollaborativeArea) Clear(peerID string)
func (*CollaborativeArea) GetAccessor ¶
func (d *CollaborativeArea) GetAccessor(request *tools.APIRequest) utils.Accessor
func (*CollaborativeArea) StoreDraftDefault ¶
func (d *CollaborativeArea) StoreDraftDefault()
func (*CollaborativeArea) Trim ¶
func (d *CollaborativeArea) Trim() *CollaborativeArea
func (*CollaborativeArea) VerifyAuth ¶
func (ao *CollaborativeArea) VerifyAuth(request *tools.APIRequest) bool
type CollaborativeAreaRule ¶
type CollaborativeAreaRule struct { CreatedAt time.Time `json:"created_at,omitempty" bson:"created_at,omitempty"` // CreatedAt is the time the rule was created Creator string `json:"creator,omitempty" bson:"creator,omitempty"` // Creator is the creator of the rule ExploitedBy string `json:"exploited_by,omitempty" bson:"exploited_by,omitempty"` // ExploitedBy is the exploited by of the rule }
Click to show internal directories.
Click to hide internal directories.