MCPcopy
hub / github.com/ory/keto / RandomTupleWithSubjectSet

Function RandomTupleWithSubjectSet

cmd/helpers/helpers.go:70–80  ·  view source on GitHub ↗
(ns1, ns2 string)

Source from the content-addressed store, hash-verified

68}
69
70func RandomTupleWithSubjectSet(ns1, ns2 string) *ketoapi.RelationTuple {
71 return &ketoapi.RelationTuple{
72 Namespace: ns1,
73 Object: randx.MustString(8, randx.AlphaNum),
74 Relation: randx.MustString(8, randx.AlphaNum),
75 SubjectSet: &ketoapi.SubjectSet{
76 Namespace: ns2,
77 Object: randx.MustString(8, randx.AlphaNum),
78 },
79 }
80}
81
82func RandomTupleWithSubjectID(ns1 string) *ketoapi.RelationTuple {
83 return &ketoapi.RelationTuple{

Callers 4

TestExpandCommandFunction · 0.92
TestCreateCmdFunction · 0.92
TestDeleteCmdFunction · 0.92
TestCheckCommandFunction · 0.92

Calls

no outgoing calls

Tested by 4

TestExpandCommandFunction · 0.74
TestCreateCmdFunction · 0.74
TestDeleteCmdFunction · 0.74
TestCheckCommandFunction · 0.74