Documentation ¶
Index ¶
- Variables
- func NewRBACServiceEndpoints() []api.Endpoint
- func NewRBACServiceOpenAPI() *openapipb.OpenAPI
- func RegisterRBACServiceHandler(s server.Server, hdlr RBACServiceHandler, opts ...server.HandlerOption) error
- func RegisterRBACServiceServer(s *grpc.Server, srv RBACServiceServer)
- type AddGroupPolicyRequest
- func (*AddGroupPolicyRequest) Descriptor() ([]byte, []int)
- func (m *AddGroupPolicyRequest) Marshal() (dAtA []byte, err error)
- func (m *AddGroupPolicyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *AddGroupPolicyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AddGroupPolicyRequest) ProtoMessage()
- func (m *AddGroupPolicyRequest) Reset()
- func (m *AddGroupPolicyRequest) String() string
- func (m *AddGroupPolicyRequest) Unmarshal(dAtA []byte) error
- func (m *AddGroupPolicyRequest) XSize() (n int)
- func (m *AddGroupPolicyRequest) XXX_DiscardUnknown()
- func (m *AddGroupPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddGroupPolicyRequest) XXX_Merge(src proto.Message)
- func (m *AddGroupPolicyRequest) XXX_Size() int
- func (m *AddGroupPolicyRequest) XXX_Unmarshal(b []byte) error
- type AddGroupPolicyResponse
- func (*AddGroupPolicyResponse) Descriptor() ([]byte, []int)
- func (m *AddGroupPolicyResponse) Marshal() (dAtA []byte, err error)
- func (m *AddGroupPolicyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *AddGroupPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AddGroupPolicyResponse) ProtoMessage()
- func (m *AddGroupPolicyResponse) Reset()
- func (m *AddGroupPolicyResponse) String() string
- func (m *AddGroupPolicyResponse) Unmarshal(dAtA []byte) error
- func (m *AddGroupPolicyResponse) XSize() (n int)
- func (m *AddGroupPolicyResponse) XXX_DiscardUnknown()
- func (m *AddGroupPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddGroupPolicyResponse) XXX_Merge(src proto.Message)
- func (m *AddGroupPolicyResponse) XXX_Size() int
- func (m *AddGroupPolicyResponse) XXX_Unmarshal(b []byte) error
- type AddPolicyRequest
- func (*AddPolicyRequest) Descriptor() ([]byte, []int)
- func (m *AddPolicyRequest) Marshal() (dAtA []byte, err error)
- func (m *AddPolicyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *AddPolicyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AddPolicyRequest) ProtoMessage()
- func (m *AddPolicyRequest) Reset()
- func (m *AddPolicyRequest) String() string
- func (m *AddPolicyRequest) Unmarshal(dAtA []byte) error
- func (m *AddPolicyRequest) XSize() (n int)
- func (m *AddPolicyRequest) XXX_DiscardUnknown()
- func (m *AddPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddPolicyRequest) XXX_Merge(src proto.Message)
- func (m *AddPolicyRequest) XXX_Size() int
- func (m *AddPolicyRequest) XXX_Unmarshal(b []byte) error
- type AddPolicyResponse
- func (*AddPolicyResponse) Descriptor() ([]byte, []int)
- func (m *AddPolicyResponse) Marshal() (dAtA []byte, err error)
- func (m *AddPolicyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *AddPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AddPolicyResponse) ProtoMessage()
- func (m *AddPolicyResponse) Reset()
- func (m *AddPolicyResponse) String() string
- func (m *AddPolicyResponse) Unmarshal(dAtA []byte) error
- func (m *AddPolicyResponse) XSize() (n int)
- func (m *AddPolicyResponse) XXX_DiscardUnknown()
- func (m *AddPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddPolicyResponse) XXX_Merge(src proto.Message)
- func (m *AddPolicyResponse) XXX_Size() int
- func (m *AddPolicyResponse) XXX_Unmarshal(b []byte) error
- type DelGroupPolicyRequest
- func (*DelGroupPolicyRequest) Descriptor() ([]byte, []int)
- func (m *DelGroupPolicyRequest) Marshal() (dAtA []byte, err error)
- func (m *DelGroupPolicyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *DelGroupPolicyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DelGroupPolicyRequest) ProtoMessage()
- func (m *DelGroupPolicyRequest) Reset()
- func (m *DelGroupPolicyRequest) String() string
- func (m *DelGroupPolicyRequest) Unmarshal(dAtA []byte) error
- func (m *DelGroupPolicyRequest) XSize() (n int)
- func (m *DelGroupPolicyRequest) XXX_DiscardUnknown()
- func (m *DelGroupPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelGroupPolicyRequest) XXX_Merge(src proto.Message)
- func (m *DelGroupPolicyRequest) XXX_Size() int
- func (m *DelGroupPolicyRequest) XXX_Unmarshal(b []byte) error
- type DelGroupPolicyResponse
- func (*DelGroupPolicyResponse) Descriptor() ([]byte, []int)
- func (m *DelGroupPolicyResponse) Marshal() (dAtA []byte, err error)
- func (m *DelGroupPolicyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *DelGroupPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DelGroupPolicyResponse) ProtoMessage()
- func (m *DelGroupPolicyResponse) Reset()
- func (m *DelGroupPolicyResponse) String() string
- func (m *DelGroupPolicyResponse) Unmarshal(dAtA []byte) error
- func (m *DelGroupPolicyResponse) XSize() (n int)
- func (m *DelGroupPolicyResponse) XXX_DiscardUnknown()
- func (m *DelGroupPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelGroupPolicyResponse) XXX_Merge(src proto.Message)
- func (m *DelGroupPolicyResponse) XXX_Size() int
- func (m *DelGroupPolicyResponse) XXX_Unmarshal(b []byte) error
- type DelPolicyRequest
- func (*DelPolicyRequest) Descriptor() ([]byte, []int)
- func (m *DelPolicyRequest) Marshal() (dAtA []byte, err error)
- func (m *DelPolicyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *DelPolicyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DelPolicyRequest) ProtoMessage()
- func (m *DelPolicyRequest) Reset()
- func (m *DelPolicyRequest) String() string
- func (m *DelPolicyRequest) Unmarshal(dAtA []byte) error
- func (m *DelPolicyRequest) XSize() (n int)
- func (m *DelPolicyRequest) XXX_DiscardUnknown()
- func (m *DelPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelPolicyRequest) XXX_Merge(src proto.Message)
- func (m *DelPolicyRequest) XXX_Size() int
- func (m *DelPolicyRequest) XXX_Unmarshal(b []byte) error
- type DelPolicyResponse
- func (*DelPolicyResponse) Descriptor() ([]byte, []int)
- func (m *DelPolicyResponse) Marshal() (dAtA []byte, err error)
- func (m *DelPolicyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *DelPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DelPolicyResponse) ProtoMessage()
- func (m *DelPolicyResponse) Reset()
- func (m *DelPolicyResponse) String() string
- func (m *DelPolicyResponse) Unmarshal(dAtA []byte) error
- func (m *DelPolicyResponse) XSize() (n int)
- func (m *DelPolicyResponse) XXX_DiscardUnknown()
- func (m *DelPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelPolicyResponse) XXX_Merge(src proto.Message)
- func (m *DelPolicyResponse) XXX_Size() int
- func (m *DelPolicyResponse) XXX_Unmarshal(b []byte) error
- type EnforceRequest
- func (*EnforceRequest) Descriptor() ([]byte, []int)
- func (m *EnforceRequest) Marshal() (dAtA []byte, err error)
- func (m *EnforceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *EnforceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EnforceRequest) ProtoMessage()
- func (m *EnforceRequest) Reset()
- func (m *EnforceRequest) String() string
- func (m *EnforceRequest) Unmarshal(dAtA []byte) error
- func (m *EnforceRequest) XSize() (n int)
- func (m *EnforceRequest) XXX_DiscardUnknown()
- func (m *EnforceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EnforceRequest) XXX_Merge(src proto.Message)
- func (m *EnforceRequest) XXX_Size() int
- func (m *EnforceRequest) XXX_Unmarshal(b []byte) error
- type EnforceResponse
- func (*EnforceResponse) Descriptor() ([]byte, []int)
- func (m *EnforceResponse) Marshal() (dAtA []byte, err error)
- func (m *EnforceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *EnforceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EnforceResponse) ProtoMessage()
- func (m *EnforceResponse) Reset()
- func (m *EnforceResponse) String() string
- func (m *EnforceResponse) Unmarshal(dAtA []byte) error
- func (m *EnforceResponse) XSize() (n int)
- func (m *EnforceResponse) XXX_DiscardUnknown()
- func (m *EnforceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EnforceResponse) XXX_Merge(src proto.Message)
- func (m *EnforceResponse) XXX_Size() int
- func (m *EnforceResponse) XXX_Unmarshal(b []byte) error
- type GetAllPoliciesRequest
- func (*GetAllPoliciesRequest) Descriptor() ([]byte, []int)
- func (m *GetAllPoliciesRequest) Marshal() (dAtA []byte, err error)
- func (m *GetAllPoliciesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetAllPoliciesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetAllPoliciesRequest) ProtoMessage()
- func (m *GetAllPoliciesRequest) Reset()
- func (m *GetAllPoliciesRequest) String() string
- func (m *GetAllPoliciesRequest) Unmarshal(dAtA []byte) error
- func (m *GetAllPoliciesRequest) XSize() (n int)
- func (m *GetAllPoliciesRequest) XXX_DiscardUnknown()
- func (m *GetAllPoliciesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAllPoliciesRequest) XXX_Merge(src proto.Message)
- func (m *GetAllPoliciesRequest) XXX_Size() int
- func (m *GetAllPoliciesRequest) XXX_Unmarshal(b []byte) error
- type GetAllPoliciesResponse
- func (*GetAllPoliciesResponse) Descriptor() ([]byte, []int)
- func (m *GetAllPoliciesResponse) Marshal() (dAtA []byte, err error)
- func (m *GetAllPoliciesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetAllPoliciesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetAllPoliciesResponse) ProtoMessage()
- func (m *GetAllPoliciesResponse) Reset()
- func (m *GetAllPoliciesResponse) String() string
- func (m *GetAllPoliciesResponse) Unmarshal(dAtA []byte) error
- func (m *GetAllPoliciesResponse) XSize() (n int)
- func (m *GetAllPoliciesResponse) XXX_DiscardUnknown()
- func (m *GetAllPoliciesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAllPoliciesResponse) XXX_Merge(src proto.Message)
- func (m *GetAllPoliciesResponse) XXX_Size() int
- func (m *GetAllPoliciesResponse) XXX_Unmarshal(b []byte) error
- type GetGroupPoliciesRequest
- func (*GetGroupPoliciesRequest) Descriptor() ([]byte, []int)
- func (m *GetGroupPoliciesRequest) Marshal() (dAtA []byte, err error)
- func (m *GetGroupPoliciesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetGroupPoliciesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetGroupPoliciesRequest) ProtoMessage()
- func (m *GetGroupPoliciesRequest) Reset()
- func (m *GetGroupPoliciesRequest) String() string
- func (m *GetGroupPoliciesRequest) Unmarshal(dAtA []byte) error
- func (m *GetGroupPoliciesRequest) XSize() (n int)
- func (m *GetGroupPoliciesRequest) XXX_DiscardUnknown()
- func (m *GetGroupPoliciesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetGroupPoliciesRequest) XXX_Merge(src proto.Message)
- func (m *GetGroupPoliciesRequest) XXX_Size() int
- func (m *GetGroupPoliciesRequest) XXX_Unmarshal(b []byte) error
- type GetGroupPoliciesResponse
- func (*GetGroupPoliciesResponse) Descriptor() ([]byte, []int)
- func (m *GetGroupPoliciesResponse) Marshal() (dAtA []byte, err error)
- func (m *GetGroupPoliciesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetGroupPoliciesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetGroupPoliciesResponse) ProtoMessage()
- func (m *GetGroupPoliciesResponse) Reset()
- func (m *GetGroupPoliciesResponse) String() string
- func (m *GetGroupPoliciesResponse) Unmarshal(dAtA []byte) error
- func (m *GetGroupPoliciesResponse) XSize() (n int)
- func (m *GetGroupPoliciesResponse) XXX_DiscardUnknown()
- func (m *GetGroupPoliciesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetGroupPoliciesResponse) XXX_Merge(src proto.Message)
- func (m *GetGroupPoliciesResponse) XXX_Size() int
- func (m *GetGroupPoliciesResponse) XXX_Unmarshal(b []byte) error
- type GetPoliciesRequest
- func (*GetPoliciesRequest) Descriptor() ([]byte, []int)
- func (m *GetPoliciesRequest) Marshal() (dAtA []byte, err error)
- func (m *GetPoliciesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetPoliciesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetPoliciesRequest) ProtoMessage()
- func (m *GetPoliciesRequest) Reset()
- func (m *GetPoliciesRequest) String() string
- func (m *GetPoliciesRequest) Unmarshal(dAtA []byte) error
- func (m *GetPoliciesRequest) XSize() (n int)
- func (m *GetPoliciesRequest) XXX_DiscardUnknown()
- func (m *GetPoliciesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPoliciesRequest) XXX_Merge(src proto.Message)
- func (m *GetPoliciesRequest) XXX_Size() int
- func (m *GetPoliciesRequest) XXX_Unmarshal(b []byte) error
- type GetPoliciesResponse
- func (*GetPoliciesResponse) Descriptor() ([]byte, []int)
- func (m *GetPoliciesResponse) Marshal() (dAtA []byte, err error)
- func (m *GetPoliciesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetPoliciesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetPoliciesResponse) ProtoMessage()
- func (m *GetPoliciesResponse) Reset()
- func (m *GetPoliciesResponse) String() string
- func (m *GetPoliciesResponse) Unmarshal(dAtA []byte) error
- func (m *GetPoliciesResponse) XSize() (n int)
- func (m *GetPoliciesResponse) XXX_DiscardUnknown()
- func (m *GetPoliciesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPoliciesResponse) XXX_Merge(src proto.Message)
- func (m *GetPoliciesResponse) XXX_Size() int
- func (m *GetPoliciesResponse) XXX_Unmarshal(b []byte) error
- type PType
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)
- func (m *Policy) Marshal() (dAtA []byte, err error)
- func (m *Policy) MarshalTo(dAtA []byte) (int, error)
- func (m *Policy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Policy) ProtoMessage()
- func (m *Policy) Reset()
- func (m *Policy) String() string
- func (m Policy) ToCasbinPolicy() (sub string, obj string, act string)
- func (m *Policy) Unmarshal(dAtA []byte) error
- func (m *Policy) XSize() (n int)
- func (m *Policy) XXX_DiscardUnknown()
- func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Policy) XXX_Merge(src proto.Message)
- func (m *Policy) XXX_Size() int
- func (m *Policy) XXX_Unmarshal(b []byte) error
- type RBACService
- type RBACServiceClient
- type RBACServiceHandler
- type RBACServiceServer
- type Subject
- func (*Subject) Descriptor() ([]byte, []int)
- func (m *Subject) Marshal() (dAtA []byte, err error)
- func (m *Subject) MarshalTo(dAtA []byte) (int, error)
- func (m *Subject) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Subject) ProtoMessage()
- func (m *Subject) Reset()
- func (m *Subject) String() string
- func (m *Subject) Unmarshal(dAtA []byte) error
- func (m *Subject) XSize() (n int)
- func (m *Subject) XXX_DiscardUnknown()
- func (m *Subject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Subject) XXX_Merge(src proto.Message)
- func (m *Subject) XXX_Size() int
- func (m *Subject) XXX_Unmarshal(b []byte) error
- type UnimplementedRBACServiceServer
- func (*UnimplementedRBACServiceServer) AddGroupPolicy(ctx context.Context, req *AddGroupPolicyRequest) (*AddGroupPolicyResponse, error)
- func (*UnimplementedRBACServiceServer) AddPolicy(ctx context.Context, req *AddPolicyRequest) (*AddPolicyResponse, error)
- func (*UnimplementedRBACServiceServer) DelGroupPolicy(ctx context.Context, req *DelGroupPolicyRequest) (*DelGroupPolicyResponse, error)
- func (*UnimplementedRBACServiceServer) DelPolicy(ctx context.Context, req *DelPolicyRequest) (*DelPolicyResponse, error)
- func (*UnimplementedRBACServiceServer) Enforce(ctx context.Context, req *EnforceRequest) (*EnforceResponse, error)
- func (*UnimplementedRBACServiceServer) GetAllPolicies(ctx context.Context, req *GetAllPoliciesRequest) (*GetAllPoliciesResponse, error)
- func (*UnimplementedRBACServiceServer) GetGroupPolicies(ctx context.Context, req *GetGroupPoliciesRequest) (*GetGroupPoliciesResponse, error)
- func (*UnimplementedRBACServiceServer) GetPolicies(ctx context.Context, req *GetPoliciesRequest) (*GetPoliciesResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthRbac = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRbac = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRbac = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRpc = fmt.Errorf("proto: unexpected end of group") )
View Source
var PType_name = map[int32]string{
0: "UNKNOWN",
1: "POLICY",
2: "ROLE",
3: "GROUP",
}
View Source
var PType_value = map[string]int32{
"UNKNOWN": 0,
"POLICY": 1,
"ROLE": 2,
"GROUP": 3,
}
Functions ¶
func NewRBACServiceEndpoints ¶
API Endpoints for RBACService service
func NewRBACServiceOpenAPI ¶
Swagger OpenAPI 3.0 for RBACService service
func RegisterRBACServiceHandler ¶
func RegisterRBACServiceHandler(s server.Server, hdlr RBACServiceHandler, opts ...server.HandlerOption) error
func RegisterRBACServiceServer ¶
func RegisterRBACServiceServer(s *grpc.Server, srv RBACServiceServer)
Types ¶
type AddGroupPolicyRequest ¶
type AddGroupPolicyRequest struct { // +gen:required Subject *Subject `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` }
func (*AddGroupPolicyRequest) Descriptor ¶
func (*AddGroupPolicyRequest) Descriptor() ([]byte, []int)
func (*AddGroupPolicyRequest) Marshal ¶
func (m *AddGroupPolicyRequest) Marshal() (dAtA []byte, err error)
func (*AddGroupPolicyRequest) MarshalTo ¶
func (m *AddGroupPolicyRequest) MarshalTo(dAtA []byte) (int, error)
func (*AddGroupPolicyRequest) MarshalToSizedBuffer ¶
func (m *AddGroupPolicyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AddGroupPolicyRequest) ProtoMessage ¶
func (*AddGroupPolicyRequest) ProtoMessage()
func (*AddGroupPolicyRequest) Reset ¶
func (m *AddGroupPolicyRequest) Reset()
func (*AddGroupPolicyRequest) String ¶
func (m *AddGroupPolicyRequest) String() string
func (*AddGroupPolicyRequest) Unmarshal ¶
func (m *AddGroupPolicyRequest) Unmarshal(dAtA []byte) error
func (*AddGroupPolicyRequest) XSize ¶
func (m *AddGroupPolicyRequest) XSize() (n int)
func (*AddGroupPolicyRequest) XXX_DiscardUnknown ¶
func (m *AddGroupPolicyRequest) XXX_DiscardUnknown()
func (*AddGroupPolicyRequest) XXX_Marshal ¶
func (m *AddGroupPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddGroupPolicyRequest) XXX_Merge ¶
func (m *AddGroupPolicyRequest) XXX_Merge(src proto.Message)
func (*AddGroupPolicyRequest) XXX_Size ¶
func (m *AddGroupPolicyRequest) XXX_Size() int
func (*AddGroupPolicyRequest) XXX_Unmarshal ¶
func (m *AddGroupPolicyRequest) XXX_Unmarshal(b []byte) error
type AddGroupPolicyResponse ¶
type AddGroupPolicyResponse struct { }
func (*AddGroupPolicyResponse) Descriptor ¶
func (*AddGroupPolicyResponse) Descriptor() ([]byte, []int)
func (*AddGroupPolicyResponse) Marshal ¶
func (m *AddGroupPolicyResponse) Marshal() (dAtA []byte, err error)
func (*AddGroupPolicyResponse) MarshalTo ¶
func (m *AddGroupPolicyResponse) MarshalTo(dAtA []byte) (int, error)
func (*AddGroupPolicyResponse) MarshalToSizedBuffer ¶
func (m *AddGroupPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AddGroupPolicyResponse) ProtoMessage ¶
func (*AddGroupPolicyResponse) ProtoMessage()
func (*AddGroupPolicyResponse) Reset ¶
func (m *AddGroupPolicyResponse) Reset()
func (*AddGroupPolicyResponse) String ¶
func (m *AddGroupPolicyResponse) String() string
func (*AddGroupPolicyResponse) Unmarshal ¶
func (m *AddGroupPolicyResponse) Unmarshal(dAtA []byte) error
func (*AddGroupPolicyResponse) XSize ¶
func (m *AddGroupPolicyResponse) XSize() (n int)
func (*AddGroupPolicyResponse) XXX_DiscardUnknown ¶
func (m *AddGroupPolicyResponse) XXX_DiscardUnknown()
func (*AddGroupPolicyResponse) XXX_Marshal ¶
func (m *AddGroupPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddGroupPolicyResponse) XXX_Merge ¶
func (m *AddGroupPolicyResponse) XXX_Merge(src proto.Message)
func (*AddGroupPolicyResponse) XXX_Size ¶
func (m *AddGroupPolicyResponse) XXX_Size() int
func (*AddGroupPolicyResponse) XXX_Unmarshal ¶
func (m *AddGroupPolicyResponse) XXX_Unmarshal(b []byte) error
type AddPolicyRequest ¶
type AddPolicyRequest struct { // +gen:required Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` }
func (*AddPolicyRequest) Descriptor ¶
func (*AddPolicyRequest) Descriptor() ([]byte, []int)
func (*AddPolicyRequest) Marshal ¶
func (m *AddPolicyRequest) Marshal() (dAtA []byte, err error)
func (*AddPolicyRequest) MarshalToSizedBuffer ¶
func (m *AddPolicyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AddPolicyRequest) ProtoMessage ¶
func (*AddPolicyRequest) ProtoMessage()
func (*AddPolicyRequest) Reset ¶
func (m *AddPolicyRequest) Reset()
func (*AddPolicyRequest) String ¶
func (m *AddPolicyRequest) String() string
func (*AddPolicyRequest) Unmarshal ¶
func (m *AddPolicyRequest) Unmarshal(dAtA []byte) error
func (*AddPolicyRequest) XSize ¶
func (m *AddPolicyRequest) XSize() (n int)
func (*AddPolicyRequest) XXX_DiscardUnknown ¶
func (m *AddPolicyRequest) XXX_DiscardUnknown()
func (*AddPolicyRequest) XXX_Marshal ¶
func (m *AddPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddPolicyRequest) XXX_Merge ¶
func (m *AddPolicyRequest) XXX_Merge(src proto.Message)
func (*AddPolicyRequest) XXX_Size ¶
func (m *AddPolicyRequest) XXX_Size() int
func (*AddPolicyRequest) XXX_Unmarshal ¶
func (m *AddPolicyRequest) XXX_Unmarshal(b []byte) error
type AddPolicyResponse ¶
type AddPolicyResponse struct { }
func (*AddPolicyResponse) Descriptor ¶
func (*AddPolicyResponse) Descriptor() ([]byte, []int)
func (*AddPolicyResponse) Marshal ¶
func (m *AddPolicyResponse) Marshal() (dAtA []byte, err error)
func (*AddPolicyResponse) MarshalTo ¶
func (m *AddPolicyResponse) MarshalTo(dAtA []byte) (int, error)
func (*AddPolicyResponse) MarshalToSizedBuffer ¶
func (m *AddPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AddPolicyResponse) ProtoMessage ¶
func (*AddPolicyResponse) ProtoMessage()
func (*AddPolicyResponse) Reset ¶
func (m *AddPolicyResponse) Reset()
func (*AddPolicyResponse) String ¶
func (m *AddPolicyResponse) String() string
func (*AddPolicyResponse) Unmarshal ¶
func (m *AddPolicyResponse) Unmarshal(dAtA []byte) error
func (*AddPolicyResponse) XSize ¶
func (m *AddPolicyResponse) XSize() (n int)
func (*AddPolicyResponse) XXX_DiscardUnknown ¶
func (m *AddPolicyResponse) XXX_DiscardUnknown()
func (*AddPolicyResponse) XXX_Marshal ¶
func (m *AddPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddPolicyResponse) XXX_Merge ¶
func (m *AddPolicyResponse) XXX_Merge(src proto.Message)
func (*AddPolicyResponse) XXX_Size ¶
func (m *AddPolicyResponse) XXX_Size() int
func (*AddPolicyResponse) XXX_Unmarshal ¶
func (m *AddPolicyResponse) XXX_Unmarshal(b []byte) error
type DelGroupPolicyRequest ¶
type DelGroupPolicyRequest struct { // +gen:required Subject *Subject `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` }
func (*DelGroupPolicyRequest) Descriptor ¶
func (*DelGroupPolicyRequest) Descriptor() ([]byte, []int)
func (*DelGroupPolicyRequest) Marshal ¶
func (m *DelGroupPolicyRequest) Marshal() (dAtA []byte, err error)
func (*DelGroupPolicyRequest) MarshalTo ¶
func (m *DelGroupPolicyRequest) MarshalTo(dAtA []byte) (int, error)
func (*DelGroupPolicyRequest) MarshalToSizedBuffer ¶
func (m *DelGroupPolicyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DelGroupPolicyRequest) ProtoMessage ¶
func (*DelGroupPolicyRequest) ProtoMessage()
func (*DelGroupPolicyRequest) Reset ¶
func (m *DelGroupPolicyRequest) Reset()
func (*DelGroupPolicyRequest) String ¶
func (m *DelGroupPolicyRequest) String() string
func (*DelGroupPolicyRequest) Unmarshal ¶
func (m *DelGroupPolicyRequest) Unmarshal(dAtA []byte) error
func (*DelGroupPolicyRequest) XSize ¶
func (m *DelGroupPolicyRequest) XSize() (n int)
func (*DelGroupPolicyRequest) XXX_DiscardUnknown ¶
func (m *DelGroupPolicyRequest) XXX_DiscardUnknown()
func (*DelGroupPolicyRequest) XXX_Marshal ¶
func (m *DelGroupPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelGroupPolicyRequest) XXX_Merge ¶
func (m *DelGroupPolicyRequest) XXX_Merge(src proto.Message)
func (*DelGroupPolicyRequest) XXX_Size ¶
func (m *DelGroupPolicyRequest) XXX_Size() int
func (*DelGroupPolicyRequest) XXX_Unmarshal ¶
func (m *DelGroupPolicyRequest) XXX_Unmarshal(b []byte) error
type DelGroupPolicyResponse ¶
type DelGroupPolicyResponse struct { }
func (*DelGroupPolicyResponse) Descriptor ¶
func (*DelGroupPolicyResponse) Descriptor() ([]byte, []int)
func (*DelGroupPolicyResponse) Marshal ¶
func (m *DelGroupPolicyResponse) Marshal() (dAtA []byte, err error)
func (*DelGroupPolicyResponse) MarshalTo ¶
func (m *DelGroupPolicyResponse) MarshalTo(dAtA []byte) (int, error)
func (*DelGroupPolicyResponse) MarshalToSizedBuffer ¶
func (m *DelGroupPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DelGroupPolicyResponse) ProtoMessage ¶
func (*DelGroupPolicyResponse) ProtoMessage()
func (*DelGroupPolicyResponse) Reset ¶
func (m *DelGroupPolicyResponse) Reset()
func (*DelGroupPolicyResponse) String ¶
func (m *DelGroupPolicyResponse) String() string
func (*DelGroupPolicyResponse) Unmarshal ¶
func (m *DelGroupPolicyResponse) Unmarshal(dAtA []byte) error
func (*DelGroupPolicyResponse) XSize ¶
func (m *DelGroupPolicyResponse) XSize() (n int)
func (*DelGroupPolicyResponse) XXX_DiscardUnknown ¶
func (m *DelGroupPolicyResponse) XXX_DiscardUnknown()
func (*DelGroupPolicyResponse) XXX_Marshal ¶
func (m *DelGroupPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelGroupPolicyResponse) XXX_Merge ¶
func (m *DelGroupPolicyResponse) XXX_Merge(src proto.Message)
func (*DelGroupPolicyResponse) XXX_Size ¶
func (m *DelGroupPolicyResponse) XXX_Size() int
func (*DelGroupPolicyResponse) XXX_Unmarshal ¶
func (m *DelGroupPolicyResponse) XXX_Unmarshal(b []byte) error
type DelPolicyRequest ¶ added in v0.3.0
type DelPolicyRequest struct { // +gen:required Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` }
func (*DelPolicyRequest) Descriptor ¶ added in v0.3.0
func (*DelPolicyRequest) Descriptor() ([]byte, []int)
func (*DelPolicyRequest) Marshal ¶ added in v0.3.0
func (m *DelPolicyRequest) Marshal() (dAtA []byte, err error)
func (*DelPolicyRequest) MarshalTo ¶ added in v0.3.0
func (m *DelPolicyRequest) MarshalTo(dAtA []byte) (int, error)
func (*DelPolicyRequest) MarshalToSizedBuffer ¶ added in v0.3.0
func (m *DelPolicyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DelPolicyRequest) ProtoMessage ¶ added in v0.3.0
func (*DelPolicyRequest) ProtoMessage()
func (*DelPolicyRequest) Reset ¶ added in v0.3.0
func (m *DelPolicyRequest) Reset()
func (*DelPolicyRequest) String ¶ added in v0.3.0
func (m *DelPolicyRequest) String() string
func (*DelPolicyRequest) Unmarshal ¶ added in v0.3.0
func (m *DelPolicyRequest) Unmarshal(dAtA []byte) error
func (*DelPolicyRequest) XSize ¶ added in v0.3.0
func (m *DelPolicyRequest) XSize() (n int)
func (*DelPolicyRequest) XXX_DiscardUnknown ¶ added in v0.3.0
func (m *DelPolicyRequest) XXX_DiscardUnknown()
func (*DelPolicyRequest) XXX_Marshal ¶ added in v0.3.0
func (m *DelPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelPolicyRequest) XXX_Merge ¶ added in v0.3.0
func (m *DelPolicyRequest) XXX_Merge(src proto.Message)
func (*DelPolicyRequest) XXX_Size ¶ added in v0.3.0
func (m *DelPolicyRequest) XXX_Size() int
func (*DelPolicyRequest) XXX_Unmarshal ¶ added in v0.3.0
func (m *DelPolicyRequest) XXX_Unmarshal(b []byte) error
type DelPolicyResponse ¶ added in v0.3.0
type DelPolicyResponse struct { }
func (*DelPolicyResponse) Descriptor ¶ added in v0.3.0
func (*DelPolicyResponse) Descriptor() ([]byte, []int)
func (*DelPolicyResponse) Marshal ¶ added in v0.3.0
func (m *DelPolicyResponse) Marshal() (dAtA []byte, err error)
func (*DelPolicyResponse) MarshalTo ¶ added in v0.3.0
func (m *DelPolicyResponse) MarshalTo(dAtA []byte) (int, error)
func (*DelPolicyResponse) MarshalToSizedBuffer ¶ added in v0.3.0
func (m *DelPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DelPolicyResponse) ProtoMessage ¶ added in v0.3.0
func (*DelPolicyResponse) ProtoMessage()
func (*DelPolicyResponse) Reset ¶ added in v0.3.0
func (m *DelPolicyResponse) Reset()
func (*DelPolicyResponse) String ¶ added in v0.3.0
func (m *DelPolicyResponse) String() string
func (*DelPolicyResponse) Unmarshal ¶ added in v0.3.0
func (m *DelPolicyResponse) Unmarshal(dAtA []byte) error
func (*DelPolicyResponse) XSize ¶ added in v0.3.0
func (m *DelPolicyResponse) XSize() (n int)
func (*DelPolicyResponse) XXX_DiscardUnknown ¶ added in v0.3.0
func (m *DelPolicyResponse) XXX_DiscardUnknown()
func (*DelPolicyResponse) XXX_Marshal ¶ added in v0.3.0
func (m *DelPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelPolicyResponse) XXX_Merge ¶ added in v0.3.0
func (m *DelPolicyResponse) XXX_Merge(src proto.Message)
func (*DelPolicyResponse) XXX_Size ¶ added in v0.3.0
func (m *DelPolicyResponse) XXX_Size() int
func (*DelPolicyResponse) XXX_Unmarshal ¶ added in v0.3.0
func (m *DelPolicyResponse) XXX_Unmarshal(b []byte) error
type EnforceRequest ¶
type EnforceRequest struct { // +gen:required Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` }
func (*EnforceRequest) Descriptor ¶
func (*EnforceRequest) Descriptor() ([]byte, []int)
func (*EnforceRequest) Marshal ¶
func (m *EnforceRequest) Marshal() (dAtA []byte, err error)
func (*EnforceRequest) MarshalToSizedBuffer ¶
func (m *EnforceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EnforceRequest) ProtoMessage ¶
func (*EnforceRequest) ProtoMessage()
func (*EnforceRequest) Reset ¶
func (m *EnforceRequest) Reset()
func (*EnforceRequest) String ¶
func (m *EnforceRequest) String() string
func (*EnforceRequest) Unmarshal ¶
func (m *EnforceRequest) Unmarshal(dAtA []byte) error
func (*EnforceRequest) XSize ¶
func (m *EnforceRequest) XSize() (n int)
func (*EnforceRequest) XXX_DiscardUnknown ¶
func (m *EnforceRequest) XXX_DiscardUnknown()
func (*EnforceRequest) XXX_Marshal ¶
func (m *EnforceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EnforceRequest) XXX_Merge ¶
func (m *EnforceRequest) XXX_Merge(src proto.Message)
func (*EnforceRequest) XXX_Size ¶
func (m *EnforceRequest) XXX_Size() int
func (*EnforceRequest) XXX_Unmarshal ¶
func (m *EnforceRequest) XXX_Unmarshal(b []byte) error
type EnforceResponse ¶
type EnforceResponse struct {
Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
}
func (*EnforceResponse) Descriptor ¶
func (*EnforceResponse) Descriptor() ([]byte, []int)
func (*EnforceResponse) Marshal ¶
func (m *EnforceResponse) Marshal() (dAtA []byte, err error)
func (*EnforceResponse) MarshalToSizedBuffer ¶
func (m *EnforceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EnforceResponse) ProtoMessage ¶
func (*EnforceResponse) ProtoMessage()
func (*EnforceResponse) Reset ¶
func (m *EnforceResponse) Reset()
func (*EnforceResponse) String ¶
func (m *EnforceResponse) String() string
func (*EnforceResponse) Unmarshal ¶
func (m *EnforceResponse) Unmarshal(dAtA []byte) error
func (*EnforceResponse) XSize ¶
func (m *EnforceResponse) XSize() (n int)
func (*EnforceResponse) XXX_DiscardUnknown ¶
func (m *EnforceResponse) XXX_DiscardUnknown()
func (*EnforceResponse) XXX_Marshal ¶
func (m *EnforceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EnforceResponse) XXX_Merge ¶
func (m *EnforceResponse) XXX_Merge(src proto.Message)
func (*EnforceResponse) XXX_Size ¶
func (m *EnforceResponse) XXX_Size() int
func (*EnforceResponse) XXX_Unmarshal ¶
func (m *EnforceResponse) XXX_Unmarshal(b []byte) error
type GetAllPoliciesRequest ¶ added in v0.4.0
type GetAllPoliciesRequest struct { }
func (*GetAllPoliciesRequest) Descriptor ¶ added in v0.4.0
func (*GetAllPoliciesRequest) Descriptor() ([]byte, []int)
func (*GetAllPoliciesRequest) Marshal ¶ added in v0.4.0
func (m *GetAllPoliciesRequest) Marshal() (dAtA []byte, err error)
func (*GetAllPoliciesRequest) MarshalTo ¶ added in v0.4.0
func (m *GetAllPoliciesRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetAllPoliciesRequest) MarshalToSizedBuffer ¶ added in v0.4.0
func (m *GetAllPoliciesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetAllPoliciesRequest) ProtoMessage ¶ added in v0.4.0
func (*GetAllPoliciesRequest) ProtoMessage()
func (*GetAllPoliciesRequest) Reset ¶ added in v0.4.0
func (m *GetAllPoliciesRequest) Reset()
func (*GetAllPoliciesRequest) String ¶ added in v0.4.0
func (m *GetAllPoliciesRequest) String() string
func (*GetAllPoliciesRequest) Unmarshal ¶ added in v0.4.0
func (m *GetAllPoliciesRequest) Unmarshal(dAtA []byte) error
func (*GetAllPoliciesRequest) XSize ¶ added in v0.4.0
func (m *GetAllPoliciesRequest) XSize() (n int)
func (*GetAllPoliciesRequest) XXX_DiscardUnknown ¶ added in v0.4.0
func (m *GetAllPoliciesRequest) XXX_DiscardUnknown()
func (*GetAllPoliciesRequest) XXX_Marshal ¶ added in v0.4.0
func (m *GetAllPoliciesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAllPoliciesRequest) XXX_Merge ¶ added in v0.4.0
func (m *GetAllPoliciesRequest) XXX_Merge(src proto.Message)
func (*GetAllPoliciesRequest) XXX_Size ¶ added in v0.4.0
func (m *GetAllPoliciesRequest) XXX_Size() int
func (*GetAllPoliciesRequest) XXX_Unmarshal ¶ added in v0.4.0
func (m *GetAllPoliciesRequest) XXX_Unmarshal(b []byte) error
type GetAllPoliciesResponse ¶ added in v0.4.0
type GetAllPoliciesResponse struct { Policies []*Policy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"` Subjects []*Subject `protobuf:"bytes,2,rep,name=subjects,proto3" json:"subjects,omitempty"` }
func (*GetAllPoliciesResponse) Descriptor ¶ added in v0.4.0
func (*GetAllPoliciesResponse) Descriptor() ([]byte, []int)
func (*GetAllPoliciesResponse) Marshal ¶ added in v0.4.0
func (m *GetAllPoliciesResponse) Marshal() (dAtA []byte, err error)
func (*GetAllPoliciesResponse) MarshalTo ¶ added in v0.4.0
func (m *GetAllPoliciesResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetAllPoliciesResponse) MarshalToSizedBuffer ¶ added in v0.4.0
func (m *GetAllPoliciesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetAllPoliciesResponse) ProtoMessage ¶ added in v0.4.0
func (*GetAllPoliciesResponse) ProtoMessage()
func (*GetAllPoliciesResponse) Reset ¶ added in v0.4.0
func (m *GetAllPoliciesResponse) Reset()
func (*GetAllPoliciesResponse) String ¶ added in v0.4.0
func (m *GetAllPoliciesResponse) String() string
func (*GetAllPoliciesResponse) Unmarshal ¶ added in v0.4.0
func (m *GetAllPoliciesResponse) Unmarshal(dAtA []byte) error
func (*GetAllPoliciesResponse) XSize ¶ added in v0.4.0
func (m *GetAllPoliciesResponse) XSize() (n int)
func (*GetAllPoliciesResponse) XXX_DiscardUnknown ¶ added in v0.4.0
func (m *GetAllPoliciesResponse) XXX_DiscardUnknown()
func (*GetAllPoliciesResponse) XXX_Marshal ¶ added in v0.4.0
func (m *GetAllPoliciesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAllPoliciesResponse) XXX_Merge ¶ added in v0.4.0
func (m *GetAllPoliciesResponse) XXX_Merge(src proto.Message)
func (*GetAllPoliciesResponse) XXX_Size ¶ added in v0.4.0
func (m *GetAllPoliciesResponse) XXX_Size() int
func (*GetAllPoliciesResponse) XXX_Unmarshal ¶ added in v0.4.0
func (m *GetAllPoliciesResponse) XXX_Unmarshal(b []byte) error
type GetGroupPoliciesRequest ¶ added in v0.4.0
type GetGroupPoliciesRequest struct { Ptype PType `protobuf:"varint,1,opt,name=ptype,proto3,enum=api.PType" json:"ptype,omitempty"` Sub string `protobuf:"bytes,2,opt,name=sub,proto3" json:"sub,omitempty"` }
func (*GetGroupPoliciesRequest) Descriptor ¶ added in v0.4.0
func (*GetGroupPoliciesRequest) Descriptor() ([]byte, []int)
func (*GetGroupPoliciesRequest) Marshal ¶ added in v0.4.0
func (m *GetGroupPoliciesRequest) Marshal() (dAtA []byte, err error)
func (*GetGroupPoliciesRequest) MarshalTo ¶ added in v0.4.0
func (m *GetGroupPoliciesRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetGroupPoliciesRequest) MarshalToSizedBuffer ¶ added in v0.4.0
func (m *GetGroupPoliciesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetGroupPoliciesRequest) ProtoMessage ¶ added in v0.4.0
func (*GetGroupPoliciesRequest) ProtoMessage()
func (*GetGroupPoliciesRequest) Reset ¶ added in v0.4.0
func (m *GetGroupPoliciesRequest) Reset()
func (*GetGroupPoliciesRequest) String ¶ added in v0.4.0
func (m *GetGroupPoliciesRequest) String() string
func (*GetGroupPoliciesRequest) Unmarshal ¶ added in v0.4.0
func (m *GetGroupPoliciesRequest) Unmarshal(dAtA []byte) error
func (*GetGroupPoliciesRequest) XSize ¶ added in v0.4.0
func (m *GetGroupPoliciesRequest) XSize() (n int)
func (*GetGroupPoliciesRequest) XXX_DiscardUnknown ¶ added in v0.4.0
func (m *GetGroupPoliciesRequest) XXX_DiscardUnknown()
func (*GetGroupPoliciesRequest) XXX_Marshal ¶ added in v0.4.0
func (m *GetGroupPoliciesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetGroupPoliciesRequest) XXX_Merge ¶ added in v0.4.0
func (m *GetGroupPoliciesRequest) XXX_Merge(src proto.Message)
func (*GetGroupPoliciesRequest) XXX_Size ¶ added in v0.4.0
func (m *GetGroupPoliciesRequest) XXX_Size() int
func (*GetGroupPoliciesRequest) XXX_Unmarshal ¶ added in v0.4.0
func (m *GetGroupPoliciesRequest) XXX_Unmarshal(b []byte) error
type GetGroupPoliciesResponse ¶ added in v0.4.0
type GetGroupPoliciesResponse struct {
Subjects []*Subject `protobuf:"bytes,2,rep,name=subjects,proto3" json:"subjects,omitempty"`
}
func (*GetGroupPoliciesResponse) Descriptor ¶ added in v0.4.0
func (*GetGroupPoliciesResponse) Descriptor() ([]byte, []int)
func (*GetGroupPoliciesResponse) Marshal ¶ added in v0.4.0
func (m *GetGroupPoliciesResponse) Marshal() (dAtA []byte, err error)
func (*GetGroupPoliciesResponse) MarshalTo ¶ added in v0.4.0
func (m *GetGroupPoliciesResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetGroupPoliciesResponse) MarshalToSizedBuffer ¶ added in v0.4.0
func (m *GetGroupPoliciesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetGroupPoliciesResponse) ProtoMessage ¶ added in v0.4.0
func (*GetGroupPoliciesResponse) ProtoMessage()
func (*GetGroupPoliciesResponse) Reset ¶ added in v0.4.0
func (m *GetGroupPoliciesResponse) Reset()
func (*GetGroupPoliciesResponse) String ¶ added in v0.4.0
func (m *GetGroupPoliciesResponse) String() string
func (*GetGroupPoliciesResponse) Unmarshal ¶ added in v0.4.0
func (m *GetGroupPoliciesResponse) Unmarshal(dAtA []byte) error
func (*GetGroupPoliciesResponse) XSize ¶ added in v0.4.0
func (m *GetGroupPoliciesResponse) XSize() (n int)
func (*GetGroupPoliciesResponse) XXX_DiscardUnknown ¶ added in v0.4.0
func (m *GetGroupPoliciesResponse) XXX_DiscardUnknown()
func (*GetGroupPoliciesResponse) XXX_Marshal ¶ added in v0.4.0
func (m *GetGroupPoliciesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetGroupPoliciesResponse) XXX_Merge ¶ added in v0.4.0
func (m *GetGroupPoliciesResponse) XXX_Merge(src proto.Message)
func (*GetGroupPoliciesResponse) XXX_Size ¶ added in v0.4.0
func (m *GetGroupPoliciesResponse) XXX_Size() int
func (*GetGroupPoliciesResponse) XXX_Unmarshal ¶ added in v0.4.0
func (m *GetGroupPoliciesResponse) XXX_Unmarshal(b []byte) error
type GetPoliciesRequest ¶ added in v0.4.0
type GetPoliciesRequest struct {
Sub string `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"`
}
func (*GetPoliciesRequest) Descriptor ¶ added in v0.4.0
func (*GetPoliciesRequest) Descriptor() ([]byte, []int)
func (*GetPoliciesRequest) Marshal ¶ added in v0.4.0
func (m *GetPoliciesRequest) Marshal() (dAtA []byte, err error)
func (*GetPoliciesRequest) MarshalTo ¶ added in v0.4.0
func (m *GetPoliciesRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetPoliciesRequest) MarshalToSizedBuffer ¶ added in v0.4.0
func (m *GetPoliciesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetPoliciesRequest) ProtoMessage ¶ added in v0.4.0
func (*GetPoliciesRequest) ProtoMessage()
func (*GetPoliciesRequest) Reset ¶ added in v0.4.0
func (m *GetPoliciesRequest) Reset()
func (*GetPoliciesRequest) String ¶ added in v0.4.0
func (m *GetPoliciesRequest) String() string
func (*GetPoliciesRequest) Unmarshal ¶ added in v0.4.0
func (m *GetPoliciesRequest) Unmarshal(dAtA []byte) error
func (*GetPoliciesRequest) XSize ¶ added in v0.4.0
func (m *GetPoliciesRequest) XSize() (n int)
func (*GetPoliciesRequest) XXX_DiscardUnknown ¶ added in v0.4.0
func (m *GetPoliciesRequest) XXX_DiscardUnknown()
func (*GetPoliciesRequest) XXX_Marshal ¶ added in v0.4.0
func (m *GetPoliciesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPoliciesRequest) XXX_Merge ¶ added in v0.4.0
func (m *GetPoliciesRequest) XXX_Merge(src proto.Message)
func (*GetPoliciesRequest) XXX_Size ¶ added in v0.4.0
func (m *GetPoliciesRequest) XXX_Size() int
func (*GetPoliciesRequest) XXX_Unmarshal ¶ added in v0.4.0
func (m *GetPoliciesRequest) XXX_Unmarshal(b []byte) error
type GetPoliciesResponse ¶ added in v0.4.0
type GetPoliciesResponse struct {
Policies []*Policy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"`
}
func (*GetPoliciesResponse) Descriptor ¶ added in v0.4.0
func (*GetPoliciesResponse) Descriptor() ([]byte, []int)
func (*GetPoliciesResponse) Marshal ¶ added in v0.4.0
func (m *GetPoliciesResponse) Marshal() (dAtA []byte, err error)
func (*GetPoliciesResponse) MarshalTo ¶ added in v0.4.0
func (m *GetPoliciesResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetPoliciesResponse) MarshalToSizedBuffer ¶ added in v0.4.0
func (m *GetPoliciesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetPoliciesResponse) ProtoMessage ¶ added in v0.4.0
func (*GetPoliciesResponse) ProtoMessage()
func (*GetPoliciesResponse) Reset ¶ added in v0.4.0
func (m *GetPoliciesResponse) Reset()
func (*GetPoliciesResponse) String ¶ added in v0.4.0
func (m *GetPoliciesResponse) String() string
func (*GetPoliciesResponse) Unmarshal ¶ added in v0.4.0
func (m *GetPoliciesResponse) Unmarshal(dAtA []byte) error
func (*GetPoliciesResponse) XSize ¶ added in v0.4.0
func (m *GetPoliciesResponse) XSize() (n int)
func (*GetPoliciesResponse) XXX_DiscardUnknown ¶ added in v0.4.0
func (m *GetPoliciesResponse) XXX_DiscardUnknown()
func (*GetPoliciesResponse) XXX_Marshal ¶ added in v0.4.0
func (m *GetPoliciesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPoliciesResponse) XXX_Merge ¶ added in v0.4.0
func (m *GetPoliciesResponse) XXX_Merge(src proto.Message)
func (*GetPoliciesResponse) XXX_Size ¶ added in v0.4.0
func (m *GetPoliciesResponse) XXX_Size() int
func (*GetPoliciesResponse) XXX_Unmarshal ¶ added in v0.4.0
func (m *GetPoliciesResponse) XXX_Unmarshal(b []byte) error
type PType ¶
type PType int32
func ParsePtype ¶ added in v0.3.0
func (PType) EnumDescriptor ¶ added in v0.3.0
type Policy ¶
type Policy struct { Ptype PType `protobuf:"varint,1,opt,name=ptype,proto3,enum=api.PType" json:"ptype,omitempty"` Sub string `protobuf:"bytes,2,opt,name=sub,proto3" json:"sub,omitempty"` Endpoint *api.Endpoint `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` }
func NewPolicyWithString ¶ added in v0.3.0
func (*Policy) Descriptor ¶ added in v0.3.0
func (*Policy) MarshalToSizedBuffer ¶ added in v0.3.0
func (*Policy) ProtoMessage ¶ added in v0.3.0
func (*Policy) ProtoMessage()
func (Policy) ToCasbinPolicy ¶ added in v0.3.0
func (*Policy) XXX_DiscardUnknown ¶ added in v0.3.0
func (m *Policy) XXX_DiscardUnknown()
func (*Policy) XXX_Marshal ¶ added in v0.3.0
func (*Policy) XXX_Unmarshal ¶ added in v0.3.0
type RBACService ¶
type RBACService interface { GetAllPolicies(ctx context.Context, in *GetAllPoliciesRequest, opts ...client.CallOption) (*GetAllPoliciesResponse, error) GetPolicies(ctx context.Context, in *GetPoliciesRequest, opts ...client.CallOption) (*GetPoliciesResponse, error) AddPolicy(ctx context.Context, in *AddPolicyRequest, opts ...client.CallOption) (*AddPolicyResponse, error) DelPolicy(ctx context.Context, in *DelPolicyRequest, opts ...client.CallOption) (*DelPolicyResponse, error) GetGroupPolicies(ctx context.Context, in *GetGroupPoliciesRequest, opts ...client.CallOption) (*GetGroupPoliciesResponse, error) AddGroupPolicy(ctx context.Context, in *AddGroupPolicyRequest, opts ...client.CallOption) (*AddGroupPolicyResponse, error) DelGroupPolicy(ctx context.Context, in *DelGroupPolicyRequest, opts ...client.CallOption) (*DelGroupPolicyResponse, error) Enforce(ctx context.Context, in *EnforceRequest, opts ...client.CallOption) (*EnforceResponse, error) }
Client API for RBACService service +gen:openapi
func NewRBACService ¶
func NewRBACService(name string, c client.Client) RBACService
type RBACServiceClient ¶
type RBACServiceClient interface { GetAllPolicies(ctx context.Context, in *GetAllPoliciesRequest, opts ...grpc.CallOption) (*GetAllPoliciesResponse, error) GetPolicies(ctx context.Context, in *GetPoliciesRequest, opts ...grpc.CallOption) (*GetPoliciesResponse, error) AddPolicy(ctx context.Context, in *AddPolicyRequest, opts ...grpc.CallOption) (*AddPolicyResponse, error) DelPolicy(ctx context.Context, in *DelPolicyRequest, opts ...grpc.CallOption) (*DelPolicyResponse, error) GetGroupPolicies(ctx context.Context, in *GetGroupPoliciesRequest, opts ...grpc.CallOption) (*GetGroupPoliciesResponse, error) AddGroupPolicy(ctx context.Context, in *AddGroupPolicyRequest, opts ...grpc.CallOption) (*AddGroupPolicyResponse, error) DelGroupPolicy(ctx context.Context, in *DelGroupPolicyRequest, opts ...grpc.CallOption) (*DelGroupPolicyResponse, error) Enforce(ctx context.Context, in *EnforceRequest, opts ...grpc.CallOption) (*EnforceResponse, error) }
RBACServiceClient is the client API for RBACService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRBACServiceClient ¶
func NewRBACServiceClient(cc *grpc.ClientConn) RBACServiceClient
type RBACServiceHandler ¶
type RBACServiceHandler interface { GetAllPolicies(context.Context, *GetAllPoliciesRequest, *GetAllPoliciesResponse) error GetPolicies(context.Context, *GetPoliciesRequest, *GetPoliciesResponse) error AddPolicy(context.Context, *AddPolicyRequest, *AddPolicyResponse) error DelPolicy(context.Context, *DelPolicyRequest, *DelPolicyResponse) error GetGroupPolicies(context.Context, *GetGroupPoliciesRequest, *GetGroupPoliciesResponse) error AddGroupPolicy(context.Context, *AddGroupPolicyRequest, *AddGroupPolicyResponse) error DelGroupPolicy(context.Context, *DelGroupPolicyRequest, *DelGroupPolicyResponse) error Enforce(context.Context, *EnforceRequest, *EnforceResponse) error }
Server API for RBACService service +gen:openapi
type RBACServiceServer ¶
type RBACServiceServer interface { GetAllPolicies(context.Context, *GetAllPoliciesRequest) (*GetAllPoliciesResponse, error) GetPolicies(context.Context, *GetPoliciesRequest) (*GetPoliciesResponse, error) AddPolicy(context.Context, *AddPolicyRequest) (*AddPolicyResponse, error) DelPolicy(context.Context, *DelPolicyRequest) (*DelPolicyResponse, error) GetGroupPolicies(context.Context, *GetGroupPoliciesRequest) (*GetGroupPoliciesResponse, error) AddGroupPolicy(context.Context, *AddGroupPolicyRequest) (*AddGroupPolicyResponse, error) DelGroupPolicy(context.Context, *DelGroupPolicyRequest) (*DelGroupPolicyResponse, error) Enforce(context.Context, *EnforceRequest) (*EnforceResponse, error) }
RBACServiceServer is the server API for RBACService service.
type Subject ¶
type Subject struct { Ptype PType `protobuf:"varint,1,opt,name=ptype,proto3,enum=api.PType" json:"ptype,omitempty"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` }
func (*Subject) Descriptor ¶
func (*Subject) MarshalToSizedBuffer ¶
func (*Subject) ProtoMessage ¶
func (*Subject) ProtoMessage()
func (*Subject) XXX_DiscardUnknown ¶
func (m *Subject) XXX_DiscardUnknown()
func (*Subject) XXX_Marshal ¶
func (*Subject) XXX_Unmarshal ¶
type UnimplementedRBACServiceServer ¶
type UnimplementedRBACServiceServer struct { }
UnimplementedRBACServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedRBACServiceServer) AddGroupPolicy ¶
func (*UnimplementedRBACServiceServer) AddGroupPolicy(ctx context.Context, req *AddGroupPolicyRequest) (*AddGroupPolicyResponse, error)
func (*UnimplementedRBACServiceServer) AddPolicy ¶
func (*UnimplementedRBACServiceServer) AddPolicy(ctx context.Context, req *AddPolicyRequest) (*AddPolicyResponse, error)
func (*UnimplementedRBACServiceServer) DelGroupPolicy ¶
func (*UnimplementedRBACServiceServer) DelGroupPolicy(ctx context.Context, req *DelGroupPolicyRequest) (*DelGroupPolicyResponse, error)
func (*UnimplementedRBACServiceServer) DelPolicy ¶ added in v0.3.0
func (*UnimplementedRBACServiceServer) DelPolicy(ctx context.Context, req *DelPolicyRequest) (*DelPolicyResponse, error)
func (*UnimplementedRBACServiceServer) Enforce ¶
func (*UnimplementedRBACServiceServer) Enforce(ctx context.Context, req *EnforceRequest) (*EnforceResponse, error)
func (*UnimplementedRBACServiceServer) GetAllPolicies ¶ added in v0.4.0
func (*UnimplementedRBACServiceServer) GetAllPolicies(ctx context.Context, req *GetAllPoliciesRequest) (*GetAllPoliciesResponse, error)
func (*UnimplementedRBACServiceServer) GetGroupPolicies ¶ added in v0.4.0
func (*UnimplementedRBACServiceServer) GetGroupPolicies(ctx context.Context, req *GetGroupPoliciesRequest) (*GetGroupPoliciesResponse, error)
func (*UnimplementedRBACServiceServer) GetPolicies ¶ added in v0.4.0
func (*UnimplementedRBACServiceServer) GetPolicies(ctx context.Context, req *GetPoliciesRequest) (*GetPoliciesResponse, error)
Click to show internal directories.
Click to hide internal directories.