diff options
Diffstat (limited to 'vendor/github.com/authzed/spicedb/pkg/tuple/updates.go')
| -rw-r--r-- | vendor/github.com/authzed/spicedb/pkg/tuple/updates.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/github.com/authzed/spicedb/pkg/tuple/updates.go b/vendor/github.com/authzed/spicedb/pkg/tuple/updates.go new file mode 100644 index 0000000..73eafe9 --- /dev/null +++ b/vendor/github.com/authzed/spicedb/pkg/tuple/updates.go @@ -0,0 +1,22 @@ +package tuple + +func Create(rel Relationship) RelationshipUpdate { + return RelationshipUpdate{ + Operation: UpdateOperationCreate, + Relationship: rel, + } +} + +func Touch(rel Relationship) RelationshipUpdate { + return RelationshipUpdate{ + Operation: UpdateOperationTouch, + Relationship: rel, + } +} + +func Delete(rel Relationship) RelationshipUpdate { + return RelationshipUpdate{ + Operation: UpdateOperationDelete, + Relationship: rel, + } +} |
