Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccessor ¶
func NewAccessor(request *tools.APIRequest) *ruleMongoAccessor
New creates a new instance of the ruleMongoAccessor
Types ¶
type Rule ¶
type Rule struct { utils.AbstractObject // AbstractObject contains the basic fields of an object (id, name) Description string `json:"description,omitempty" bson:"description,omitempty"` // Description is the description of the rule Condition string `json:"condition,omitempty" bson:"condition,omitempty"` // NOT DEFINITIVE TO SPECIFICATION Actions []string `json:"actions,omitempty" bson:"actions,omitempty"` // NOT DEFINITIVE TO SPECIFICATION }
* Rule is a struct that represents a rule of a shared workspace
func (*Rule) GenerateID ¶
func (r *Rule) GenerateID()
func (*Rule) GetAccessor ¶
func (d *Rule) GetAccessor(request *tools.APIRequest) utils.Accessor
func (*Rule) VerifyAuth ¶
func (d *Rule) VerifyAuth(request *tools.APIRequest) bool
Click to show internal directories.
Click to hide internal directories.