Documentation
¶
Index ¶
- func GetMethodPolicy(fullMethodName string) (*pb.Policy, error)
- func PolicyVerifierInterceptor(permissionVerifierClient client.PermissionVerifierClient) grpc.UnaryServerInterceptor
- func ResourcePolicyInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (resp interface{}, err error)
- func WithPolicy(ctx context.Context, resource, action string) context.Context
- func WithPolicyMetadata(ctx context.Context, pm *Policy) context.Context
- type Policy
- type RPCMethod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMethodPolicy ¶
GetMethodPolicy protobufメソッドから権限情報を取得
func PolicyVerifierInterceptor ¶
func PolicyVerifierInterceptor(permissionVerifierClient client.PermissionVerifierClient) grpc.UnaryServerInterceptor
PolicyVerifierInterceptor 認可チェックを行うインターセプター
func ResourcePolicyInterceptor ¶
func ResourcePolicyInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)
ResourcePolicyInterceptor protobufオプションとリクエストからリソースを解決
Types ¶
Click to show internal directories.
Click to hide internal directories.