Documentation ¶
Index ¶
- Variables
- func NewRESTCasbinHandler(s CasbinService, middleware ...echo.MiddlewareFunc) *httpCasbinHandler
- func RegisterCasbinHandler(s server.Server, hdlr CasbinHandler, opts ...server.HandlerOption) error
- func RegisterCasbinServer(s *grpc.Server, srv CasbinServer)
- type Array2DReply
- func (*Array2DReply) Descriptor() ([]byte, []int)
- func (m *Array2DReply) GetD2() []*Array2DReplyD
- func (m *Array2DReply) MarshalJSON() ([]byte, error)
- func (*Array2DReply) ProtoMessage()
- func (m *Array2DReply) Reset()
- func (m *Array2DReply) String() string
- func (m *Array2DReply) UnmarshalJSON(b []byte) error
- func (m *Array2DReply) Validate() error
- func (m *Array2DReply) XXX_DiscardUnknown()
- func (m *Array2DReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Array2DReply) XXX_Merge(src proto.Message)
- func (m *Array2DReply) XXX_Size() int
- func (m *Array2DReply) XXX_Unmarshal(b []byte) error
- type Array2DReplyD
- func (*Array2DReplyD) Descriptor() ([]byte, []int)
- func (m *Array2DReplyD) GetD1() []string
- func (m *Array2DReplyD) MarshalJSON() ([]byte, error)
- func (*Array2DReplyD) ProtoMessage()
- func (m *Array2DReplyD) Reset()
- func (m *Array2DReplyD) String() string
- func (m *Array2DReplyD) UnmarshalJSON(b []byte) error
- func (m *Array2DReplyD) Validate() error
- func (m *Array2DReplyD) XXX_DiscardUnknown()
- func (m *Array2DReplyD) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Array2DReplyD) XXX_Merge(src proto.Message)
- func (m *Array2DReplyD) XXX_Size() int
- func (m *Array2DReplyD) XXX_Unmarshal(b []byte) error
- type Array2DReplyDValidationError
- func (e Array2DReplyDValidationError) Cause() error
- func (e Array2DReplyDValidationError) Error() string
- func (e Array2DReplyDValidationError) ErrorName() string
- func (e Array2DReplyDValidationError) Field() string
- func (e Array2DReplyDValidationError) Key() bool
- func (e Array2DReplyDValidationError) Reason() string
- type Array2DReplyValidationError
- func (e Array2DReplyValidationError) Cause() error
- func (e Array2DReplyValidationError) Error() string
- func (e Array2DReplyValidationError) ErrorName() string
- func (e Array2DReplyValidationError) Field() string
- func (e Array2DReplyValidationError) Key() bool
- func (e Array2DReplyValidationError) Reason() string
- type ArrayReply
- func (*ArrayReply) Descriptor() ([]byte, []int)
- func (m *ArrayReply) GetArray() []string
- func (m *ArrayReply) MarshalJSON() ([]byte, error)
- func (*ArrayReply) ProtoMessage()
- func (m *ArrayReply) Reset()
- func (m *ArrayReply) String() string
- func (m *ArrayReply) UnmarshalJSON(b []byte) error
- func (m *ArrayReply) Validate() error
- func (m *ArrayReply) XXX_DiscardUnknown()
- func (m *ArrayReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ArrayReply) XXX_Merge(src proto.Message)
- func (m *ArrayReply) XXX_Size() int
- func (m *ArrayReply) XXX_Unmarshal(b []byte) error
- type ArrayReplyValidationError
- type CasbinClient
- type CasbinHandler
- type CasbinServer
- type CasbinService
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (m *Empty) MarshalJSON() ([]byte, error)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) UnmarshalJSON(b []byte) error
- func (m *Empty) Validate() error
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type EmptyValidationError
- type EnforceRequest
- func (*EnforceRequest) Descriptor() ([]byte, []int)
- func (m *EnforceRequest) GetParams() []string
- func (m *EnforceRequest) MarshalJSON() ([]byte, error)
- func (*EnforceRequest) ProtoMessage()
- func (m *EnforceRequest) Reset()
- func (m *EnforceRequest) String() string
- func (m *EnforceRequest) UnmarshalJSON(b []byte) error
- func (m *EnforceRequest) Validate() error
- 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 EnforceRequestValidationError
- func (e EnforceRequestValidationError) Cause() error
- func (e EnforceRequestValidationError) Error() string
- func (e EnforceRequestValidationError) ErrorName() string
- func (e EnforceRequestValidationError) Field() string
- func (e EnforceRequestValidationError) Key() bool
- func (e EnforceRequestValidationError) Reason() string
- type FilteredPolicyRequest
- func (*FilteredPolicyRequest) Descriptor() ([]byte, []int)
- func (m *FilteredPolicyRequest) GetFieldIndex() int32
- func (m *FilteredPolicyRequest) GetFieldValues() []string
- func (m *FilteredPolicyRequest) GetPType() string
- func (m *FilteredPolicyRequest) MarshalJSON() ([]byte, error)
- func (*FilteredPolicyRequest) ProtoMessage()
- func (m *FilteredPolicyRequest) Reset()
- func (m *FilteredPolicyRequest) String() string
- func (m *FilteredPolicyRequest) UnmarshalJSON(b []byte) error
- func (m *FilteredPolicyRequest) Validate() error
- func (m *FilteredPolicyRequest) XXX_DiscardUnknown()
- func (m *FilteredPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FilteredPolicyRequest) XXX_Merge(src proto.Message)
- func (m *FilteredPolicyRequest) XXX_Size() int
- func (m *FilteredPolicyRequest) XXX_Unmarshal(b []byte) error
- type FilteredPolicyRequestValidationError
- func (e FilteredPolicyRequestValidationError) Cause() error
- func (e FilteredPolicyRequestValidationError) Error() string
- func (e FilteredPolicyRequestValidationError) ErrorName() string
- func (e FilteredPolicyRequestValidationError) Field() string
- func (e FilteredPolicyRequestValidationError) Key() bool
- func (e FilteredPolicyRequestValidationError) Reason() string
- type ImportPolicyRequest
- func (*ImportPolicyRequest) Descriptor() ([]byte, []int)
- func (m *ImportPolicyRequest) GetData() []byte
- func (m *ImportPolicyRequest) MarshalJSON() ([]byte, error)
- func (*ImportPolicyRequest) ProtoMessage()
- func (m *ImportPolicyRequest) Reset()
- func (m *ImportPolicyRequest) String() string
- func (m *ImportPolicyRequest) UnmarshalJSON(b []byte) error
- func (m *ImportPolicyRequest) Validate() error
- func (m *ImportPolicyRequest) XXX_DiscardUnknown()
- func (m *ImportPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ImportPolicyRequest) XXX_Merge(src proto.Message)
- func (m *ImportPolicyRequest) XXX_Size() int
- func (m *ImportPolicyRequest) XXX_Unmarshal(b []byte) error
- type ImportPolicyRequestValidationError
- func (e ImportPolicyRequestValidationError) Cause() error
- func (e ImportPolicyRequestValidationError) Error() string
- func (e ImportPolicyRequestValidationError) ErrorName() string
- func (e ImportPolicyRequestValidationError) Field() string
- func (e ImportPolicyRequestValidationError) Key() bool
- func (e ImportPolicyRequestValidationError) Reason() string
- type PermissionRequest
- func (*PermissionRequest) Descriptor() ([]byte, []int)
- func (m *PermissionRequest) GetPermissions() []string
- func (m *PermissionRequest) GetUser() string
- func (m *PermissionRequest) MarshalJSON() ([]byte, error)
- func (*PermissionRequest) ProtoMessage()
- func (m *PermissionRequest) Reset()
- func (m *PermissionRequest) String() string
- func (m *PermissionRequest) UnmarshalJSON(b []byte) error
- func (m *PermissionRequest) Validate() error
- func (m *PermissionRequest) XXX_DiscardUnknown()
- func (m *PermissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PermissionRequest) XXX_Merge(src proto.Message)
- func (m *PermissionRequest) XXX_Size() int
- func (m *PermissionRequest) XXX_Unmarshal(b []byte) error
- type PermissionRequestValidationError
- func (e PermissionRequestValidationError) Cause() error
- func (e PermissionRequestValidationError) Error() string
- func (e PermissionRequestValidationError) ErrorName() string
- func (e PermissionRequestValidationError) Field() string
- func (e PermissionRequestValidationError) Key() bool
- func (e PermissionRequestValidationError) Reason() string
- type PolicyRequest
- func (*PolicyRequest) Descriptor() ([]byte, []int)
- func (m *PolicyRequest) GetPType() string
- func (m *PolicyRequest) GetParams() []string
- func (m *PolicyRequest) MarshalJSON() ([]byte, error)
- func (*PolicyRequest) ProtoMessage()
- func (m *PolicyRequest) Reset()
- func (m *PolicyRequest) String() string
- func (m *PolicyRequest) UnmarshalJSON(b []byte) error
- func (m *PolicyRequest) Validate() error
- func (m *PolicyRequest) XXX_DiscardUnknown()
- func (m *PolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PolicyRequest) XXX_Merge(src proto.Message)
- func (m *PolicyRequest) XXX_Size() int
- func (m *PolicyRequest) XXX_Unmarshal(b []byte) error
- type PolicyRequestValidationError
- func (e PolicyRequestValidationError) Cause() error
- func (e PolicyRequestValidationError) Error() string
- func (e PolicyRequestValidationError) ErrorName() string
- func (e PolicyRequestValidationError) Field() string
- func (e PolicyRequestValidationError) Key() bool
- func (e PolicyRequestValidationError) Reason() string
- type SimpleGetRequest
- func (*SimpleGetRequest) Descriptor() ([]byte, []int)
- func (m *SimpleGetRequest) GetPType() string
- func (m *SimpleGetRequest) MarshalJSON() ([]byte, error)
- func (*SimpleGetRequest) ProtoMessage()
- func (m *SimpleGetRequest) Reset()
- func (m *SimpleGetRequest) String() string
- func (m *SimpleGetRequest) UnmarshalJSON(b []byte) error
- func (m *SimpleGetRequest) Validate() error
- func (m *SimpleGetRequest) XXX_DiscardUnknown()
- func (m *SimpleGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SimpleGetRequest) XXX_Merge(src proto.Message)
- func (m *SimpleGetRequest) XXX_Size() int
- func (m *SimpleGetRequest) XXX_Unmarshal(b []byte) error
- type SimpleGetRequestValidationError
- func (e SimpleGetRequestValidationError) Cause() error
- func (e SimpleGetRequestValidationError) Error() string
- func (e SimpleGetRequestValidationError) ErrorName() string
- func (e SimpleGetRequestValidationError) Field() string
- func (e SimpleGetRequestValidationError) Key() bool
- func (e SimpleGetRequestValidationError) Reason() string
- type UserRoleRequest
- func (*UserRoleRequest) Descriptor() ([]byte, []int)
- func (m *UserRoleRequest) GetRole() string
- func (m *UserRoleRequest) GetUser() string
- func (m *UserRoleRequest) MarshalJSON() ([]byte, error)
- func (*UserRoleRequest) ProtoMessage()
- func (m *UserRoleRequest) Reset()
- func (m *UserRoleRequest) String() string
- func (m *UserRoleRequest) UnmarshalJSON(b []byte) error
- func (m *UserRoleRequest) Validate() error
- func (m *UserRoleRequest) XXX_DiscardUnknown()
- func (m *UserRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserRoleRequest) XXX_Merge(src proto.Message)
- func (m *UserRoleRequest) XXX_Size() int
- func (m *UserRoleRequest) XXX_Unmarshal(b []byte) error
- type UserRoleRequestValidationError
- func (e UserRoleRequestValidationError) Cause() error
- func (e UserRoleRequestValidationError) Error() string
- func (e UserRoleRequestValidationError) ErrorName() string
- func (e UserRoleRequestValidationError) Field() string
- func (e UserRoleRequestValidationError) Key() bool
- func (e UserRoleRequestValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var Array2DReplyDJSONMarshaler = new(jsonpb.Marshaler)
Array2DReplyDJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Array2DReplyD. This struct is safe to replace or modify but should not be done so concurrently.
var Array2DReplyDJSONUnmarshaler = new(jsonpb.Unmarshaler)
Array2DReplyDJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Array2DReplyD. This struct is safe to replace or modify but should not be done so concurrently.
var Array2DReplyJSONMarshaler = new(jsonpb.Marshaler)
Array2DReplyJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Array2DReply. This struct is safe to replace or modify but should not be done so concurrently.
var Array2DReplyJSONUnmarshaler = new(jsonpb.Unmarshaler)
Array2DReplyJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Array2DReply. This struct is safe to replace or modify but should not be done so concurrently.
var ArrayReplyJSONMarshaler = new(jsonpb.Marshaler)
ArrayReplyJSONMarshaler describes the default jsonpb.Marshaler used by all instances of ArrayReply. This struct is safe to replace or modify but should not be done so concurrently.
var ArrayReplyJSONUnmarshaler = new(jsonpb.Unmarshaler)
ArrayReplyJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of ArrayReply. This struct is safe to replace or modify but should not be done so concurrently.
var EmptyJSONMarshaler = new(jsonpb.Marshaler)
EmptyJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Empty. This struct is safe to replace or modify but should not be done so concurrently.
var EmptyJSONUnmarshaler = new(jsonpb.Unmarshaler)
EmptyJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Empty. This struct is safe to replace or modify but should not be done so concurrently.
var EnforceRequestJSONMarshaler = new(jsonpb.Marshaler)
EnforceRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of EnforceRequest. This struct is safe to replace or modify but should not be done so concurrently.
var EnforceRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
EnforceRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of EnforceRequest. This struct is safe to replace or modify but should not be done so concurrently.
var FilteredPolicyRequestJSONMarshaler = new(jsonpb.Marshaler)
FilteredPolicyRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of FilteredPolicyRequest. This struct is safe to replace or modify but should not be done so concurrently.
var FilteredPolicyRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
FilteredPolicyRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of FilteredPolicyRequest. This struct is safe to replace or modify but should not be done so concurrently.
var ImportPolicyRequestJSONMarshaler = new(jsonpb.Marshaler)
ImportPolicyRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of ImportPolicyRequest. This struct is safe to replace or modify but should not be done so concurrently.
var ImportPolicyRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
ImportPolicyRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of ImportPolicyRequest. This struct is safe to replace or modify but should not be done so concurrently.
var PermissionRequestJSONMarshaler = new(jsonpb.Marshaler)
PermissionRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of PermissionRequest. This struct is safe to replace or modify but should not be done so concurrently.
var PermissionRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
PermissionRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of PermissionRequest. This struct is safe to replace or modify but should not be done so concurrently.
var PolicyRequestJSONMarshaler = new(jsonpb.Marshaler)
PolicyRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of PolicyRequest. This struct is safe to replace or modify but should not be done so concurrently.
var PolicyRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
PolicyRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of PolicyRequest. This struct is safe to replace or modify but should not be done so concurrently.
var SimpleGetRequestJSONMarshaler = new(jsonpb.Marshaler)
SimpleGetRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of SimpleGetRequest. This struct is safe to replace or modify but should not be done so concurrently.
var SimpleGetRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
SimpleGetRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of SimpleGetRequest. This struct is safe to replace or modify but should not be done so concurrently.
var UserRoleRequestJSONMarshaler = new(jsonpb.Marshaler)
UserRoleRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of UserRoleRequest. This struct is safe to replace or modify but should not be done so concurrently.
var UserRoleRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
UserRoleRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of UserRoleRequest. This struct is safe to replace or modify but should not be done so concurrently.
Functions ¶
func NewRESTCasbinHandler ¶
func NewRESTCasbinHandler(s CasbinService, middleware ...echo.MiddlewareFunc) *httpCasbinHandler
func RegisterCasbinHandler ¶
func RegisterCasbinHandler(s server.Server, hdlr CasbinHandler, opts ...server.HandlerOption) error
func RegisterCasbinServer ¶
func RegisterCasbinServer(s *grpc.Server, srv CasbinServer)
Types ¶
type Array2DReply ¶
type Array2DReply struct { D2 []*Array2DReplyD `protobuf:"bytes,1,rep,name=d2,proto3" json:"d2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Array2DReply) Descriptor ¶
func (*Array2DReply) Descriptor() ([]byte, []int)
func (*Array2DReply) GetD2 ¶
func (m *Array2DReply) GetD2() []*Array2DReplyD
func (*Array2DReply) MarshalJSON ¶
func (m *Array2DReply) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*Array2DReply) ProtoMessage ¶
func (*Array2DReply) ProtoMessage()
func (*Array2DReply) Reset ¶
func (m *Array2DReply) Reset()
func (*Array2DReply) String ¶
func (m *Array2DReply) String() string
func (*Array2DReply) UnmarshalJSON ¶
func (m *Array2DReply) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*Array2DReply) Validate ¶
func (m *Array2DReply) Validate() error
Validate checks the field values on Array2DReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Array2DReply) XXX_DiscardUnknown ¶
func (m *Array2DReply) XXX_DiscardUnknown()
func (*Array2DReply) XXX_Marshal ¶
func (m *Array2DReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Array2DReply) XXX_Merge ¶
func (m *Array2DReply) XXX_Merge(src proto.Message)
func (*Array2DReply) XXX_Size ¶
func (m *Array2DReply) XXX_Size() int
func (*Array2DReply) XXX_Unmarshal ¶
func (m *Array2DReply) XXX_Unmarshal(b []byte) error
type Array2DReplyD ¶
type Array2DReplyD struct { D1 []string `protobuf:"bytes,1,rep,name=d1,proto3" json:"d1,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Array2DReplyD) Descriptor ¶
func (*Array2DReplyD) Descriptor() ([]byte, []int)
func (*Array2DReplyD) GetD1 ¶
func (m *Array2DReplyD) GetD1() []string
func (*Array2DReplyD) MarshalJSON ¶
func (m *Array2DReplyD) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*Array2DReplyD) ProtoMessage ¶
func (*Array2DReplyD) ProtoMessage()
func (*Array2DReplyD) Reset ¶
func (m *Array2DReplyD) Reset()
func (*Array2DReplyD) String ¶
func (m *Array2DReplyD) String() string
func (*Array2DReplyD) UnmarshalJSON ¶
func (m *Array2DReplyD) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*Array2DReplyD) Validate ¶
func (m *Array2DReplyD) Validate() error
Validate checks the field values on Array2DReplyD with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Array2DReplyD) XXX_DiscardUnknown ¶
func (m *Array2DReplyD) XXX_DiscardUnknown()
func (*Array2DReplyD) XXX_Marshal ¶
func (m *Array2DReplyD) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Array2DReplyD) XXX_Merge ¶
func (m *Array2DReplyD) XXX_Merge(src proto.Message)
func (*Array2DReplyD) XXX_Size ¶
func (m *Array2DReplyD) XXX_Size() int
func (*Array2DReplyD) XXX_Unmarshal ¶
func (m *Array2DReplyD) XXX_Unmarshal(b []byte) error
type Array2DReplyDValidationError ¶
type Array2DReplyDValidationError struct {
// contains filtered or unexported fields
}
Array2DReplyDValidationError is the validation error returned by Array2DReplyD.Validate if the designated constraints aren't met.
func (Array2DReplyDValidationError) Cause ¶
func (e Array2DReplyDValidationError) Cause() error
Cause function returns cause value.
func (Array2DReplyDValidationError) Error ¶
func (e Array2DReplyDValidationError) Error() string
Error satisfies the builtin error interface
func (Array2DReplyDValidationError) ErrorName ¶
func (e Array2DReplyDValidationError) ErrorName() string
ErrorName returns error name.
func (Array2DReplyDValidationError) Field ¶
func (e Array2DReplyDValidationError) Field() string
Field function returns field value.
func (Array2DReplyDValidationError) Key ¶
func (e Array2DReplyDValidationError) Key() bool
Key function returns key value.
func (Array2DReplyDValidationError) Reason ¶
func (e Array2DReplyDValidationError) Reason() string
Reason function returns reason value.
type Array2DReplyValidationError ¶
type Array2DReplyValidationError struct {
// contains filtered or unexported fields
}
Array2DReplyValidationError is the validation error returned by Array2DReply.Validate if the designated constraints aren't met.
func (Array2DReplyValidationError) Cause ¶
func (e Array2DReplyValidationError) Cause() error
Cause function returns cause value.
func (Array2DReplyValidationError) Error ¶
func (e Array2DReplyValidationError) Error() string
Error satisfies the builtin error interface
func (Array2DReplyValidationError) ErrorName ¶
func (e Array2DReplyValidationError) ErrorName() string
ErrorName returns error name.
func (Array2DReplyValidationError) Field ¶
func (e Array2DReplyValidationError) Field() string
Field function returns field value.
func (Array2DReplyValidationError) Key ¶
func (e Array2DReplyValidationError) Key() bool
Key function returns key value.
func (Array2DReplyValidationError) Reason ¶
func (e Array2DReplyValidationError) Reason() string
Reason function returns reason value.
type ArrayReply ¶
type ArrayReply struct { Array []string `protobuf:"bytes,1,rep,name=array,proto3" json:"array,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ArrayReply) Descriptor ¶
func (*ArrayReply) Descriptor() ([]byte, []int)
func (*ArrayReply) GetArray ¶
func (m *ArrayReply) GetArray() []string
func (*ArrayReply) MarshalJSON ¶
func (m *ArrayReply) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*ArrayReply) ProtoMessage ¶
func (*ArrayReply) ProtoMessage()
func (*ArrayReply) Reset ¶
func (m *ArrayReply) Reset()
func (*ArrayReply) String ¶
func (m *ArrayReply) String() string
func (*ArrayReply) UnmarshalJSON ¶
func (m *ArrayReply) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*ArrayReply) Validate ¶
func (m *ArrayReply) Validate() error
Validate checks the field values on ArrayReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ArrayReply) XXX_DiscardUnknown ¶
func (m *ArrayReply) XXX_DiscardUnknown()
func (*ArrayReply) XXX_Marshal ¶
func (m *ArrayReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ArrayReply) XXX_Merge ¶
func (m *ArrayReply) XXX_Merge(src proto.Message)
func (*ArrayReply) XXX_Size ¶
func (m *ArrayReply) XXX_Size() int
func (*ArrayReply) XXX_Unmarshal ¶
func (m *ArrayReply) XXX_Unmarshal(b []byte) error
type ArrayReplyValidationError ¶
type ArrayReplyValidationError struct {
// contains filtered or unexported fields
}
ArrayReplyValidationError is the validation error returned by ArrayReply.Validate if the designated constraints aren't met.
func (ArrayReplyValidationError) Cause ¶
func (e ArrayReplyValidationError) Cause() error
Cause function returns cause value.
func (ArrayReplyValidationError) Error ¶
func (e ArrayReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ArrayReplyValidationError) ErrorName ¶
func (e ArrayReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ArrayReplyValidationError) Field ¶
func (e ArrayReplyValidationError) Field() string
Field function returns field value.
func (ArrayReplyValidationError) Key ¶
func (e ArrayReplyValidationError) Key() bool
Key function returns key value.
func (ArrayReplyValidationError) Reason ¶
func (e ArrayReplyValidationError) Reason() string
Reason function returns reason value.
type CasbinClient ¶
type CasbinClient interface { Enforce(ctx context.Context, in *EnforceRequest, opts ...grpc.CallOption) (*Empty, error) ImportPolicy(ctx context.Context, in *ImportPolicyRequest, opts ...grpc.CallOption) (*Empty, error) LoadPolicy(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) SavePolicy(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) AddPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error) AddNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error) RemovePolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error) RemoveNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error) RemoveFilteredPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*Empty, error) RemoveFilteredNamedPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*Empty, error) GetPolicy(ctx context.Context, in *Empty, 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) (*Empty, error) AddNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error) RemoveGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error) RemoveNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error) RemoveFilteredGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*Empty, error) RemoveFilteredNamedGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*Empty, error) GetGroupingPolicy(ctx context.Context, in *Empty, 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 *Empty, opts ...grpc.CallOption) (*ArrayReply, error) GetAllNamedSubjects(ctx context.Context, in *SimpleGetRequest, opts ...grpc.CallOption) (*ArrayReply, error) GetAllObjects(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ArrayReply, error) GetAllNamedObjects(ctx context.Context, in *SimpleGetRequest, opts ...grpc.CallOption) (*ArrayReply, error) GetAllActions(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ArrayReply, error) GetAllNamedActions(ctx context.Context, in *SimpleGetRequest, opts ...grpc.CallOption) (*ArrayReply, error) GetAllRoles(ctx context.Context, in *Empty, 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) (*Empty, error) HasNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error) HasGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error) HasNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error) AddRoleForUser(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*Empty, error) DeleteRoleForUser(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*Empty, error) DeleteUser(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*Empty, 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) GetPermissionsForUser(ctx context.Context, in *PermissionRequest, opts ...grpc.CallOption) (*Array2DReply, error) GetImplicitPermissionsForUser(ctx context.Context, in *PermissionRequest, opts ...grpc.CallOption) (*Array2DReply, error) }
CasbinClient is the client API for Casbin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCasbinClient ¶
func NewCasbinClient(cc *grpc.ClientConn) CasbinClient
type CasbinHandler ¶
type CasbinHandler interface { Enforce(context.Context, *EnforceRequest, *Empty) error ImportPolicy(context.Context, *ImportPolicyRequest, *Empty) error LoadPolicy(context.Context, *Empty, *Empty) error SavePolicy(context.Context, *Empty, *Empty) error AddPolicy(context.Context, *PolicyRequest, *Empty) error AddNamedPolicy(context.Context, *PolicyRequest, *Empty) error RemovePolicy(context.Context, *PolicyRequest, *Empty) error RemoveNamedPolicy(context.Context, *PolicyRequest, *Empty) error RemoveFilteredPolicy(context.Context, *FilteredPolicyRequest, *Empty) error RemoveFilteredNamedPolicy(context.Context, *FilteredPolicyRequest, *Empty) error GetPolicy(context.Context, *Empty, *Array2DReply) error GetNamedPolicy(context.Context, *PolicyRequest, *Array2DReply) error GetFilteredPolicy(context.Context, *FilteredPolicyRequest, *Array2DReply) error GetFilteredNamedPolicy(context.Context, *FilteredPolicyRequest, *Array2DReply) error AddGroupingPolicy(context.Context, *PolicyRequest, *Empty) error AddNamedGroupingPolicy(context.Context, *PolicyRequest, *Empty) error RemoveGroupingPolicy(context.Context, *PolicyRequest, *Empty) error RemoveNamedGroupingPolicy(context.Context, *PolicyRequest, *Empty) error RemoveFilteredGroupingPolicy(context.Context, *FilteredPolicyRequest, *Empty) error RemoveFilteredNamedGroupingPolicy(context.Context, *FilteredPolicyRequest, *Empty) error GetGroupingPolicy(context.Context, *Empty, *Array2DReply) error GetNamedGroupingPolicy(context.Context, *PolicyRequest, *Array2DReply) error GetFilteredGroupingPolicy(context.Context, *FilteredPolicyRequest, *Array2DReply) error GetFilteredNamedGroupingPolicy(context.Context, *FilteredPolicyRequest, *Array2DReply) error GetAllSubjects(context.Context, *Empty, *ArrayReply) error GetAllNamedSubjects(context.Context, *SimpleGetRequest, *ArrayReply) error GetAllObjects(context.Context, *Empty, *ArrayReply) error GetAllNamedObjects(context.Context, *SimpleGetRequest, *ArrayReply) error GetAllActions(context.Context, *Empty, *ArrayReply) error GetAllNamedActions(context.Context, *SimpleGetRequest, *ArrayReply) error GetAllRoles(context.Context, *Empty, *ArrayReply) error GetAllNamedRoles(context.Context, *SimpleGetRequest, *ArrayReply) error HasPolicy(context.Context, *PolicyRequest, *Empty) error HasNamedPolicy(context.Context, *PolicyRequest, *Empty) error HasGroupingPolicy(context.Context, *PolicyRequest, *Empty) error HasNamedGroupingPolicy(context.Context, *PolicyRequest, *Empty) error AddRoleForUser(context.Context, *UserRoleRequest, *Empty) error DeleteRoleForUser(context.Context, *UserRoleRequest, *Empty) error DeleteUser(context.Context, *UserRoleRequest, *Empty) error GetRolesForUser(context.Context, *UserRoleRequest, *ArrayReply) error GetImplicitRolesForUser(context.Context, *UserRoleRequest, *ArrayReply) error GetUsersForRole(context.Context, *UserRoleRequest, *ArrayReply) error GetPermissionsForUser(context.Context, *PermissionRequest, *Array2DReply) error GetImplicitPermissionsForUser(context.Context, *PermissionRequest, *Array2DReply) error }
type CasbinServer ¶
type CasbinServer interface { Enforce(context.Context, *EnforceRequest) (*Empty, error) ImportPolicy(context.Context, *ImportPolicyRequest) (*Empty, error) LoadPolicy(context.Context, *Empty) (*Empty, error) SavePolicy(context.Context, *Empty) (*Empty, error) AddPolicy(context.Context, *PolicyRequest) (*Empty, error) AddNamedPolicy(context.Context, *PolicyRequest) (*Empty, error) RemovePolicy(context.Context, *PolicyRequest) (*Empty, error) RemoveNamedPolicy(context.Context, *PolicyRequest) (*Empty, error) RemoveFilteredPolicy(context.Context, *FilteredPolicyRequest) (*Empty, error) RemoveFilteredNamedPolicy(context.Context, *FilteredPolicyRequest) (*Empty, error) GetPolicy(context.Context, *Empty) (*Array2DReply, error) GetNamedPolicy(context.Context, *PolicyRequest) (*Array2DReply, error) GetFilteredPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error) GetFilteredNamedPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error) AddGroupingPolicy(context.Context, *PolicyRequest) (*Empty, error) AddNamedGroupingPolicy(context.Context, *PolicyRequest) (*Empty, error) RemoveGroupingPolicy(context.Context, *PolicyRequest) (*Empty, error) RemoveNamedGroupingPolicy(context.Context, *PolicyRequest) (*Empty, error) RemoveFilteredGroupingPolicy(context.Context, *FilteredPolicyRequest) (*Empty, error) RemoveFilteredNamedGroupingPolicy(context.Context, *FilteredPolicyRequest) (*Empty, error) GetGroupingPolicy(context.Context, *Empty) (*Array2DReply, error) GetNamedGroupingPolicy(context.Context, *PolicyRequest) (*Array2DReply, error) GetFilteredGroupingPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error) GetFilteredNamedGroupingPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error) GetAllSubjects(context.Context, *Empty) (*ArrayReply, error) GetAllNamedSubjects(context.Context, *SimpleGetRequest) (*ArrayReply, error) GetAllObjects(context.Context, *Empty) (*ArrayReply, error) GetAllNamedObjects(context.Context, *SimpleGetRequest) (*ArrayReply, error) GetAllActions(context.Context, *Empty) (*ArrayReply, error) GetAllNamedActions(context.Context, *SimpleGetRequest) (*ArrayReply, error) GetAllRoles(context.Context, *Empty) (*ArrayReply, error) GetAllNamedRoles(context.Context, *SimpleGetRequest) (*ArrayReply, error) HasPolicy(context.Context, *PolicyRequest) (*Empty, error) HasNamedPolicy(context.Context, *PolicyRequest) (*Empty, error) HasGroupingPolicy(context.Context, *PolicyRequest) (*Empty, error) HasNamedGroupingPolicy(context.Context, *PolicyRequest) (*Empty, error) AddRoleForUser(context.Context, *UserRoleRequest) (*Empty, error) DeleteRoleForUser(context.Context, *UserRoleRequest) (*Empty, error) DeleteUser(context.Context, *UserRoleRequest) (*Empty, error) GetRolesForUser(context.Context, *UserRoleRequest) (*ArrayReply, error) GetImplicitRolesForUser(context.Context, *UserRoleRequest) (*ArrayReply, error) GetUsersForRole(context.Context, *UserRoleRequest) (*ArrayReply, error) GetPermissionsForUser(context.Context, *PermissionRequest) (*Array2DReply, error) GetImplicitPermissionsForUser(context.Context, *PermissionRequest) (*Array2DReply, error) }
CasbinServer is the server API for Casbin service.
type CasbinService ¶
type CasbinService interface { Enforce(ctx context.Context, in *EnforceRequest, opts ...client.CallOption) (*Empty, error) ImportPolicy(ctx context.Context, in *ImportPolicyRequest, opts ...client.CallOption) (*Empty, error) LoadPolicy(ctx context.Context, in *Empty, opts ...client.CallOption) (*Empty, error) SavePolicy(ctx context.Context, in *Empty, opts ...client.CallOption) (*Empty, error) AddPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error) AddNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error) RemovePolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error) RemoveNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error) RemoveFilteredPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...client.CallOption) (*Empty, error) RemoveFilteredNamedPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...client.CallOption) (*Empty, error) GetPolicy(ctx context.Context, in *Empty, opts ...client.CallOption) (*Array2DReply, error) GetNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Array2DReply, error) GetFilteredPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...client.CallOption) (*Array2DReply, error) GetFilteredNamedPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...client.CallOption) (*Array2DReply, error) AddGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error) AddNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error) RemoveGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error) RemoveNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error) RemoveFilteredGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...client.CallOption) (*Empty, error) RemoveFilteredNamedGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...client.CallOption) (*Empty, error) GetGroupingPolicy(ctx context.Context, in *Empty, opts ...client.CallOption) (*Array2DReply, error) GetNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Array2DReply, error) GetFilteredGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...client.CallOption) (*Array2DReply, error) GetFilteredNamedGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...client.CallOption) (*Array2DReply, error) GetAllSubjects(ctx context.Context, in *Empty, opts ...client.CallOption) (*ArrayReply, error) GetAllNamedSubjects(ctx context.Context, in *SimpleGetRequest, opts ...client.CallOption) (*ArrayReply, error) GetAllObjects(ctx context.Context, in *Empty, opts ...client.CallOption) (*ArrayReply, error) GetAllNamedObjects(ctx context.Context, in *SimpleGetRequest, opts ...client.CallOption) (*ArrayReply, error) GetAllActions(ctx context.Context, in *Empty, opts ...client.CallOption) (*ArrayReply, error) GetAllNamedActions(ctx context.Context, in *SimpleGetRequest, opts ...client.CallOption) (*ArrayReply, error) GetAllRoles(ctx context.Context, in *Empty, opts ...client.CallOption) (*ArrayReply, error) GetAllNamedRoles(ctx context.Context, in *SimpleGetRequest, opts ...client.CallOption) (*ArrayReply, error) HasPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error) HasNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error) HasGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error) HasNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error) AddRoleForUser(ctx context.Context, in *UserRoleRequest, opts ...client.CallOption) (*Empty, error) DeleteRoleForUser(ctx context.Context, in *UserRoleRequest, opts ...client.CallOption) (*Empty, error) DeleteUser(ctx context.Context, in *UserRoleRequest, opts ...client.CallOption) (*Empty, error) GetRolesForUser(ctx context.Context, in *UserRoleRequest, opts ...client.CallOption) (*ArrayReply, error) GetImplicitRolesForUser(ctx context.Context, in *UserRoleRequest, opts ...client.CallOption) (*ArrayReply, error) GetUsersForRole(ctx context.Context, in *UserRoleRequest, opts ...client.CallOption) (*ArrayReply, error) GetPermissionsForUser(ctx context.Context, in *PermissionRequest, opts ...client.CallOption) (*Array2DReply, error) GetImplicitPermissionsForUser(ctx context.Context, in *PermissionRequest, opts ...client.CallOption) (*Array2DReply, error) }
func NewCasbinService ¶
func NewCasbinService(name string, c client.Client) CasbinService
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) MarshalJSON ¶
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) UnmarshalJSON ¶
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*Empty) Validate ¶
Validate checks the field values on Empty with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type EmptyValidationError ¶
type EmptyValidationError struct {
// contains filtered or unexported fields
}
EmptyValidationError is the validation error returned by Empty.Validate if the designated constraints aren't met.
func (EmptyValidationError) Cause ¶
func (e EmptyValidationError) Cause() error
Cause function returns cause value.
func (EmptyValidationError) Error ¶
func (e EmptyValidationError) Error() string
Error satisfies the builtin error interface
func (EmptyValidationError) ErrorName ¶
func (e EmptyValidationError) ErrorName() string
ErrorName returns error name.
func (EmptyValidationError) Field ¶
func (e EmptyValidationError) Field() string
Field function returns field value.
func (EmptyValidationError) Key ¶
func (e EmptyValidationError) Key() bool
Key function returns key value.
func (EmptyValidationError) Reason ¶
func (e EmptyValidationError) Reason() string
Reason function returns reason value.
type EnforceRequest ¶
type EnforceRequest struct { Params []string `protobuf:"bytes,2,rep,name=params,proto3" json:"params,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EnforceRequest) Descriptor ¶
func (*EnforceRequest) Descriptor() ([]byte, []int)
func (*EnforceRequest) GetParams ¶
func (m *EnforceRequest) GetParams() []string
func (*EnforceRequest) MarshalJSON ¶
func (m *EnforceRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*EnforceRequest) ProtoMessage ¶
func (*EnforceRequest) ProtoMessage()
func (*EnforceRequest) Reset ¶
func (m *EnforceRequest) Reset()
func (*EnforceRequest) String ¶
func (m *EnforceRequest) String() string
func (*EnforceRequest) UnmarshalJSON ¶
func (m *EnforceRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*EnforceRequest) Validate ¶
func (m *EnforceRequest) Validate() error
Validate checks the field values on EnforceRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
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 EnforceRequestValidationError ¶
type EnforceRequestValidationError struct {
// contains filtered or unexported fields
}
EnforceRequestValidationError is the validation error returned by EnforceRequest.Validate if the designated constraints aren't met.
func (EnforceRequestValidationError) Cause ¶
func (e EnforceRequestValidationError) Cause() error
Cause function returns cause value.
func (EnforceRequestValidationError) Error ¶
func (e EnforceRequestValidationError) Error() string
Error satisfies the builtin error interface
func (EnforceRequestValidationError) ErrorName ¶
func (e EnforceRequestValidationError) ErrorName() string
ErrorName returns error name.
func (EnforceRequestValidationError) Field ¶
func (e EnforceRequestValidationError) Field() string
Field function returns field value.
func (EnforceRequestValidationError) Key ¶
func (e EnforceRequestValidationError) Key() bool
Key function returns key value.
func (EnforceRequestValidationError) Reason ¶
func (e EnforceRequestValidationError) Reason() string
Reason function returns reason value.
type FilteredPolicyRequest ¶
type FilteredPolicyRequest struct { PType string `protobuf:"bytes,1,opt,name=pType,proto3" json:"pType,omitempty"` FieldIndex int32 `protobuf:"varint,2,opt,name=fieldIndex,proto3" json:"fieldIndex,omitempty"` FieldValues []string `protobuf:"bytes,3,rep,name=fieldValues,proto3" json:"fieldValues,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FilteredPolicyRequest) Descriptor ¶
func (*FilteredPolicyRequest) Descriptor() ([]byte, []int)
func (*FilteredPolicyRequest) GetFieldIndex ¶
func (m *FilteredPolicyRequest) GetFieldIndex() int32
func (*FilteredPolicyRequest) GetFieldValues ¶
func (m *FilteredPolicyRequest) GetFieldValues() []string
func (*FilteredPolicyRequest) GetPType ¶
func (m *FilteredPolicyRequest) GetPType() string
func (*FilteredPolicyRequest) MarshalJSON ¶
func (m *FilteredPolicyRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*FilteredPolicyRequest) ProtoMessage ¶
func (*FilteredPolicyRequest) ProtoMessage()
func (*FilteredPolicyRequest) Reset ¶
func (m *FilteredPolicyRequest) Reset()
func (*FilteredPolicyRequest) String ¶
func (m *FilteredPolicyRequest) String() string
func (*FilteredPolicyRequest) UnmarshalJSON ¶
func (m *FilteredPolicyRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*FilteredPolicyRequest) Validate ¶
func (m *FilteredPolicyRequest) Validate() error
Validate checks the field values on FilteredPolicyRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*FilteredPolicyRequest) XXX_DiscardUnknown ¶
func (m *FilteredPolicyRequest) XXX_DiscardUnknown()
func (*FilteredPolicyRequest) XXX_Marshal ¶
func (m *FilteredPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FilteredPolicyRequest) XXX_Merge ¶
func (m *FilteredPolicyRequest) XXX_Merge(src proto.Message)
func (*FilteredPolicyRequest) XXX_Size ¶
func (m *FilteredPolicyRequest) XXX_Size() int
func (*FilteredPolicyRequest) XXX_Unmarshal ¶
func (m *FilteredPolicyRequest) XXX_Unmarshal(b []byte) error
type FilteredPolicyRequestValidationError ¶
type FilteredPolicyRequestValidationError struct {
// contains filtered or unexported fields
}
FilteredPolicyRequestValidationError is the validation error returned by FilteredPolicyRequest.Validate if the designated constraints aren't met.
func (FilteredPolicyRequestValidationError) Cause ¶
func (e FilteredPolicyRequestValidationError) Cause() error
Cause function returns cause value.
func (FilteredPolicyRequestValidationError) Error ¶
func (e FilteredPolicyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FilteredPolicyRequestValidationError) ErrorName ¶
func (e FilteredPolicyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FilteredPolicyRequestValidationError) Field ¶
func (e FilteredPolicyRequestValidationError) Field() string
Field function returns field value.
func (FilteredPolicyRequestValidationError) Key ¶
func (e FilteredPolicyRequestValidationError) Key() bool
Key function returns key value.
func (FilteredPolicyRequestValidationError) Reason ¶
func (e FilteredPolicyRequestValidationError) Reason() string
Reason function returns reason value.
type ImportPolicyRequest ¶
type ImportPolicyRequest struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ImportPolicyRequest) Descriptor ¶
func (*ImportPolicyRequest) Descriptor() ([]byte, []int)
func (*ImportPolicyRequest) GetData ¶
func (m *ImportPolicyRequest) GetData() []byte
func (*ImportPolicyRequest) MarshalJSON ¶
func (m *ImportPolicyRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*ImportPolicyRequest) ProtoMessage ¶
func (*ImportPolicyRequest) ProtoMessage()
func (*ImportPolicyRequest) Reset ¶
func (m *ImportPolicyRequest) Reset()
func (*ImportPolicyRequest) String ¶
func (m *ImportPolicyRequest) String() string
func (*ImportPolicyRequest) UnmarshalJSON ¶
func (m *ImportPolicyRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*ImportPolicyRequest) Validate ¶
func (m *ImportPolicyRequest) Validate() error
Validate checks the field values on ImportPolicyRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ImportPolicyRequest) XXX_DiscardUnknown ¶
func (m *ImportPolicyRequest) XXX_DiscardUnknown()
func (*ImportPolicyRequest) XXX_Marshal ¶
func (m *ImportPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ImportPolicyRequest) XXX_Merge ¶
func (m *ImportPolicyRequest) XXX_Merge(src proto.Message)
func (*ImportPolicyRequest) XXX_Size ¶
func (m *ImportPolicyRequest) XXX_Size() int
func (*ImportPolicyRequest) XXX_Unmarshal ¶
func (m *ImportPolicyRequest) XXX_Unmarshal(b []byte) error
type ImportPolicyRequestValidationError ¶
type ImportPolicyRequestValidationError struct {
// contains filtered or unexported fields
}
ImportPolicyRequestValidationError is the validation error returned by ImportPolicyRequest.Validate if the designated constraints aren't met.
func (ImportPolicyRequestValidationError) Cause ¶
func (e ImportPolicyRequestValidationError) Cause() error
Cause function returns cause value.
func (ImportPolicyRequestValidationError) Error ¶
func (e ImportPolicyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ImportPolicyRequestValidationError) ErrorName ¶
func (e ImportPolicyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ImportPolicyRequestValidationError) Field ¶
func (e ImportPolicyRequestValidationError) Field() string
Field function returns field value.
func (ImportPolicyRequestValidationError) Key ¶
func (e ImportPolicyRequestValidationError) Key() bool
Key function returns key value.
func (ImportPolicyRequestValidationError) Reason ¶
func (e ImportPolicyRequestValidationError) Reason() string
Reason function returns reason value.
type PermissionRequest ¶
type PermissionRequest struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Permissions []string `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PermissionRequest) Descriptor ¶
func (*PermissionRequest) Descriptor() ([]byte, []int)
func (*PermissionRequest) GetPermissions ¶
func (m *PermissionRequest) GetPermissions() []string
func (*PermissionRequest) GetUser ¶
func (m *PermissionRequest) GetUser() string
func (*PermissionRequest) MarshalJSON ¶
func (m *PermissionRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*PermissionRequest) ProtoMessage ¶
func (*PermissionRequest) ProtoMessage()
func (*PermissionRequest) Reset ¶
func (m *PermissionRequest) Reset()
func (*PermissionRequest) String ¶
func (m *PermissionRequest) String() string
func (*PermissionRequest) UnmarshalJSON ¶
func (m *PermissionRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*PermissionRequest) Validate ¶
func (m *PermissionRequest) Validate() error
Validate checks the field values on PermissionRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*PermissionRequest) XXX_DiscardUnknown ¶
func (m *PermissionRequest) XXX_DiscardUnknown()
func (*PermissionRequest) XXX_Marshal ¶
func (m *PermissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PermissionRequest) XXX_Merge ¶
func (m *PermissionRequest) XXX_Merge(src proto.Message)
func (*PermissionRequest) XXX_Size ¶
func (m *PermissionRequest) XXX_Size() int
func (*PermissionRequest) XXX_Unmarshal ¶
func (m *PermissionRequest) XXX_Unmarshal(b []byte) error
type PermissionRequestValidationError ¶
type PermissionRequestValidationError struct {
// contains filtered or unexported fields
}
PermissionRequestValidationError is the validation error returned by PermissionRequest.Validate if the designated constraints aren't met.
func (PermissionRequestValidationError) Cause ¶
func (e PermissionRequestValidationError) Cause() error
Cause function returns cause value.
func (PermissionRequestValidationError) Error ¶
func (e PermissionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PermissionRequestValidationError) ErrorName ¶
func (e PermissionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PermissionRequestValidationError) Field ¶
func (e PermissionRequestValidationError) Field() string
Field function returns field value.
func (PermissionRequestValidationError) Key ¶
func (e PermissionRequestValidationError) Key() bool
Key function returns key value.
func (PermissionRequestValidationError) Reason ¶
func (e PermissionRequestValidationError) Reason() string
Reason function returns reason value.
type PolicyRequest ¶
type PolicyRequest struct { PType string `protobuf:"bytes,1,opt,name=pType,proto3" json:"pType,omitempty"` Params []string `protobuf:"bytes,2,rep,name=params,proto3" json:"params,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PolicyRequest) Descriptor ¶
func (*PolicyRequest) Descriptor() ([]byte, []int)
func (*PolicyRequest) GetPType ¶
func (m *PolicyRequest) GetPType() string
func (*PolicyRequest) GetParams ¶
func (m *PolicyRequest) GetParams() []string
func (*PolicyRequest) MarshalJSON ¶
func (m *PolicyRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*PolicyRequest) ProtoMessage ¶
func (*PolicyRequest) ProtoMessage()
func (*PolicyRequest) Reset ¶
func (m *PolicyRequest) Reset()
func (*PolicyRequest) String ¶
func (m *PolicyRequest) String() string
func (*PolicyRequest) UnmarshalJSON ¶
func (m *PolicyRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*PolicyRequest) Validate ¶
func (m *PolicyRequest) Validate() error
Validate checks the field values on PolicyRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*PolicyRequest) XXX_DiscardUnknown ¶
func (m *PolicyRequest) XXX_DiscardUnknown()
func (*PolicyRequest) XXX_Marshal ¶
func (m *PolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PolicyRequest) XXX_Merge ¶
func (m *PolicyRequest) XXX_Merge(src proto.Message)
func (*PolicyRequest) XXX_Size ¶
func (m *PolicyRequest) XXX_Size() int
func (*PolicyRequest) XXX_Unmarshal ¶
func (m *PolicyRequest) XXX_Unmarshal(b []byte) error
type PolicyRequestValidationError ¶
type PolicyRequestValidationError struct {
// contains filtered or unexported fields
}
PolicyRequestValidationError is the validation error returned by PolicyRequest.Validate if the designated constraints aren't met.
func (PolicyRequestValidationError) Cause ¶
func (e PolicyRequestValidationError) Cause() error
Cause function returns cause value.
func (PolicyRequestValidationError) Error ¶
func (e PolicyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PolicyRequestValidationError) ErrorName ¶
func (e PolicyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PolicyRequestValidationError) Field ¶
func (e PolicyRequestValidationError) Field() string
Field function returns field value.
func (PolicyRequestValidationError) Key ¶
func (e PolicyRequestValidationError) Key() bool
Key function returns key value.
func (PolicyRequestValidationError) Reason ¶
func (e PolicyRequestValidationError) Reason() string
Reason function returns reason value.
type SimpleGetRequest ¶
type SimpleGetRequest struct { PType string `protobuf:"bytes,1,opt,name=pType,proto3" json:"pType,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SimpleGetRequest) Descriptor ¶
func (*SimpleGetRequest) Descriptor() ([]byte, []int)
func (*SimpleGetRequest) GetPType ¶
func (m *SimpleGetRequest) GetPType() string
func (*SimpleGetRequest) MarshalJSON ¶
func (m *SimpleGetRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*SimpleGetRequest) ProtoMessage ¶
func (*SimpleGetRequest) ProtoMessage()
func (*SimpleGetRequest) Reset ¶
func (m *SimpleGetRequest) Reset()
func (*SimpleGetRequest) String ¶
func (m *SimpleGetRequest) String() string
func (*SimpleGetRequest) UnmarshalJSON ¶
func (m *SimpleGetRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*SimpleGetRequest) Validate ¶
func (m *SimpleGetRequest) Validate() error
Validate checks the field values on SimpleGetRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*SimpleGetRequest) XXX_DiscardUnknown ¶
func (m *SimpleGetRequest) XXX_DiscardUnknown()
func (*SimpleGetRequest) XXX_Marshal ¶
func (m *SimpleGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SimpleGetRequest) XXX_Merge ¶
func (m *SimpleGetRequest) XXX_Merge(src proto.Message)
func (*SimpleGetRequest) XXX_Size ¶
func (m *SimpleGetRequest) XXX_Size() int
func (*SimpleGetRequest) XXX_Unmarshal ¶
func (m *SimpleGetRequest) XXX_Unmarshal(b []byte) error
type SimpleGetRequestValidationError ¶
type SimpleGetRequestValidationError struct {
// contains filtered or unexported fields
}
SimpleGetRequestValidationError is the validation error returned by SimpleGetRequest.Validate if the designated constraints aren't met.
func (SimpleGetRequestValidationError) Cause ¶
func (e SimpleGetRequestValidationError) Cause() error
Cause function returns cause value.
func (SimpleGetRequestValidationError) Error ¶
func (e SimpleGetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SimpleGetRequestValidationError) ErrorName ¶
func (e SimpleGetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SimpleGetRequestValidationError) Field ¶
func (e SimpleGetRequestValidationError) Field() string
Field function returns field value.
func (SimpleGetRequestValidationError) Key ¶
func (e SimpleGetRequestValidationError) Key() bool
Key function returns key value.
func (SimpleGetRequestValidationError) Reason ¶
func (e SimpleGetRequestValidationError) Reason() string
Reason function returns reason value.
type UserRoleRequest ¶
type UserRoleRequest struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserRoleRequest) Descriptor ¶
func (*UserRoleRequest) Descriptor() ([]byte, []int)
func (*UserRoleRequest) GetRole ¶
func (m *UserRoleRequest) GetRole() string
func (*UserRoleRequest) GetUser ¶
func (m *UserRoleRequest) GetUser() string
func (*UserRoleRequest) MarshalJSON ¶
func (m *UserRoleRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*UserRoleRequest) ProtoMessage ¶
func (*UserRoleRequest) ProtoMessage()
func (*UserRoleRequest) Reset ¶
func (m *UserRoleRequest) Reset()
func (*UserRoleRequest) String ¶
func (m *UserRoleRequest) String() string
func (*UserRoleRequest) UnmarshalJSON ¶
func (m *UserRoleRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
func (*UserRoleRequest) Validate ¶
func (m *UserRoleRequest) Validate() error
Validate checks the field values on UserRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*UserRoleRequest) XXX_DiscardUnknown ¶
func (m *UserRoleRequest) XXX_DiscardUnknown()
func (*UserRoleRequest) XXX_Marshal ¶
func (m *UserRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserRoleRequest) XXX_Merge ¶
func (m *UserRoleRequest) XXX_Merge(src proto.Message)
func (*UserRoleRequest) XXX_Size ¶
func (m *UserRoleRequest) XXX_Size() int
func (*UserRoleRequest) XXX_Unmarshal ¶
func (m *UserRoleRequest) XXX_Unmarshal(b []byte) error
type UserRoleRequestValidationError ¶
type UserRoleRequestValidationError struct {
// contains filtered or unexported fields
}
UserRoleRequestValidationError is the validation error returned by UserRoleRequest.Validate if the designated constraints aren't met.
func (UserRoleRequestValidationError) Cause ¶
func (e UserRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (UserRoleRequestValidationError) Error ¶
func (e UserRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UserRoleRequestValidationError) ErrorName ¶
func (e UserRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UserRoleRequestValidationError) Field ¶
func (e UserRoleRequestValidationError) Field() string
Field function returns field value.
func (UserRoleRequestValidationError) Key ¶
func (e UserRoleRequestValidationError) Key() bool
Key function returns key value.
func (UserRoleRequestValidationError) Reason ¶
func (e UserRoleRequestValidationError) Reason() string
Reason function returns reason value.