rule

package
v0.0.0-...-a0f436b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL