Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterPolicydServiceServer(s grpc.ServiceRegistrar, srv PolicydServiceServer)
- type EnforceBucketRequest
- func (*EnforceBucketRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnforceBucketRequest) GetRequests() []*proto.EnforceRequest
- func (*EnforceBucketRequest) ProtoMessage()
- func (x *EnforceBucketRequest) ProtoReflect() protoreflect.Message
- func (x *EnforceBucketRequest) Reset()
- func (x *EnforceBucketRequest) String() string
- type PolicydServiceClient
- type PolicydServiceServer
- type UnimplementedPolicydServiceServer
- func (UnimplementedPolicydServiceServer) AddGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) AddNamedGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) AddNamedPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) AddPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) AddPresetPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) Enforce(context.Context, *proto.EnforceRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) EnforceBucket(context.Context, *EnforceBucketRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) GetAllActions(context.Context, *proto.EmptyRequest) (*proto.ArrayReply, error)
- func (UnimplementedPolicydServiceServer) GetAllNamedActions(context.Context, *proto.SimpleGetRequest) (*proto.ArrayReply, error)
- func (UnimplementedPolicydServiceServer) GetAllNamedObjects(context.Context, *proto.SimpleGetRequest) (*proto.ArrayReply, error)
- func (UnimplementedPolicydServiceServer) GetAllNamedRoles(context.Context, *proto.SimpleGetRequest) (*proto.ArrayReply, error)
- func (UnimplementedPolicydServiceServer) GetAllNamedSubjects(context.Context, *proto.SimpleGetRequest) (*proto.ArrayReply, error)
- func (UnimplementedPolicydServiceServer) GetAllObjects(context.Context, *proto.EmptyRequest) (*proto.ArrayReply, error)
- func (UnimplementedPolicydServiceServer) GetAllRoles(context.Context, *proto.EmptyRequest) (*proto.ArrayReply, error)
- func (UnimplementedPolicydServiceServer) GetAllSubjects(context.Context, *proto.EmptyRequest) (*proto.ArrayReply, error)
- func (UnimplementedPolicydServiceServer) GetFilteredGroupingPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.Array2DReply, error)
- func (UnimplementedPolicydServiceServer) GetFilteredNamedGroupingPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.Array2DReply, error)
- func (UnimplementedPolicydServiceServer) GetFilteredNamedPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.Array2DReply, error)
- func (UnimplementedPolicydServiceServer) GetFilteredPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.Array2DReply, error)
- func (UnimplementedPolicydServiceServer) GetGroupingPolicy(context.Context, *proto.EmptyRequest) (*proto.Array2DReply, error)
- func (UnimplementedPolicydServiceServer) GetNamedGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.Array2DReply, error)
- func (UnimplementedPolicydServiceServer) GetNamedPolicy(context.Context, *proto.PolicyRequest) (*proto.Array2DReply, error)
- func (UnimplementedPolicydServiceServer) GetPolicy(context.Context, *proto.EmptyRequest) (*proto.Array2DReply, error)
- func (UnimplementedPolicydServiceServer) HasGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) HasNamedGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) HasNamedPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) HasPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) Initialize(context.Context, *proto.EmptyRequest) (*proto.EmptyReply, error)
- func (UnimplementedPolicydServiceServer) LoadPolicy(context.Context, *proto.EmptyRequest) (*proto.EmptyReply, error)
- func (UnimplementedPolicydServiceServer) NewAdapter(context.Context, *proto.NewAdapterRequest) (*proto.NewAdapterReply, error)
- func (UnimplementedPolicydServiceServer) NewEnforcer(context.Context, *proto.NewEnforcerRequest) (*proto.NewEnforcerReply, error)
- func (UnimplementedPolicydServiceServer) RemoveFilteredGroupingPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) RemoveFilteredNamedGroupingPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) RemoveFilteredNamedPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) RemoveFilteredPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) RemoveGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) RemoveNamedGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) RemoveNamedPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) RemovePolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) RemovePresetPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
- func (UnimplementedPolicydServiceServer) SavePolicy(context.Context, *proto.EmptyRequest) (*proto.EmptyReply, error)
- type UnsafePolicydServiceServer
Constants ¶
const ( PolicydService_NewEnforcer_FullMethodName = "/ai.metathings.service.policyd.PolicydService/NewEnforcer" PolicydService_NewAdapter_FullMethodName = "/ai.metathings.service.policyd.PolicydService/NewAdapter" PolicydService_Enforce_FullMethodName = "/ai.metathings.service.policyd.PolicydService/Enforce" PolicydService_LoadPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/LoadPolicy" PolicydService_SavePolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/SavePolicy" PolicydService_AddPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/AddPolicy" PolicydService_AddNamedPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/AddNamedPolicy" PolicydService_RemovePolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/RemovePolicy" PolicydService_RemoveNamedPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/RemoveNamedPolicy" PolicydService_RemoveFilteredPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/RemoveFilteredPolicy" PolicydService_RemoveFilteredNamedPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/RemoveFilteredNamedPolicy" PolicydService_GetPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/GetPolicy" PolicydService_GetNamedPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/GetNamedPolicy" PolicydService_GetFilteredPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/GetFilteredPolicy" PolicydService_GetFilteredNamedPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/GetFilteredNamedPolicy" PolicydService_AddGroupingPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/AddGroupingPolicy" PolicydService_AddNamedGroupingPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/AddNamedGroupingPolicy" PolicydService_RemoveGroupingPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/RemoveGroupingPolicy" PolicydService_RemoveNamedGroupingPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/RemoveNamedGroupingPolicy" PolicydService_RemoveFilteredGroupingPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/RemoveFilteredGroupingPolicy" PolicydService_RemoveFilteredNamedGroupingPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/RemoveFilteredNamedGroupingPolicy" PolicydService_GetGroupingPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/GetGroupingPolicy" PolicydService_GetNamedGroupingPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/GetNamedGroupingPolicy" PolicydService_GetFilteredGroupingPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/GetFilteredGroupingPolicy" PolicydService_GetFilteredNamedGroupingPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/GetFilteredNamedGroupingPolicy" PolicydService_GetAllSubjects_FullMethodName = "/ai.metathings.service.policyd.PolicydService/GetAllSubjects" PolicydService_GetAllNamedSubjects_FullMethodName = "/ai.metathings.service.policyd.PolicydService/GetAllNamedSubjects" PolicydService_GetAllObjects_FullMethodName = "/ai.metathings.service.policyd.PolicydService/GetAllObjects" PolicydService_GetAllNamedObjects_FullMethodName = "/ai.metathings.service.policyd.PolicydService/GetAllNamedObjects" PolicydService_GetAllActions_FullMethodName = "/ai.metathings.service.policyd.PolicydService/GetAllActions" PolicydService_GetAllNamedActions_FullMethodName = "/ai.metathings.service.policyd.PolicydService/GetAllNamedActions" PolicydService_GetAllRoles_FullMethodName = "/ai.metathings.service.policyd.PolicydService/GetAllRoles" PolicydService_GetAllNamedRoles_FullMethodName = "/ai.metathings.service.policyd.PolicydService/GetAllNamedRoles" PolicydService_HasPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/HasPolicy" PolicydService_HasNamedPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/HasNamedPolicy" PolicydService_HasGroupingPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/HasGroupingPolicy" PolicydService_HasNamedGroupingPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/HasNamedGroupingPolicy" PolicydService_EnforceBucket_FullMethodName = "/ai.metathings.service.policyd.PolicydService/EnforceBucket" PolicydService_AddPresetPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/AddPresetPolicy" PolicydService_RemovePresetPolicy_FullMethodName = "/ai.metathings.service.policyd.PolicydService/RemovePresetPolicy" PolicydService_Initialize_FullMethodName = "/ai.metathings.service.policyd.PolicydService/Initialize" )
Variables ¶
var File_service_proto protoreflect.FileDescriptor
var PolicydService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ai.metathings.service.policyd.PolicydService", HandlerType: (*PolicydServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "NewEnforcer", Handler: _PolicydService_NewEnforcer_Handler, }, { MethodName: "NewAdapter", Handler: _PolicydService_NewAdapter_Handler, }, { MethodName: "Enforce", Handler: _PolicydService_Enforce_Handler, }, { MethodName: "LoadPolicy", Handler: _PolicydService_LoadPolicy_Handler, }, { MethodName: "SavePolicy", Handler: _PolicydService_SavePolicy_Handler, }, { MethodName: "AddPolicy", Handler: _PolicydService_AddPolicy_Handler, }, { MethodName: "AddNamedPolicy", Handler: _PolicydService_AddNamedPolicy_Handler, }, { MethodName: "RemovePolicy", Handler: _PolicydService_RemovePolicy_Handler, }, { MethodName: "RemoveNamedPolicy", Handler: _PolicydService_RemoveNamedPolicy_Handler, }, { MethodName: "RemoveFilteredPolicy", Handler: _PolicydService_RemoveFilteredPolicy_Handler, }, { MethodName: "RemoveFilteredNamedPolicy", Handler: _PolicydService_RemoveFilteredNamedPolicy_Handler, }, { MethodName: "GetPolicy", Handler: _PolicydService_GetPolicy_Handler, }, { MethodName: "GetNamedPolicy", Handler: _PolicydService_GetNamedPolicy_Handler, }, { MethodName: "GetFilteredPolicy", Handler: _PolicydService_GetFilteredPolicy_Handler, }, { MethodName: "GetFilteredNamedPolicy", Handler: _PolicydService_GetFilteredNamedPolicy_Handler, }, { MethodName: "AddGroupingPolicy", Handler: _PolicydService_AddGroupingPolicy_Handler, }, { MethodName: "AddNamedGroupingPolicy", Handler: _PolicydService_AddNamedGroupingPolicy_Handler, }, { MethodName: "RemoveGroupingPolicy", Handler: _PolicydService_RemoveGroupingPolicy_Handler, }, { MethodName: "RemoveNamedGroupingPolicy", Handler: _PolicydService_RemoveNamedGroupingPolicy_Handler, }, { MethodName: "RemoveFilteredGroupingPolicy", Handler: _PolicydService_RemoveFilteredGroupingPolicy_Handler, }, { MethodName: "RemoveFilteredNamedGroupingPolicy", Handler: _PolicydService_RemoveFilteredNamedGroupingPolicy_Handler, }, { MethodName: "GetGroupingPolicy", Handler: _PolicydService_GetGroupingPolicy_Handler, }, { MethodName: "GetNamedGroupingPolicy", Handler: _PolicydService_GetNamedGroupingPolicy_Handler, }, { MethodName: "GetFilteredGroupingPolicy", Handler: _PolicydService_GetFilteredGroupingPolicy_Handler, }, { MethodName: "GetFilteredNamedGroupingPolicy", Handler: _PolicydService_GetFilteredNamedGroupingPolicy_Handler, }, { MethodName: "GetAllSubjects", Handler: _PolicydService_GetAllSubjects_Handler, }, { MethodName: "GetAllNamedSubjects", Handler: _PolicydService_GetAllNamedSubjects_Handler, }, { MethodName: "GetAllObjects", Handler: _PolicydService_GetAllObjects_Handler, }, { MethodName: "GetAllNamedObjects", Handler: _PolicydService_GetAllNamedObjects_Handler, }, { MethodName: "GetAllActions", Handler: _PolicydService_GetAllActions_Handler, }, { MethodName: "GetAllNamedActions", Handler: _PolicydService_GetAllNamedActions_Handler, }, { MethodName: "GetAllRoles", Handler: _PolicydService_GetAllRoles_Handler, }, { MethodName: "GetAllNamedRoles", Handler: _PolicydService_GetAllNamedRoles_Handler, }, { MethodName: "HasPolicy", Handler: _PolicydService_HasPolicy_Handler, }, { MethodName: "HasNamedPolicy", Handler: _PolicydService_HasNamedPolicy_Handler, }, { MethodName: "HasGroupingPolicy", Handler: _PolicydService_HasGroupingPolicy_Handler, }, { MethodName: "HasNamedGroupingPolicy", Handler: _PolicydService_HasNamedGroupingPolicy_Handler, }, { MethodName: "EnforceBucket", Handler: _PolicydService_EnforceBucket_Handler, }, { MethodName: "AddPresetPolicy", Handler: _PolicydService_AddPresetPolicy_Handler, }, { MethodName: "RemovePresetPolicy", Handler: _PolicydService_RemovePresetPolicy_Handler, }, { MethodName: "Initialize", Handler: _PolicydService_Initialize_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }
PolicydService_ServiceDesc is the grpc.ServiceDesc for PolicydService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPolicydServiceServer ¶
func RegisterPolicydServiceServer(s grpc.ServiceRegistrar, srv PolicydServiceServer)
Types ¶
type EnforceBucketRequest ¶
type EnforceBucketRequest struct { Requests []*proto.EnforceRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` // contains filtered or unexported fields }
func (*EnforceBucketRequest) Descriptor
deprecated
func (*EnforceBucketRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnforceBucketRequest.ProtoReflect.Descriptor instead.
func (*EnforceBucketRequest) GetRequests ¶
func (x *EnforceBucketRequest) GetRequests() []*proto.EnforceRequest
func (*EnforceBucketRequest) ProtoMessage ¶
func (*EnforceBucketRequest) ProtoMessage()
func (*EnforceBucketRequest) ProtoReflect ¶ added in v1.2.14
func (x *EnforceBucketRequest) ProtoReflect() protoreflect.Message
func (*EnforceBucketRequest) Reset ¶
func (x *EnforceBucketRequest) Reset()
func (*EnforceBucketRequest) String ¶
func (x *EnforceBucketRequest) String() string
type PolicydServiceClient ¶
type PolicydServiceClient interface { // Casbin server functions NewEnforcer(ctx context.Context, in *proto.NewEnforcerRequest, opts ...grpc.CallOption) (*proto.NewEnforcerReply, error) NewAdapter(ctx context.Context, in *proto.NewAdapterRequest, opts ...grpc.CallOption) (*proto.NewAdapterReply, error) Enforce(ctx context.Context, in *proto.EnforceRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) LoadPolicy(ctx context.Context, in *proto.EmptyRequest, opts ...grpc.CallOption) (*proto.EmptyReply, error) SavePolicy(ctx context.Context, in *proto.EmptyRequest, opts ...grpc.CallOption) (*proto.EmptyReply, error) AddPolicy(ctx context.Context, in *proto.PolicyRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) AddNamedPolicy(ctx context.Context, in *proto.PolicyRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) RemovePolicy(ctx context.Context, in *proto.PolicyRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) RemoveNamedPolicy(ctx context.Context, in *proto.PolicyRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) RemoveFilteredPolicy(ctx context.Context, in *proto.FilteredPolicyRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) RemoveFilteredNamedPolicy(ctx context.Context, in *proto.FilteredPolicyRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) GetPolicy(ctx context.Context, in *proto.EmptyRequest, opts ...grpc.CallOption) (*proto.Array2DReply, error) GetNamedPolicy(ctx context.Context, in *proto.PolicyRequest, opts ...grpc.CallOption) (*proto.Array2DReply, error) GetFilteredPolicy(ctx context.Context, in *proto.FilteredPolicyRequest, opts ...grpc.CallOption) (*proto.Array2DReply, error) GetFilteredNamedPolicy(ctx context.Context, in *proto.FilteredPolicyRequest, opts ...grpc.CallOption) (*proto.Array2DReply, error) AddGroupingPolicy(ctx context.Context, in *proto.PolicyRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) AddNamedGroupingPolicy(ctx context.Context, in *proto.PolicyRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) RemoveGroupingPolicy(ctx context.Context, in *proto.PolicyRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) RemoveNamedGroupingPolicy(ctx context.Context, in *proto.PolicyRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) RemoveFilteredGroupingPolicy(ctx context.Context, in *proto.FilteredPolicyRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) RemoveFilteredNamedGroupingPolicy(ctx context.Context, in *proto.FilteredPolicyRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) GetGroupingPolicy(ctx context.Context, in *proto.EmptyRequest, opts ...grpc.CallOption) (*proto.Array2DReply, error) GetNamedGroupingPolicy(ctx context.Context, in *proto.PolicyRequest, opts ...grpc.CallOption) (*proto.Array2DReply, error) GetFilteredGroupingPolicy(ctx context.Context, in *proto.FilteredPolicyRequest, opts ...grpc.CallOption) (*proto.Array2DReply, error) GetFilteredNamedGroupingPolicy(ctx context.Context, in *proto.FilteredPolicyRequest, opts ...grpc.CallOption) (*proto.Array2DReply, error) GetAllSubjects(ctx context.Context, in *proto.EmptyRequest, opts ...grpc.CallOption) (*proto.ArrayReply, error) GetAllNamedSubjects(ctx context.Context, in *proto.SimpleGetRequest, opts ...grpc.CallOption) (*proto.ArrayReply, error) GetAllObjects(ctx context.Context, in *proto.EmptyRequest, opts ...grpc.CallOption) (*proto.ArrayReply, error) GetAllNamedObjects(ctx context.Context, in *proto.SimpleGetRequest, opts ...grpc.CallOption) (*proto.ArrayReply, error) GetAllActions(ctx context.Context, in *proto.EmptyRequest, opts ...grpc.CallOption) (*proto.ArrayReply, error) GetAllNamedActions(ctx context.Context, in *proto.SimpleGetRequest, opts ...grpc.CallOption) (*proto.ArrayReply, error) GetAllRoles(ctx context.Context, in *proto.EmptyRequest, opts ...grpc.CallOption) (*proto.ArrayReply, error) GetAllNamedRoles(ctx context.Context, in *proto.SimpleGetRequest, opts ...grpc.CallOption) (*proto.ArrayReply, error) HasPolicy(ctx context.Context, in *proto.PolicyRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) HasNamedPolicy(ctx context.Context, in *proto.PolicyRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) HasGroupingPolicy(ctx context.Context, in *proto.PolicyRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) HasNamedGroupingPolicy(ctx context.Context, in *proto.PolicyRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) // Custom functions EnforceBucket(ctx context.Context, in *EnforceBucketRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) AddPresetPolicy(ctx context.Context, in *proto.PolicyRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) RemovePresetPolicy(ctx context.Context, in *proto.PolicyRequest, opts ...grpc.CallOption) (*proto.BoolReply, error) Initialize(ctx context.Context, in *proto.EmptyRequest, opts ...grpc.CallOption) (*proto.EmptyReply, error) }
PolicydServiceClient is the client API for PolicydService 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 NewPolicydServiceClient ¶
func NewPolicydServiceClient(cc grpc.ClientConnInterface) PolicydServiceClient
type PolicydServiceServer ¶
type PolicydServiceServer interface { // Casbin server functions NewEnforcer(context.Context, *proto.NewEnforcerRequest) (*proto.NewEnforcerReply, error) NewAdapter(context.Context, *proto.NewAdapterRequest) (*proto.NewAdapterReply, error) Enforce(context.Context, *proto.EnforceRequest) (*proto.BoolReply, error) LoadPolicy(context.Context, *proto.EmptyRequest) (*proto.EmptyReply, error) SavePolicy(context.Context, *proto.EmptyRequest) (*proto.EmptyReply, error) AddPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error) AddNamedPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error) RemovePolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error) RemoveNamedPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error) RemoveFilteredPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.BoolReply, error) RemoveFilteredNamedPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.BoolReply, error) GetPolicy(context.Context, *proto.EmptyRequest) (*proto.Array2DReply, error) GetNamedPolicy(context.Context, *proto.PolicyRequest) (*proto.Array2DReply, error) GetFilteredPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.Array2DReply, error) GetFilteredNamedPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.Array2DReply, error) AddGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error) AddNamedGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error) RemoveGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error) RemoveNamedGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error) RemoveFilteredGroupingPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.BoolReply, error) RemoveFilteredNamedGroupingPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.BoolReply, error) GetGroupingPolicy(context.Context, *proto.EmptyRequest) (*proto.Array2DReply, error) GetNamedGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.Array2DReply, error) GetFilteredGroupingPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.Array2DReply, error) GetFilteredNamedGroupingPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.Array2DReply, error) GetAllSubjects(context.Context, *proto.EmptyRequest) (*proto.ArrayReply, error) GetAllNamedSubjects(context.Context, *proto.SimpleGetRequest) (*proto.ArrayReply, error) GetAllObjects(context.Context, *proto.EmptyRequest) (*proto.ArrayReply, error) GetAllNamedObjects(context.Context, *proto.SimpleGetRequest) (*proto.ArrayReply, error) GetAllActions(context.Context, *proto.EmptyRequest) (*proto.ArrayReply, error) GetAllNamedActions(context.Context, *proto.SimpleGetRequest) (*proto.ArrayReply, error) GetAllRoles(context.Context, *proto.EmptyRequest) (*proto.ArrayReply, error) GetAllNamedRoles(context.Context, *proto.SimpleGetRequest) (*proto.ArrayReply, error) HasPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error) HasNamedPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error) HasGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error) HasNamedGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error) // Custom functions EnforceBucket(context.Context, *EnforceBucketRequest) (*proto.BoolReply, error) AddPresetPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error) RemovePresetPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error) Initialize(context.Context, *proto.EmptyRequest) (*proto.EmptyReply, error) // contains filtered or unexported methods }
PolicydServiceServer is the server API for PolicydService service. All implementations must embed UnimplementedPolicydServiceServer for forward compatibility.
type UnimplementedPolicydServiceServer ¶ added in v1.2.14
type UnimplementedPolicydServiceServer struct{}
UnimplementedPolicydServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedPolicydServiceServer) AddGroupingPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) AddGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) AddNamedGroupingPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) AddNamedGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) AddNamedPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) AddNamedPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) AddPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) AddPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) AddPresetPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) AddPresetPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) Enforce ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) Enforce(context.Context, *proto.EnforceRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) EnforceBucket ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) EnforceBucket(context.Context, *EnforceBucketRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) GetAllActions ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) GetAllActions(context.Context, *proto.EmptyRequest) (*proto.ArrayReply, error)
func (UnimplementedPolicydServiceServer) GetAllNamedActions ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) GetAllNamedActions(context.Context, *proto.SimpleGetRequest) (*proto.ArrayReply, error)
func (UnimplementedPolicydServiceServer) GetAllNamedObjects ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) GetAllNamedObjects(context.Context, *proto.SimpleGetRequest) (*proto.ArrayReply, error)
func (UnimplementedPolicydServiceServer) GetAllNamedRoles ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) GetAllNamedRoles(context.Context, *proto.SimpleGetRequest) (*proto.ArrayReply, error)
func (UnimplementedPolicydServiceServer) GetAllNamedSubjects ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) GetAllNamedSubjects(context.Context, *proto.SimpleGetRequest) (*proto.ArrayReply, error)
func (UnimplementedPolicydServiceServer) GetAllObjects ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) GetAllObjects(context.Context, *proto.EmptyRequest) (*proto.ArrayReply, error)
func (UnimplementedPolicydServiceServer) GetAllRoles ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) GetAllRoles(context.Context, *proto.EmptyRequest) (*proto.ArrayReply, error)
func (UnimplementedPolicydServiceServer) GetAllSubjects ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) GetAllSubjects(context.Context, *proto.EmptyRequest) (*proto.ArrayReply, error)
func (UnimplementedPolicydServiceServer) GetFilteredGroupingPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) GetFilteredGroupingPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.Array2DReply, error)
func (UnimplementedPolicydServiceServer) GetFilteredNamedGroupingPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) GetFilteredNamedGroupingPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.Array2DReply, error)
func (UnimplementedPolicydServiceServer) GetFilteredNamedPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) GetFilteredNamedPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.Array2DReply, error)
func (UnimplementedPolicydServiceServer) GetFilteredPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) GetFilteredPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.Array2DReply, error)
func (UnimplementedPolicydServiceServer) GetGroupingPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) GetGroupingPolicy(context.Context, *proto.EmptyRequest) (*proto.Array2DReply, error)
func (UnimplementedPolicydServiceServer) GetNamedGroupingPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) GetNamedGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.Array2DReply, error)
func (UnimplementedPolicydServiceServer) GetNamedPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) GetNamedPolicy(context.Context, *proto.PolicyRequest) (*proto.Array2DReply, error)
func (UnimplementedPolicydServiceServer) GetPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) GetPolicy(context.Context, *proto.EmptyRequest) (*proto.Array2DReply, error)
func (UnimplementedPolicydServiceServer) HasGroupingPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) HasGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) HasNamedGroupingPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) HasNamedGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) HasNamedPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) HasNamedPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) HasPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) HasPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) Initialize ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) Initialize(context.Context, *proto.EmptyRequest) (*proto.EmptyReply, error)
func (UnimplementedPolicydServiceServer) LoadPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) LoadPolicy(context.Context, *proto.EmptyRequest) (*proto.EmptyReply, error)
func (UnimplementedPolicydServiceServer) NewAdapter ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) NewAdapter(context.Context, *proto.NewAdapterRequest) (*proto.NewAdapterReply, error)
func (UnimplementedPolicydServiceServer) NewEnforcer ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) NewEnforcer(context.Context, *proto.NewEnforcerRequest) (*proto.NewEnforcerReply, error)
func (UnimplementedPolicydServiceServer) RemoveFilteredGroupingPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) RemoveFilteredGroupingPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) RemoveFilteredNamedGroupingPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) RemoveFilteredNamedGroupingPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) RemoveFilteredNamedPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) RemoveFilteredNamedPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) RemoveFilteredPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) RemoveFilteredPolicy(context.Context, *proto.FilteredPolicyRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) RemoveGroupingPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) RemoveGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) RemoveNamedGroupingPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) RemoveNamedGroupingPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) RemoveNamedPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) RemoveNamedPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) RemovePolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) RemovePolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) RemovePresetPolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) RemovePresetPolicy(context.Context, *proto.PolicyRequest) (*proto.BoolReply, error)
func (UnimplementedPolicydServiceServer) SavePolicy ¶ added in v1.2.14
func (UnimplementedPolicydServiceServer) SavePolicy(context.Context, *proto.EmptyRequest) (*proto.EmptyReply, error)
type UnsafePolicydServiceServer ¶
type UnsafePolicydServiceServer interface {
// contains filtered or unexported methods
}
UnsafePolicydServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PolicydServiceServer will result in compilation errors.