Documentation ¶
Index ¶
- Variables
- func RegisterAuthzServiceServer(s grpc.ServiceRegistrar, srv AuthzServiceServer)
- type AuthzServiceClient
- type AuthzServiceServer
- type CheckRequest
- func (*CheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckRequest) GetExpand() bool
- func (x *CheckRequest) GetObject() *Object
- func (x *CheckRequest) GetRelation() string
- func (x *CheckRequest) GetSubjectId() string
- func (x *CheckRequest) GetZookie() string
- func (*CheckRequest) ProtoMessage()
- func (x *CheckRequest) ProtoReflect() protoreflect.Message
- func (x *CheckRequest) Reset()
- func (x *CheckRequest) String() string
- type CheckResponse
- type Object
- type RelationTuple
- func (*RelationTuple) Descriptor() ([]byte, []int)deprecated
- func (x *RelationTuple) GetObject() *Object
- func (x *RelationTuple) GetRelation() string
- func (x *RelationTuple) GetSubject() *Subject
- func (*RelationTuple) ProtoMessage()
- func (x *RelationTuple) ProtoReflect() protoreflect.Message
- func (x *RelationTuple) Reset()
- func (x *RelationTuple) String() string
- type Subject
- func (*Subject) Descriptor() ([]byte, []int)deprecated
- func (x *Subject) GetSubjectId() string
- func (x *Subject) GetSubjectSet() *SubjectSet
- func (m *Subject) GetType() isSubject_Type
- func (*Subject) ProtoMessage()
- func (x *Subject) ProtoReflect() protoreflect.Message
- func (x *Subject) Reset()
- func (x *Subject) String() string
- type SubjectSet
- func (*SubjectSet) Descriptor() ([]byte, []int)deprecated
- func (x *SubjectSet) GetNamespace() string
- func (x *SubjectSet) GetObjectId() string
- func (x *SubjectSet) GetRelation() string
- func (*SubjectSet) ProtoMessage()
- func (x *SubjectSet) ProtoReflect() protoreflect.Message
- func (x *SubjectSet) Reset()
- func (x *SubjectSet) String() string
- type Subject_SubjectId
- type Subject_SubjectSet
- type UnimplementedAuthzServiceServer
- type UnsafeAuthzServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_zenia_authz_v1_acl_proto protoreflect.FileDescriptor
var File_zenia_authz_v1_authz_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthzServiceServer ¶
func RegisterAuthzServiceServer(s grpc.ServiceRegistrar, srv AuthzServiceServer)
Types ¶
type AuthzServiceClient ¶
type AuthzServiceClient interface {
Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error)
}
AuthzServiceClient is the client API for AuthzService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthzServiceClient ¶
func NewAuthzServiceClient(cc grpc.ClientConnInterface) AuthzServiceClient
type AuthzServiceServer ¶
type AuthzServiceServer interface {
Check(context.Context, *CheckRequest) (*CheckResponse, error)
}
AuthzServiceServer is the server API for AuthzService service. All implementations should embed UnimplementedAuthzServiceServer for forward compatibility
type CheckRequest ¶
type CheckRequest struct { Object *Object `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` Relation string `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"` SubjectId string `protobuf:"bytes,3,opt,name=subject_id,json=subjectId,proto3" json:"subject_id,omitempty"` // optional but highly recommend Zookie string `protobuf:"bytes,4,opt,name=zookie,proto3" json:"zookie,omitempty"` // follow subjectsets Expand bool `protobuf:"varint,5,opt,name=expand,proto3" json:"expand,omitempty"` // contains filtered or unexported fields }
func (*CheckRequest) Descriptor
deprecated
func (*CheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead.
func (*CheckRequest) GetExpand ¶
func (x *CheckRequest) GetExpand() bool
func (*CheckRequest) GetObject ¶
func (x *CheckRequest) GetObject() *Object
func (*CheckRequest) GetRelation ¶
func (x *CheckRequest) GetRelation() string
func (*CheckRequest) GetSubjectId ¶
func (x *CheckRequest) GetSubjectId() string
func (*CheckRequest) GetZookie ¶
func (x *CheckRequest) GetZookie() string
func (*CheckRequest) ProtoMessage ¶
func (*CheckRequest) ProtoMessage()
func (*CheckRequest) ProtoReflect ¶
func (x *CheckRequest) ProtoReflect() protoreflect.Message
func (*CheckRequest) Reset ¶
func (x *CheckRequest) Reset()
func (*CheckRequest) String ¶
func (x *CheckRequest) String() string
type CheckResponse ¶
type CheckResponse struct { Allowed bool `protobuf:"varint,1,opt,name=allowed,proto3" json:"allowed,omitempty"` // contains filtered or unexported fields }
func (*CheckResponse) Descriptor
deprecated
func (*CheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead.
func (*CheckResponse) GetAllowed ¶
func (x *CheckResponse) GetAllowed() bool
func (*CheckResponse) ProtoMessage ¶
func (*CheckResponse) ProtoMessage()
func (*CheckResponse) ProtoReflect ¶
func (x *CheckResponse) ProtoReflect() protoreflect.Message
func (*CheckResponse) Reset ¶
func (x *CheckResponse) Reset()
func (*CheckResponse) String ¶
func (x *CheckResponse) String() string
type Object ¶
type Object struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Object) Descriptor
deprecated
func (*Object) GetNamespace ¶
func (*Object) ProtoMessage ¶
func (*Object) ProtoMessage()
func (*Object) ProtoReflect ¶
func (x *Object) ProtoReflect() protoreflect.Message
type RelationTuple ¶
type RelationTuple struct { Object *Object `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` Relation string `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"` Subject *Subject `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"` // contains filtered or unexported fields }
func (*RelationTuple) Descriptor
deprecated
func (*RelationTuple) Descriptor() ([]byte, []int)
Deprecated: Use RelationTuple.ProtoReflect.Descriptor instead.
func (*RelationTuple) GetObject ¶
func (x *RelationTuple) GetObject() *Object
func (*RelationTuple) GetRelation ¶
func (x *RelationTuple) GetRelation() string
func (*RelationTuple) GetSubject ¶
func (x *RelationTuple) GetSubject() *Subject
func (*RelationTuple) ProtoMessage ¶
func (*RelationTuple) ProtoMessage()
func (*RelationTuple) ProtoReflect ¶
func (x *RelationTuple) ProtoReflect() protoreflect.Message
func (*RelationTuple) Reset ¶
func (x *RelationTuple) Reset()
func (*RelationTuple) String ¶
func (x *RelationTuple) String() string
type Subject ¶
type Subject struct { // Types that are assignable to Type: // *Subject_SubjectId // *Subject_SubjectSet Type isSubject_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
func (*Subject) Descriptor
deprecated
func (*Subject) GetSubjectId ¶
func (*Subject) GetSubjectSet ¶
func (x *Subject) GetSubjectSet() *SubjectSet
func (*Subject) ProtoMessage ¶
func (*Subject) ProtoMessage()
func (*Subject) ProtoReflect ¶
func (x *Subject) ProtoReflect() protoreflect.Message
type SubjectSet ¶
type SubjectSet struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` ObjectId string `protobuf:"bytes,2,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` Relation string `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"` // contains filtered or unexported fields }
func (*SubjectSet) Descriptor
deprecated
func (*SubjectSet) Descriptor() ([]byte, []int)
Deprecated: Use SubjectSet.ProtoReflect.Descriptor instead.
func (*SubjectSet) GetNamespace ¶
func (x *SubjectSet) GetNamespace() string
func (*SubjectSet) GetObjectId ¶
func (x *SubjectSet) GetObjectId() string
func (*SubjectSet) GetRelation ¶
func (x *SubjectSet) GetRelation() string
func (*SubjectSet) ProtoMessage ¶
func (*SubjectSet) ProtoMessage()
func (*SubjectSet) ProtoReflect ¶
func (x *SubjectSet) ProtoReflect() protoreflect.Message
func (*SubjectSet) Reset ¶
func (x *SubjectSet) Reset()
func (*SubjectSet) String ¶
func (x *SubjectSet) String() string
type Subject_SubjectId ¶
type Subject_SubjectId struct {
SubjectId string `protobuf:"bytes,1,opt,name=subject_id,json=subjectId,proto3,oneof"`
}
type Subject_SubjectSet ¶
type Subject_SubjectSet struct {
SubjectSet *SubjectSet `protobuf:"bytes,2,opt,name=subject_set,json=subjectSet,proto3,oneof"`
}
type UnimplementedAuthzServiceServer ¶
type UnimplementedAuthzServiceServer struct { }
UnimplementedAuthzServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedAuthzServiceServer) Check ¶
func (UnimplementedAuthzServiceServer) Check(context.Context, *CheckRequest) (*CheckResponse, error)
type UnsafeAuthzServiceServer ¶
type UnsafeAuthzServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthzServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthzServiceServer will result in compilation errors.