Documentation ¶
Index ¶
- Variables
- func RegisterCasbinServer(s grpc.ServiceRegistrar, srv CasbinServer)
- type Array2DReply
- type Array2DReplyD
- type ArrayReply
- type BoolReply
- type CasbinClient
- type CasbinServer
- type EmptyReply
- type EmptyRequest
- type EnforceRequest
- func (*EnforceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnforceRequest) GetEnforcerHandler() int32
- func (x *EnforceRequest) GetParams() []string
- func (*EnforceRequest) ProtoMessage()
- func (x *EnforceRequest) ProtoReflect() protoreflect.Message
- func (x *EnforceRequest) Reset()
- func (x *EnforceRequest) String() string
- type FilteredPolicyRequest
- func (*FilteredPolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FilteredPolicyRequest) GetEnforcerHandler() int32
- func (x *FilteredPolicyRequest) GetFieldIndex() int32
- func (x *FilteredPolicyRequest) GetFieldValues() []string
- func (x *FilteredPolicyRequest) GetPType() string
- func (*FilteredPolicyRequest) ProtoMessage()
- func (x *FilteredPolicyRequest) ProtoReflect() protoreflect.Message
- func (x *FilteredPolicyRequest) Reset()
- func (x *FilteredPolicyRequest) String() string
- type NewAdapterReply
- type NewAdapterRequest
- func (*NewAdapterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewAdapterRequest) GetAdapterName() string
- func (x *NewAdapterRequest) GetConnectString() string
- func (x *NewAdapterRequest) GetDbSpecified() bool
- func (x *NewAdapterRequest) GetDriverName() string
- func (*NewAdapterRequest) ProtoMessage()
- func (x *NewAdapterRequest) ProtoReflect() protoreflect.Message
- func (x *NewAdapterRequest) Reset()
- func (x *NewAdapterRequest) String() string
- type NewEnforcerReply
- type NewEnforcerRequest
- func (*NewEnforcerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewEnforcerRequest) GetAdapterHandle() int32
- func (x *NewEnforcerRequest) GetEnableAcceptJsonRequest() bool
- func (x *NewEnforcerRequest) GetModelText() string
- func (*NewEnforcerRequest) ProtoMessage()
- func (x *NewEnforcerRequest) ProtoReflect() protoreflect.Message
- func (x *NewEnforcerRequest) Reset()
- func (x *NewEnforcerRequest) String() string
- type PermissionRequest
- func (*PermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionRequest) GetDomain() []string
- func (x *PermissionRequest) GetEnforcerHandler() int32
- func (x *PermissionRequest) GetPermissions() []string
- func (x *PermissionRequest) GetUser() string
- func (*PermissionRequest) ProtoMessage()
- func (x *PermissionRequest) ProtoReflect() protoreflect.Message
- func (x *PermissionRequest) Reset()
- func (x *PermissionRequest) String() string
- type PolicyRequest
- func (*PolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyRequest) GetEnforcerHandler() int32
- func (x *PolicyRequest) GetPType() string
- func (x *PolicyRequest) GetParams() []string
- func (*PolicyRequest) ProtoMessage()
- func (x *PolicyRequest) ProtoReflect() protoreflect.Message
- func (x *PolicyRequest) Reset()
- func (x *PolicyRequest) String() string
- type SimpleGetRequest
- func (*SimpleGetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SimpleGetRequest) GetEnforcerHandler() int32
- func (x *SimpleGetRequest) GetPType() string
- func (*SimpleGetRequest) ProtoMessage()
- func (x *SimpleGetRequest) ProtoReflect() protoreflect.Message
- func (x *SimpleGetRequest) Reset()
- func (x *SimpleGetRequest) String() string
- type UnimplementedCasbinServer
- func (UnimplementedCasbinServer) AddGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) AddNamedGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) AddNamedPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) AddPermissionForUser(context.Context, *PermissionRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) AddPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) AddRoleForUser(context.Context, *UserRoleRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) DeletePermission(context.Context, *PermissionRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) DeletePermissionForUser(context.Context, *PermissionRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) DeletePermissionsForUser(context.Context, *PermissionRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) DeleteRole(context.Context, *UserRoleRequest) (*EmptyReply, error)
- func (UnimplementedCasbinServer) DeleteRoleForUser(context.Context, *UserRoleRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) DeleteRolesForUser(context.Context, *UserRoleRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) DeleteUser(context.Context, *UserRoleRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) Enforce(context.Context, *EnforceRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) GetAllActions(context.Context, *EmptyRequest) (*ArrayReply, error)
- func (UnimplementedCasbinServer) GetAllNamedActions(context.Context, *SimpleGetRequest) (*ArrayReply, error)
- func (UnimplementedCasbinServer) GetAllNamedObjects(context.Context, *SimpleGetRequest) (*ArrayReply, error)
- func (UnimplementedCasbinServer) GetAllNamedRoles(context.Context, *SimpleGetRequest) (*ArrayReply, error)
- func (UnimplementedCasbinServer) GetAllNamedSubjects(context.Context, *SimpleGetRequest) (*ArrayReply, error)
- func (UnimplementedCasbinServer) GetAllObjects(context.Context, *EmptyRequest) (*ArrayReply, error)
- func (UnimplementedCasbinServer) GetAllRoles(context.Context, *EmptyRequest) (*ArrayReply, error)
- func (UnimplementedCasbinServer) GetAllSubjects(context.Context, *EmptyRequest) (*ArrayReply, error)
- func (UnimplementedCasbinServer) GetDomains(context.Context, *UserRoleRequest) (*ArrayReply, error)
- func (UnimplementedCasbinServer) GetFilteredGroupingPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error)
- func (UnimplementedCasbinServer) GetFilteredNamedGroupingPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error)
- func (UnimplementedCasbinServer) GetFilteredNamedPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error)
- func (UnimplementedCasbinServer) GetFilteredPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error)
- func (UnimplementedCasbinServer) GetGroupingPolicy(context.Context, *EmptyRequest) (*Array2DReply, error)
- func (UnimplementedCasbinServer) GetImplicitPermissionsForUser(context.Context, *PermissionRequest) (*Array2DReply, error)
- func (UnimplementedCasbinServer) GetImplicitRolesForUser(context.Context, *UserRoleRequest) (*ArrayReply, error)
- func (UnimplementedCasbinServer) GetNamedGroupingPolicy(context.Context, *PolicyRequest) (*Array2DReply, error)
- func (UnimplementedCasbinServer) GetNamedPolicy(context.Context, *PolicyRequest) (*Array2DReply, error)
- func (UnimplementedCasbinServer) GetPermissionsForUser(context.Context, *PermissionRequest) (*Array2DReply, error)
- func (UnimplementedCasbinServer) GetPolicy(context.Context, *EmptyRequest) (*Array2DReply, error)
- func (UnimplementedCasbinServer) GetRolesForUser(context.Context, *UserRoleRequest) (*ArrayReply, error)
- func (UnimplementedCasbinServer) GetUsersForRole(context.Context, *UserRoleRequest) (*ArrayReply, error)
- func (UnimplementedCasbinServer) HasGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) HasNamedGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) HasNamedPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) HasPermissionForUser(context.Context, *PermissionRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) HasPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) HasRoleForUser(context.Context, *UserRoleRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) LoadPolicy(context.Context, *EmptyRequest) (*EmptyReply, error)
- func (UnimplementedCasbinServer) NewAdapter(context.Context, *NewAdapterRequest) (*NewAdapterReply, error)
- func (UnimplementedCasbinServer) NewEnforcer(context.Context, *NewEnforcerRequest) (*NewEnforcerReply, error)
- func (UnimplementedCasbinServer) RemoveFilteredGroupingPolicy(context.Context, *FilteredPolicyRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) RemoveFilteredNamedGroupingPolicy(context.Context, *FilteredPolicyRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) RemoveFilteredNamedPolicy(context.Context, *FilteredPolicyRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) RemoveFilteredPolicy(context.Context, *FilteredPolicyRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) RemoveGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) RemoveNamedGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) RemoveNamedPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) RemovePolicy(context.Context, *PolicyRequest) (*BoolReply, error)
- func (UnimplementedCasbinServer) SavePolicy(context.Context, *EmptyRequest) (*EmptyReply, error)
- type UnsafeCasbinServer
- type UserRoleRequest
- func (*UserRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserRoleRequest) GetDomain() []string
- func (x *UserRoleRequest) GetEnforcerHandler() int32
- func (x *UserRoleRequest) GetRole() string
- func (x *UserRoleRequest) GetUser() string
- func (*UserRoleRequest) ProtoMessage()
- func (x *UserRoleRequest) ProtoReflect() protoreflect.Message
- func (x *UserRoleRequest) Reset()
- func (x *UserRoleRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var Casbin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Casbin", HandlerType: (*CasbinServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "NewEnforcer", Handler: _Casbin_NewEnforcer_Handler, }, { MethodName: "NewAdapter", Handler: _Casbin_NewAdapter_Handler, }, { MethodName: "Enforce", Handler: _Casbin_Enforce_Handler, }, { MethodName: "LoadPolicy", Handler: _Casbin_LoadPolicy_Handler, }, { MethodName: "SavePolicy", Handler: _Casbin_SavePolicy_Handler, }, { MethodName: "AddPolicy", Handler: _Casbin_AddPolicy_Handler, }, { MethodName: "AddNamedPolicy", Handler: _Casbin_AddNamedPolicy_Handler, }, { MethodName: "RemovePolicy", Handler: _Casbin_RemovePolicy_Handler, }, { MethodName: "RemoveNamedPolicy", Handler: _Casbin_RemoveNamedPolicy_Handler, }, { MethodName: "RemoveFilteredPolicy", Handler: _Casbin_RemoveFilteredPolicy_Handler, }, { MethodName: "RemoveFilteredNamedPolicy", Handler: _Casbin_RemoveFilteredNamedPolicy_Handler, }, { MethodName: "GetPolicy", Handler: _Casbin_GetPolicy_Handler, }, { MethodName: "GetNamedPolicy", Handler: _Casbin_GetNamedPolicy_Handler, }, { MethodName: "GetFilteredPolicy", Handler: _Casbin_GetFilteredPolicy_Handler, }, { MethodName: "GetFilteredNamedPolicy", Handler: _Casbin_GetFilteredNamedPolicy_Handler, }, { MethodName: "AddGroupingPolicy", Handler: _Casbin_AddGroupingPolicy_Handler, }, { MethodName: "AddNamedGroupingPolicy", Handler: _Casbin_AddNamedGroupingPolicy_Handler, }, { MethodName: "RemoveGroupingPolicy", Handler: _Casbin_RemoveGroupingPolicy_Handler, }, { MethodName: "RemoveNamedGroupingPolicy", Handler: _Casbin_RemoveNamedGroupingPolicy_Handler, }, { MethodName: "RemoveFilteredGroupingPolicy", Handler: _Casbin_RemoveFilteredGroupingPolicy_Handler, }, { MethodName: "RemoveFilteredNamedGroupingPolicy", Handler: _Casbin_RemoveFilteredNamedGroupingPolicy_Handler, }, { MethodName: "GetGroupingPolicy", Handler: _Casbin_GetGroupingPolicy_Handler, }, { MethodName: "GetNamedGroupingPolicy", Handler: _Casbin_GetNamedGroupingPolicy_Handler, }, { MethodName: "GetFilteredGroupingPolicy", Handler: _Casbin_GetFilteredGroupingPolicy_Handler, }, { MethodName: "GetFilteredNamedGroupingPolicy", Handler: _Casbin_GetFilteredNamedGroupingPolicy_Handler, }, { MethodName: "GetAllSubjects", Handler: _Casbin_GetAllSubjects_Handler, }, { MethodName: "GetAllNamedSubjects", Handler: _Casbin_GetAllNamedSubjects_Handler, }, { MethodName: "GetAllObjects", Handler: _Casbin_GetAllObjects_Handler, }, { MethodName: "GetAllNamedObjects", Handler: _Casbin_GetAllNamedObjects_Handler, }, { MethodName: "GetAllActions", Handler: _Casbin_GetAllActions_Handler, }, { MethodName: "GetAllNamedActions", Handler: _Casbin_GetAllNamedActions_Handler, }, { MethodName: "GetAllRoles", Handler: _Casbin_GetAllRoles_Handler, }, { MethodName: "GetAllNamedRoles", Handler: _Casbin_GetAllNamedRoles_Handler, }, { MethodName: "HasPolicy", Handler: _Casbin_HasPolicy_Handler, }, { MethodName: "HasNamedPolicy", Handler: _Casbin_HasNamedPolicy_Handler, }, { MethodName: "HasGroupingPolicy", Handler: _Casbin_HasGroupingPolicy_Handler, }, { MethodName: "HasNamedGroupingPolicy", Handler: _Casbin_HasNamedGroupingPolicy_Handler, }, { MethodName: "GetDomains", Handler: _Casbin_GetDomains_Handler, }, { MethodName: "GetRolesForUser", Handler: _Casbin_GetRolesForUser_Handler, }, { MethodName: "GetImplicitRolesForUser", Handler: _Casbin_GetImplicitRolesForUser_Handler, }, { MethodName: "GetUsersForRole", Handler: _Casbin_GetUsersForRole_Handler, }, { MethodName: "HasRoleForUser", Handler: _Casbin_HasRoleForUser_Handler, }, { MethodName: "AddRoleForUser", Handler: _Casbin_AddRoleForUser_Handler, }, { MethodName: "DeleteRoleForUser", Handler: _Casbin_DeleteRoleForUser_Handler, }, { MethodName: "DeleteRolesForUser", Handler: _Casbin_DeleteRolesForUser_Handler, }, { MethodName: "DeleteUser", Handler: _Casbin_DeleteUser_Handler, }, { MethodName: "DeleteRole", Handler: _Casbin_DeleteRole_Handler, }, { MethodName: "GetPermissionsForUser", Handler: _Casbin_GetPermissionsForUser_Handler, }, { MethodName: "GetImplicitPermissionsForUser", Handler: _Casbin_GetImplicitPermissionsForUser_Handler, }, { MethodName: "DeletePermission", Handler: _Casbin_DeletePermission_Handler, }, { MethodName: "AddPermissionForUser", Handler: _Casbin_AddPermissionForUser_Handler, }, { MethodName: "DeletePermissionForUser", Handler: _Casbin_DeletePermissionForUser_Handler, }, { MethodName: "DeletePermissionsForUser", Handler: _Casbin_DeletePermissionsForUser_Handler, }, { MethodName: "HasPermissionForUser", Handler: _Casbin_HasPermissionForUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/casbin.proto", }
Casbin_ServiceDesc is the grpc.ServiceDesc for Casbin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_casbin_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCasbinServer ¶
func RegisterCasbinServer(s grpc.ServiceRegistrar, srv CasbinServer)
Types ¶
type Array2DReply ¶
type Array2DReply struct { D2 []*Array2DReplyD `protobuf:"bytes,1,rep,name=d2,proto3" json:"d2,omitempty"` // contains filtered or unexported fields }
func (*Array2DReply) Descriptor
deprecated
func (*Array2DReply) Descriptor() ([]byte, []int)
Deprecated: Use Array2DReply.ProtoReflect.Descriptor instead.
func (*Array2DReply) GetD2 ¶
func (x *Array2DReply) GetD2() []*Array2DReplyD
func (*Array2DReply) ProtoMessage ¶
func (*Array2DReply) ProtoMessage()
func (*Array2DReply) ProtoReflect ¶
func (x *Array2DReply) ProtoReflect() protoreflect.Message
func (*Array2DReply) Reset ¶
func (x *Array2DReply) Reset()
func (*Array2DReply) String ¶
func (x *Array2DReply) String() string
type Array2DReplyD ¶
type Array2DReplyD struct { D1 []string `protobuf:"bytes,1,rep,name=d1,proto3" json:"d1,omitempty"` // contains filtered or unexported fields }
func (*Array2DReplyD) Descriptor
deprecated
func (*Array2DReplyD) Descriptor() ([]byte, []int)
Deprecated: Use Array2DReplyD.ProtoReflect.Descriptor instead.
func (*Array2DReplyD) GetD1 ¶
func (x *Array2DReplyD) GetD1() []string
func (*Array2DReplyD) ProtoMessage ¶
func (*Array2DReplyD) ProtoMessage()
func (*Array2DReplyD) ProtoReflect ¶
func (x *Array2DReplyD) ProtoReflect() protoreflect.Message
func (*Array2DReplyD) Reset ¶
func (x *Array2DReplyD) Reset()
func (*Array2DReplyD) String ¶
func (x *Array2DReplyD) String() string
type ArrayReply ¶
type ArrayReply struct { Array []string `protobuf:"bytes,1,rep,name=array,proto3" json:"array,omitempty"` // contains filtered or unexported fields }
func (*ArrayReply) Descriptor
deprecated
func (*ArrayReply) Descriptor() ([]byte, []int)
Deprecated: Use ArrayReply.ProtoReflect.Descriptor instead.
func (*ArrayReply) GetArray ¶
func (x *ArrayReply) GetArray() []string
func (*ArrayReply) ProtoMessage ¶
func (*ArrayReply) ProtoMessage()
func (*ArrayReply) ProtoReflect ¶
func (x *ArrayReply) ProtoReflect() protoreflect.Message
func (*ArrayReply) Reset ¶
func (x *ArrayReply) Reset()
func (*ArrayReply) String ¶
func (x *ArrayReply) String() string
type BoolReply ¶
type BoolReply struct { Res bool `protobuf:"varint,1,opt,name=res,proto3" json:"res,omitempty"` // contains filtered or unexported fields }
func (*BoolReply) Descriptor
deprecated
func (*BoolReply) ProtoMessage ¶
func (*BoolReply) ProtoMessage()
func (*BoolReply) ProtoReflect ¶
func (x *BoolReply) ProtoReflect() protoreflect.Message
type CasbinClient ¶
type CasbinClient interface { NewEnforcer(ctx context.Context, in *NewEnforcerRequest, opts ...grpc.CallOption) (*NewEnforcerReply, error) NewAdapter(ctx context.Context, in *NewAdapterRequest, opts ...grpc.CallOption) (*NewAdapterReply, error) Enforce(ctx context.Context, in *EnforceRequest, opts ...grpc.CallOption) (*BoolReply, error) LoadPolicy(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyReply, error) SavePolicy(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyReply, error) AddPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error) AddNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error) RemovePolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error) RemoveNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error) RemoveFilteredPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*BoolReply, error) RemoveFilteredNamedPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*BoolReply, error) GetPolicy(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Array2DReply, error) GetNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Array2DReply, error) GetFilteredPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*Array2DReply, error) GetFilteredNamedPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*Array2DReply, error) AddGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error) AddNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error) RemoveGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error) RemoveNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error) RemoveFilteredGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*BoolReply, error) RemoveFilteredNamedGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*BoolReply, error) GetGroupingPolicy(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Array2DReply, error) GetNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Array2DReply, error) GetFilteredGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*Array2DReply, error) GetFilteredNamedGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*Array2DReply, error) GetAllSubjects(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ArrayReply, error) GetAllNamedSubjects(ctx context.Context, in *SimpleGetRequest, opts ...grpc.CallOption) (*ArrayReply, error) GetAllObjects(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ArrayReply, error) GetAllNamedObjects(ctx context.Context, in *SimpleGetRequest, opts ...grpc.CallOption) (*ArrayReply, error) GetAllActions(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ArrayReply, error) GetAllNamedActions(ctx context.Context, in *SimpleGetRequest, opts ...grpc.CallOption) (*ArrayReply, error) GetAllRoles(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ArrayReply, error) GetAllNamedRoles(ctx context.Context, in *SimpleGetRequest, opts ...grpc.CallOption) (*ArrayReply, error) HasPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error) HasNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error) HasGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error) HasNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error) GetDomains(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*ArrayReply, error) GetRolesForUser(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*ArrayReply, error) GetImplicitRolesForUser(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*ArrayReply, error) GetUsersForRole(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*ArrayReply, error) HasRoleForUser(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*BoolReply, error) AddRoleForUser(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*BoolReply, error) DeleteRoleForUser(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*BoolReply, error) DeleteRolesForUser(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*BoolReply, error) DeleteUser(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*BoolReply, error) DeleteRole(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*EmptyReply, error) GetPermissionsForUser(ctx context.Context, in *PermissionRequest, opts ...grpc.CallOption) (*Array2DReply, error) GetImplicitPermissionsForUser(ctx context.Context, in *PermissionRequest, opts ...grpc.CallOption) (*Array2DReply, error) DeletePermission(ctx context.Context, in *PermissionRequest, opts ...grpc.CallOption) (*BoolReply, error) AddPermissionForUser(ctx context.Context, in *PermissionRequest, opts ...grpc.CallOption) (*BoolReply, error) DeletePermissionForUser(ctx context.Context, in *PermissionRequest, opts ...grpc.CallOption) (*BoolReply, error) DeletePermissionsForUser(ctx context.Context, in *PermissionRequest, opts ...grpc.CallOption) (*BoolReply, error) HasPermissionForUser(ctx context.Context, in *PermissionRequest, opts ...grpc.CallOption) (*BoolReply, error) }
CasbinClient is the client API for Casbin 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 NewCasbinClient ¶
func NewCasbinClient(cc grpc.ClientConnInterface) CasbinClient
type CasbinServer ¶
type CasbinServer interface { NewEnforcer(context.Context, *NewEnforcerRequest) (*NewEnforcerReply, error) NewAdapter(context.Context, *NewAdapterRequest) (*NewAdapterReply, error) Enforce(context.Context, *EnforceRequest) (*BoolReply, error) LoadPolicy(context.Context, *EmptyRequest) (*EmptyReply, error) SavePolicy(context.Context, *EmptyRequest) (*EmptyReply, error) AddPolicy(context.Context, *PolicyRequest) (*BoolReply, error) AddNamedPolicy(context.Context, *PolicyRequest) (*BoolReply, error) RemovePolicy(context.Context, *PolicyRequest) (*BoolReply, error) RemoveNamedPolicy(context.Context, *PolicyRequest) (*BoolReply, error) RemoveFilteredPolicy(context.Context, *FilteredPolicyRequest) (*BoolReply, error) RemoveFilteredNamedPolicy(context.Context, *FilteredPolicyRequest) (*BoolReply, error) GetPolicy(context.Context, *EmptyRequest) (*Array2DReply, error) GetNamedPolicy(context.Context, *PolicyRequest) (*Array2DReply, error) GetFilteredPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error) GetFilteredNamedPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error) AddGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error) AddNamedGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error) RemoveGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error) RemoveNamedGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error) RemoveFilteredGroupingPolicy(context.Context, *FilteredPolicyRequest) (*BoolReply, error) RemoveFilteredNamedGroupingPolicy(context.Context, *FilteredPolicyRequest) (*BoolReply, error) GetGroupingPolicy(context.Context, *EmptyRequest) (*Array2DReply, error) GetNamedGroupingPolicy(context.Context, *PolicyRequest) (*Array2DReply, error) GetFilteredGroupingPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error) GetFilteredNamedGroupingPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error) GetAllSubjects(context.Context, *EmptyRequest) (*ArrayReply, error) GetAllNamedSubjects(context.Context, *SimpleGetRequest) (*ArrayReply, error) GetAllObjects(context.Context, *EmptyRequest) (*ArrayReply, error) GetAllNamedObjects(context.Context, *SimpleGetRequest) (*ArrayReply, error) GetAllActions(context.Context, *EmptyRequest) (*ArrayReply, error) GetAllNamedActions(context.Context, *SimpleGetRequest) (*ArrayReply, error) GetAllRoles(context.Context, *EmptyRequest) (*ArrayReply, error) GetAllNamedRoles(context.Context, *SimpleGetRequest) (*ArrayReply, error) HasPolicy(context.Context, *PolicyRequest) (*BoolReply, error) HasNamedPolicy(context.Context, *PolicyRequest) (*BoolReply, error) HasGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error) HasNamedGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error) GetDomains(context.Context, *UserRoleRequest) (*ArrayReply, error) GetRolesForUser(context.Context, *UserRoleRequest) (*ArrayReply, error) GetImplicitRolesForUser(context.Context, *UserRoleRequest) (*ArrayReply, error) GetUsersForRole(context.Context, *UserRoleRequest) (*ArrayReply, error) HasRoleForUser(context.Context, *UserRoleRequest) (*BoolReply, error) AddRoleForUser(context.Context, *UserRoleRequest) (*BoolReply, error) DeleteRoleForUser(context.Context, *UserRoleRequest) (*BoolReply, error) DeleteRolesForUser(context.Context, *UserRoleRequest) (*BoolReply, error) DeleteUser(context.Context, *UserRoleRequest) (*BoolReply, error) DeleteRole(context.Context, *UserRoleRequest) (*EmptyReply, error) GetPermissionsForUser(context.Context, *PermissionRequest) (*Array2DReply, error) GetImplicitPermissionsForUser(context.Context, *PermissionRequest) (*Array2DReply, error) DeletePermission(context.Context, *PermissionRequest) (*BoolReply, error) AddPermissionForUser(context.Context, *PermissionRequest) (*BoolReply, error) DeletePermissionForUser(context.Context, *PermissionRequest) (*BoolReply, error) DeletePermissionsForUser(context.Context, *PermissionRequest) (*BoolReply, error) HasPermissionForUser(context.Context, *PermissionRequest) (*BoolReply, error) }
CasbinServer is the server API for Casbin service. All implementations should embed UnimplementedCasbinServer for forward compatibility
type EmptyReply ¶
type EmptyReply struct {
// contains filtered or unexported fields
}
func (*EmptyReply) Descriptor
deprecated
func (*EmptyReply) Descriptor() ([]byte, []int)
Deprecated: Use EmptyReply.ProtoReflect.Descriptor instead.
func (*EmptyReply) ProtoMessage ¶
func (*EmptyReply) ProtoMessage()
func (*EmptyReply) ProtoReflect ¶
func (x *EmptyReply) ProtoReflect() protoreflect.Message
func (*EmptyReply) Reset ¶
func (x *EmptyReply) Reset()
func (*EmptyReply) String ¶
func (x *EmptyReply) String() string
type EmptyRequest ¶
type EmptyRequest struct { Handler int32 `protobuf:"varint,1,opt,name=handler,proto3" json:"handler,omitempty"` // contains filtered or unexported fields }
func (*EmptyRequest) Descriptor
deprecated
func (*EmptyRequest) Descriptor() ([]byte, []int)
Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.
func (*EmptyRequest) GetHandler ¶
func (x *EmptyRequest) GetHandler() int32
func (*EmptyRequest) ProtoMessage ¶
func (*EmptyRequest) ProtoMessage()
func (*EmptyRequest) ProtoReflect ¶
func (x *EmptyRequest) ProtoReflect() protoreflect.Message
func (*EmptyRequest) Reset ¶
func (x *EmptyRequest) Reset()
func (*EmptyRequest) String ¶
func (x *EmptyRequest) String() string
type EnforceRequest ¶
type EnforceRequest struct { EnforcerHandler int32 `protobuf:"varint,1,opt,name=enforcerHandler,proto3" json:"enforcerHandler,omitempty"` Params []string `protobuf:"bytes,2,rep,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
func (*EnforceRequest) Descriptor
deprecated
func (*EnforceRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnforceRequest.ProtoReflect.Descriptor instead.
func (*EnforceRequest) GetEnforcerHandler ¶
func (x *EnforceRequest) GetEnforcerHandler() int32
func (*EnforceRequest) GetParams ¶
func (x *EnforceRequest) GetParams() []string
func (*EnforceRequest) ProtoMessage ¶
func (*EnforceRequest) ProtoMessage()
func (*EnforceRequest) ProtoReflect ¶
func (x *EnforceRequest) ProtoReflect() protoreflect.Message
func (*EnforceRequest) Reset ¶
func (x *EnforceRequest) Reset()
func (*EnforceRequest) String ¶
func (x *EnforceRequest) String() string
type FilteredPolicyRequest ¶
type FilteredPolicyRequest struct { EnforcerHandler int32 `protobuf:"varint,1,opt,name=enforcerHandler,proto3" json:"enforcerHandler,omitempty"` PType string `protobuf:"bytes,2,opt,name=pType,proto3" json:"pType,omitempty"` FieldIndex int32 `protobuf:"varint,3,opt,name=fieldIndex,proto3" json:"fieldIndex,omitempty"` FieldValues []string `protobuf:"bytes,4,rep,name=fieldValues,proto3" json:"fieldValues,omitempty"` // contains filtered or unexported fields }
func (*FilteredPolicyRequest) Descriptor
deprecated
func (*FilteredPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use FilteredPolicyRequest.ProtoReflect.Descriptor instead.
func (*FilteredPolicyRequest) GetEnforcerHandler ¶
func (x *FilteredPolicyRequest) GetEnforcerHandler() int32
func (*FilteredPolicyRequest) GetFieldIndex ¶
func (x *FilteredPolicyRequest) GetFieldIndex() int32
func (*FilteredPolicyRequest) GetFieldValues ¶
func (x *FilteredPolicyRequest) GetFieldValues() []string
func (*FilteredPolicyRequest) GetPType ¶
func (x *FilteredPolicyRequest) GetPType() string
func (*FilteredPolicyRequest) ProtoMessage ¶
func (*FilteredPolicyRequest) ProtoMessage()
func (*FilteredPolicyRequest) ProtoReflect ¶
func (x *FilteredPolicyRequest) ProtoReflect() protoreflect.Message
func (*FilteredPolicyRequest) Reset ¶
func (x *FilteredPolicyRequest) Reset()
func (*FilteredPolicyRequest) String ¶
func (x *FilteredPolicyRequest) String() string
type NewAdapterReply ¶
type NewAdapterReply struct { Handler int32 `protobuf:"varint,1,opt,name=handler,proto3" json:"handler,omitempty"` // contains filtered or unexported fields }
func (*NewAdapterReply) Descriptor
deprecated
func (*NewAdapterReply) Descriptor() ([]byte, []int)
Deprecated: Use NewAdapterReply.ProtoReflect.Descriptor instead.
func (*NewAdapterReply) GetHandler ¶
func (x *NewAdapterReply) GetHandler() int32
func (*NewAdapterReply) ProtoMessage ¶
func (*NewAdapterReply) ProtoMessage()
func (*NewAdapterReply) ProtoReflect ¶
func (x *NewAdapterReply) ProtoReflect() protoreflect.Message
func (*NewAdapterReply) Reset ¶
func (x *NewAdapterReply) Reset()
func (*NewAdapterReply) String ¶
func (x *NewAdapterReply) String() string
type NewAdapterRequest ¶
type NewAdapterRequest struct { AdapterName string `protobuf:"bytes,1,opt,name=adapterName,proto3" json:"adapterName,omitempty"` DriverName string `protobuf:"bytes,2,opt,name=driverName,proto3" json:"driverName,omitempty"` ConnectString string `protobuf:"bytes,3,opt,name=connectString,proto3" json:"connectString,omitempty"` DbSpecified bool `protobuf:"varint,4,opt,name=dbSpecified,proto3" json:"dbSpecified,omitempty"` // contains filtered or unexported fields }
func (*NewAdapterRequest) Descriptor
deprecated
func (*NewAdapterRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewAdapterRequest.ProtoReflect.Descriptor instead.
func (*NewAdapterRequest) GetAdapterName ¶
func (x *NewAdapterRequest) GetAdapterName() string
func (*NewAdapterRequest) GetConnectString ¶
func (x *NewAdapterRequest) GetConnectString() string
func (*NewAdapterRequest) GetDbSpecified ¶
func (x *NewAdapterRequest) GetDbSpecified() bool
func (*NewAdapterRequest) GetDriverName ¶
func (x *NewAdapterRequest) GetDriverName() string
func (*NewAdapterRequest) ProtoMessage ¶
func (*NewAdapterRequest) ProtoMessage()
func (*NewAdapterRequest) ProtoReflect ¶
func (x *NewAdapterRequest) ProtoReflect() protoreflect.Message
func (*NewAdapterRequest) Reset ¶
func (x *NewAdapterRequest) Reset()
func (*NewAdapterRequest) String ¶
func (x *NewAdapterRequest) String() string
type NewEnforcerReply ¶
type NewEnforcerReply struct { Handler int32 `protobuf:"varint,1,opt,name=handler,proto3" json:"handler,omitempty"` // contains filtered or unexported fields }
func (*NewEnforcerReply) Descriptor
deprecated
func (*NewEnforcerReply) Descriptor() ([]byte, []int)
Deprecated: Use NewEnforcerReply.ProtoReflect.Descriptor instead.
func (*NewEnforcerReply) GetHandler ¶
func (x *NewEnforcerReply) GetHandler() int32
func (*NewEnforcerReply) ProtoMessage ¶
func (*NewEnforcerReply) ProtoMessage()
func (*NewEnforcerReply) ProtoReflect ¶
func (x *NewEnforcerReply) ProtoReflect() protoreflect.Message
func (*NewEnforcerReply) Reset ¶
func (x *NewEnforcerReply) Reset()
func (*NewEnforcerReply) String ¶
func (x *NewEnforcerReply) String() string
type NewEnforcerRequest ¶
type NewEnforcerRequest struct { ModelText string `protobuf:"bytes,1,opt,name=modelText,proto3" json:"modelText,omitempty"` AdapterHandle int32 `protobuf:"varint,2,opt,name=adapterHandle,proto3" json:"adapterHandle,omitempty"` EnableAcceptJsonRequest bool `protobuf:"varint,3,opt,name=enableAcceptJsonRequest,proto3" json:"enableAcceptJsonRequest,omitempty"` // contains filtered or unexported fields }
func (*NewEnforcerRequest) Descriptor
deprecated
func (*NewEnforcerRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewEnforcerRequest.ProtoReflect.Descriptor instead.
func (*NewEnforcerRequest) GetAdapterHandle ¶
func (x *NewEnforcerRequest) GetAdapterHandle() int32
func (*NewEnforcerRequest) GetEnableAcceptJsonRequest ¶ added in v1.17.0
func (x *NewEnforcerRequest) GetEnableAcceptJsonRequest() bool
func (*NewEnforcerRequest) GetModelText ¶
func (x *NewEnforcerRequest) GetModelText() string
func (*NewEnforcerRequest) ProtoMessage ¶
func (*NewEnforcerRequest) ProtoMessage()
func (*NewEnforcerRequest) ProtoReflect ¶
func (x *NewEnforcerRequest) ProtoReflect() protoreflect.Message
func (*NewEnforcerRequest) Reset ¶
func (x *NewEnforcerRequest) Reset()
func (*NewEnforcerRequest) String ¶
func (x *NewEnforcerRequest) String() string
type PermissionRequest ¶
type PermissionRequest struct { EnforcerHandler int32 `protobuf:"varint,1,opt,name=enforcerHandler,proto3" json:"enforcerHandler,omitempty"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` Permissions []string `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"` Domain []string `protobuf:"bytes,4,rep,name=domain,proto3" json:"domain,omitempty"` // contains filtered or unexported fields }
func (*PermissionRequest) Descriptor
deprecated
func (*PermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use PermissionRequest.ProtoReflect.Descriptor instead.
func (*PermissionRequest) GetDomain ¶ added in v1.12.0
func (x *PermissionRequest) GetDomain() []string
func (*PermissionRequest) GetEnforcerHandler ¶
func (x *PermissionRequest) GetEnforcerHandler() int32
func (*PermissionRequest) GetPermissions ¶
func (x *PermissionRequest) GetPermissions() []string
func (*PermissionRequest) GetUser ¶
func (x *PermissionRequest) GetUser() string
func (*PermissionRequest) ProtoMessage ¶
func (*PermissionRequest) ProtoMessage()
func (*PermissionRequest) ProtoReflect ¶
func (x *PermissionRequest) ProtoReflect() protoreflect.Message
func (*PermissionRequest) Reset ¶
func (x *PermissionRequest) Reset()
func (*PermissionRequest) String ¶
func (x *PermissionRequest) String() string
type PolicyRequest ¶
type PolicyRequest struct { EnforcerHandler int32 `protobuf:"varint,1,opt,name=enforcerHandler,proto3" json:"enforcerHandler,omitempty"` PType string `protobuf:"bytes,2,opt,name=pType,proto3" json:"pType,omitempty"` Params []string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
func (*PolicyRequest) Descriptor
deprecated
func (*PolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use PolicyRequest.ProtoReflect.Descriptor instead.
func (*PolicyRequest) GetEnforcerHandler ¶
func (x *PolicyRequest) GetEnforcerHandler() int32
func (*PolicyRequest) GetPType ¶
func (x *PolicyRequest) GetPType() string
func (*PolicyRequest) GetParams ¶
func (x *PolicyRequest) GetParams() []string
func (*PolicyRequest) ProtoMessage ¶
func (*PolicyRequest) ProtoMessage()
func (*PolicyRequest) ProtoReflect ¶
func (x *PolicyRequest) ProtoReflect() protoreflect.Message
func (*PolicyRequest) Reset ¶
func (x *PolicyRequest) Reset()
func (*PolicyRequest) String ¶
func (x *PolicyRequest) String() string
type SimpleGetRequest ¶
type SimpleGetRequest struct { EnforcerHandler int32 `protobuf:"varint,1,opt,name=enforcerHandler,proto3" json:"enforcerHandler,omitempty"` PType string `protobuf:"bytes,2,opt,name=pType,proto3" json:"pType,omitempty"` // contains filtered or unexported fields }
func (*SimpleGetRequest) Descriptor
deprecated
func (*SimpleGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use SimpleGetRequest.ProtoReflect.Descriptor instead.
func (*SimpleGetRequest) GetEnforcerHandler ¶
func (x *SimpleGetRequest) GetEnforcerHandler() int32
func (*SimpleGetRequest) GetPType ¶
func (x *SimpleGetRequest) GetPType() string
func (*SimpleGetRequest) ProtoMessage ¶
func (*SimpleGetRequest) ProtoMessage()
func (*SimpleGetRequest) ProtoReflect ¶
func (x *SimpleGetRequest) ProtoReflect() protoreflect.Message
func (*SimpleGetRequest) Reset ¶
func (x *SimpleGetRequest) Reset()
func (*SimpleGetRequest) String ¶
func (x *SimpleGetRequest) String() string
type UnimplementedCasbinServer ¶
type UnimplementedCasbinServer struct { }
UnimplementedCasbinServer should be embedded to have forward compatible implementations.
func (UnimplementedCasbinServer) AddGroupingPolicy ¶
func (UnimplementedCasbinServer) AddGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) AddNamedGroupingPolicy ¶
func (UnimplementedCasbinServer) AddNamedGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) AddNamedPolicy ¶
func (UnimplementedCasbinServer) AddNamedPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) AddPermissionForUser ¶
func (UnimplementedCasbinServer) AddPermissionForUser(context.Context, *PermissionRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) AddPolicy ¶
func (UnimplementedCasbinServer) AddPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) AddRoleForUser ¶
func (UnimplementedCasbinServer) AddRoleForUser(context.Context, *UserRoleRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) DeletePermission ¶
func (UnimplementedCasbinServer) DeletePermission(context.Context, *PermissionRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) DeletePermissionForUser ¶
func (UnimplementedCasbinServer) DeletePermissionForUser(context.Context, *PermissionRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) DeletePermissionsForUser ¶
func (UnimplementedCasbinServer) DeletePermissionsForUser(context.Context, *PermissionRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) DeleteRole ¶
func (UnimplementedCasbinServer) DeleteRole(context.Context, *UserRoleRequest) (*EmptyReply, error)
func (UnimplementedCasbinServer) DeleteRoleForUser ¶
func (UnimplementedCasbinServer) DeleteRoleForUser(context.Context, *UserRoleRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) DeleteRolesForUser ¶
func (UnimplementedCasbinServer) DeleteRolesForUser(context.Context, *UserRoleRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) DeleteUser ¶
func (UnimplementedCasbinServer) DeleteUser(context.Context, *UserRoleRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) Enforce ¶
func (UnimplementedCasbinServer) Enforce(context.Context, *EnforceRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) GetAllActions ¶
func (UnimplementedCasbinServer) GetAllActions(context.Context, *EmptyRequest) (*ArrayReply, error)
func (UnimplementedCasbinServer) GetAllNamedActions ¶
func (UnimplementedCasbinServer) GetAllNamedActions(context.Context, *SimpleGetRequest) (*ArrayReply, error)
func (UnimplementedCasbinServer) GetAllNamedObjects ¶
func (UnimplementedCasbinServer) GetAllNamedObjects(context.Context, *SimpleGetRequest) (*ArrayReply, error)
func (UnimplementedCasbinServer) GetAllNamedRoles ¶
func (UnimplementedCasbinServer) GetAllNamedRoles(context.Context, *SimpleGetRequest) (*ArrayReply, error)
func (UnimplementedCasbinServer) GetAllNamedSubjects ¶
func (UnimplementedCasbinServer) GetAllNamedSubjects(context.Context, *SimpleGetRequest) (*ArrayReply, error)
func (UnimplementedCasbinServer) GetAllObjects ¶
func (UnimplementedCasbinServer) GetAllObjects(context.Context, *EmptyRequest) (*ArrayReply, error)
func (UnimplementedCasbinServer) GetAllRoles ¶
func (UnimplementedCasbinServer) GetAllRoles(context.Context, *EmptyRequest) (*ArrayReply, error)
func (UnimplementedCasbinServer) GetAllSubjects ¶
func (UnimplementedCasbinServer) GetAllSubjects(context.Context, *EmptyRequest) (*ArrayReply, error)
func (UnimplementedCasbinServer) GetDomains ¶ added in v1.12.1
func (UnimplementedCasbinServer) GetDomains(context.Context, *UserRoleRequest) (*ArrayReply, error)
func (UnimplementedCasbinServer) GetFilteredGroupingPolicy ¶
func (UnimplementedCasbinServer) GetFilteredGroupingPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error)
func (UnimplementedCasbinServer) GetFilteredNamedGroupingPolicy ¶
func (UnimplementedCasbinServer) GetFilteredNamedGroupingPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error)
func (UnimplementedCasbinServer) GetFilteredNamedPolicy ¶
func (UnimplementedCasbinServer) GetFilteredNamedPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error)
func (UnimplementedCasbinServer) GetFilteredPolicy ¶
func (UnimplementedCasbinServer) GetFilteredPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error)
func (UnimplementedCasbinServer) GetGroupingPolicy ¶
func (UnimplementedCasbinServer) GetGroupingPolicy(context.Context, *EmptyRequest) (*Array2DReply, error)
func (UnimplementedCasbinServer) GetImplicitPermissionsForUser ¶
func (UnimplementedCasbinServer) GetImplicitPermissionsForUser(context.Context, *PermissionRequest) (*Array2DReply, error)
func (UnimplementedCasbinServer) GetImplicitRolesForUser ¶
func (UnimplementedCasbinServer) GetImplicitRolesForUser(context.Context, *UserRoleRequest) (*ArrayReply, error)
func (UnimplementedCasbinServer) GetNamedGroupingPolicy ¶
func (UnimplementedCasbinServer) GetNamedGroupingPolicy(context.Context, *PolicyRequest) (*Array2DReply, error)
func (UnimplementedCasbinServer) GetNamedPolicy ¶
func (UnimplementedCasbinServer) GetNamedPolicy(context.Context, *PolicyRequest) (*Array2DReply, error)
func (UnimplementedCasbinServer) GetPermissionsForUser ¶
func (UnimplementedCasbinServer) GetPermissionsForUser(context.Context, *PermissionRequest) (*Array2DReply, error)
func (UnimplementedCasbinServer) GetPolicy ¶
func (UnimplementedCasbinServer) GetPolicy(context.Context, *EmptyRequest) (*Array2DReply, error)
func (UnimplementedCasbinServer) GetRolesForUser ¶
func (UnimplementedCasbinServer) GetRolesForUser(context.Context, *UserRoleRequest) (*ArrayReply, error)
func (UnimplementedCasbinServer) GetUsersForRole ¶
func (UnimplementedCasbinServer) GetUsersForRole(context.Context, *UserRoleRequest) (*ArrayReply, error)
func (UnimplementedCasbinServer) HasGroupingPolicy ¶
func (UnimplementedCasbinServer) HasGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) HasNamedGroupingPolicy ¶
func (UnimplementedCasbinServer) HasNamedGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) HasNamedPolicy ¶
func (UnimplementedCasbinServer) HasNamedPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) HasPermissionForUser ¶
func (UnimplementedCasbinServer) HasPermissionForUser(context.Context, *PermissionRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) HasPolicy ¶
func (UnimplementedCasbinServer) HasPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) HasRoleForUser ¶
func (UnimplementedCasbinServer) HasRoleForUser(context.Context, *UserRoleRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) LoadPolicy ¶
func (UnimplementedCasbinServer) LoadPolicy(context.Context, *EmptyRequest) (*EmptyReply, error)
func (UnimplementedCasbinServer) NewAdapter ¶
func (UnimplementedCasbinServer) NewAdapter(context.Context, *NewAdapterRequest) (*NewAdapterReply, error)
func (UnimplementedCasbinServer) NewEnforcer ¶
func (UnimplementedCasbinServer) NewEnforcer(context.Context, *NewEnforcerRequest) (*NewEnforcerReply, error)
func (UnimplementedCasbinServer) RemoveFilteredGroupingPolicy ¶
func (UnimplementedCasbinServer) RemoveFilteredGroupingPolicy(context.Context, *FilteredPolicyRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) RemoveFilteredNamedGroupingPolicy ¶
func (UnimplementedCasbinServer) RemoveFilteredNamedGroupingPolicy(context.Context, *FilteredPolicyRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) RemoveFilteredNamedPolicy ¶
func (UnimplementedCasbinServer) RemoveFilteredNamedPolicy(context.Context, *FilteredPolicyRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) RemoveFilteredPolicy ¶
func (UnimplementedCasbinServer) RemoveFilteredPolicy(context.Context, *FilteredPolicyRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) RemoveGroupingPolicy ¶
func (UnimplementedCasbinServer) RemoveGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) RemoveNamedGroupingPolicy ¶
func (UnimplementedCasbinServer) RemoveNamedGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) RemoveNamedPolicy ¶
func (UnimplementedCasbinServer) RemoveNamedPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) RemovePolicy ¶
func (UnimplementedCasbinServer) RemovePolicy(context.Context, *PolicyRequest) (*BoolReply, error)
func (UnimplementedCasbinServer) SavePolicy ¶
func (UnimplementedCasbinServer) SavePolicy(context.Context, *EmptyRequest) (*EmptyReply, error)
type UnsafeCasbinServer ¶
type UnsafeCasbinServer interface {
// contains filtered or unexported methods
}
UnsafeCasbinServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CasbinServer will result in compilation errors.
type UserRoleRequest ¶
type UserRoleRequest struct { EnforcerHandler int32 `protobuf:"varint,1,opt,name=enforcerHandler,proto3" json:"enforcerHandler,omitempty"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"` Domain []string `protobuf:"bytes,4,rep,name=domain,proto3" json:"domain,omitempty"` // contains filtered or unexported fields }
func (*UserRoleRequest) Descriptor
deprecated
func (*UserRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserRoleRequest.ProtoReflect.Descriptor instead.
func (*UserRoleRequest) GetDomain ¶ added in v1.12.0
func (x *UserRoleRequest) GetDomain() []string
func (*UserRoleRequest) GetEnforcerHandler ¶
func (x *UserRoleRequest) GetEnforcerHandler() int32
func (*UserRoleRequest) GetRole ¶
func (x *UserRoleRequest) GetRole() string
func (*UserRoleRequest) GetUser ¶
func (x *UserRoleRequest) GetUser() string
func (*UserRoleRequest) ProtoMessage ¶
func (*UserRoleRequest) ProtoMessage()
func (*UserRoleRequest) ProtoReflect ¶
func (x *UserRoleRequest) ProtoReflect() protoreflect.Message
func (*UserRoleRequest) Reset ¶
func (x *UserRoleRequest) Reset()
func (*UserRoleRequest) String ¶
func (x *UserRoleRequest) String() string