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

Struct RelationQuery

proto/ory/keto/relation_tuples/v1alpha2/relation_tuples.pb.go:110–125  ·  view source on GitHub ↗

The query for listing relationships. Clients can specify any optional field to partially filter for specific relationships. Example use cases (namespace is always required): - object only: display a list of all permissions referring to a specific object - relation only: get all groups that have mem

Source from the content-addressed store, hash-verified

108// - subject & relation: display all groups a subject belongs to; display all objects a subject has access to
109// - object & relation & subject: check whether the relation tuple already exists
110type RelationQuery struct {
111 state protoimpl.MessageState `protogen:"open.v1"`
112 // The namespace this relation tuple lives in.
113 Namespace *string `protobuf:"bytes,1,opt,name=namespace,proto3,oneof" json:"namespace,omitempty"`
114 // The object related by this tuple.
115 // It is an object in the namespace of the tuple.
116 Object *string `protobuf:"bytes,2,opt,name=object,proto3,oneof" json:"object,omitempty"`
117 // The relation between an Object and a Subject.
118 Relation *string `protobuf:"bytes,3,opt,name=relation,proto3,oneof" json:"relation,omitempty"`
119 // The subject related by this tuple.
120 // A Subject either represents a concrete subject id or
121 // a `SubjectSet` that expands to more Subjects.
122 Subject *Subject `protobuf:"bytes,4,opt,name=subject,proto3,oneof" json:"subject,omitempty"`
123 unknownFields protoimpl.UnknownFields
124 sizeCache protoimpl.SizeCache
125}
126
127func (x *RelationQuery) Reset() {
128 *x = RelationQuery{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected