Documentation ¶
Index ¶
- func RegisterInternalRoleServer(s *grpc.Server, srv InternalRoleServer)
- func RegisterResourceSrvServer(s *grpc.Server, srv ResourceSrvServer)
- func RegisterRoleBindingResourceSrvServer(s *grpc.Server, srv RoleBindingResourceSrvServer)
- func RegisterRoleSrvServer(s *grpc.Server, srv RoleSrvServer)
- func RegisterUserSrvServer(s *grpc.Server, srv UserSrvServer)
- type AuthorizeRequest
- func (*AuthorizeRequest) Descriptor() ([]byte, []int)
- func (m *AuthorizeRequest) GetAction() string
- func (m *AuthorizeRequest) GetResource() string
- func (m *AuthorizeRequest) GetSubject() string
- func (*AuthorizeRequest) ProtoMessage()
- func (m *AuthorizeRequest) Reset()
- func (m *AuthorizeRequest) String() string
- func (m *AuthorizeRequest) XXX_DiscardUnknown()
- func (m *AuthorizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthorizeRequest) XXX_Merge(src proto.Message)
- func (m *AuthorizeRequest) XXX_Size() int
- func (m *AuthorizeRequest) XXX_Unmarshal(b []byte) error
- type AuthorizeResponse
- func (*AuthorizeResponse) Descriptor() ([]byte, []int)
- func (m *AuthorizeResponse) GetOk() bool
- func (*AuthorizeResponse) ProtoMessage()
- func (m *AuthorizeResponse) Reset()
- func (m *AuthorizeResponse) String() string
- func (m *AuthorizeResponse) XXX_DiscardUnknown()
- func (m *AuthorizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthorizeResponse) XXX_Merge(src proto.Message)
- func (m *AuthorizeResponse) XXX_Size() int
- func (m *AuthorizeResponse) XXX_Unmarshal(b []byte) error
- type InternalRoleClient
- type InternalRoleServer
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)
- func (m *Resource) GetId() int64
- func (m *Resource) GetMemo() string
- func (m *Resource) GetName() string
- func (m *Resource) GetSource() string
- func (m *Resource) GetStatus() int64
- func (m *Resource) GetType() string
- func (m *Resource) GetValue() string
- func (*Resource) ProtoMessage()
- func (m *Resource) Reset()
- func (m *Resource) String() string
- func (m *Resource) XXX_DiscardUnknown()
- func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Resource) XXX_Merge(src proto.Message)
- func (m *Resource) XXX_Size() int
- func (m *Resource) XXX_Unmarshal(b []byte) error
- type ResourceAddRequest
- func (*ResourceAddRequest) Descriptor() ([]byte, []int)
- func (m *ResourceAddRequest) GetMemo() string
- func (m *ResourceAddRequest) GetName() string
- func (m *ResourceAddRequest) GetSource() string
- func (m *ResourceAddRequest) GetType() string
- func (m *ResourceAddRequest) GetValue() string
- func (*ResourceAddRequest) ProtoMessage()
- func (m *ResourceAddRequest) Reset()
- func (m *ResourceAddRequest) String() string
- func (m *ResourceAddRequest) XXX_DiscardUnknown()
- func (m *ResourceAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceAddRequest) XXX_Merge(src proto.Message)
- func (m *ResourceAddRequest) XXX_Size() int
- func (m *ResourceAddRequest) XXX_Unmarshal(b []byte) error
- type ResourceAddResponse
- func (*ResourceAddResponse) Descriptor() ([]byte, []int)
- func (m *ResourceAddResponse) GetRsp() *Response
- func (*ResourceAddResponse) ProtoMessage()
- func (m *ResourceAddResponse) Reset()
- func (m *ResourceAddResponse) String() string
- func (m *ResourceAddResponse) XXX_DiscardUnknown()
- func (m *ResourceAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceAddResponse) XXX_Merge(src proto.Message)
- func (m *ResourceAddResponse) XXX_Size() int
- func (m *ResourceAddResponse) XXX_Unmarshal(b []byte) error
- type ResourceDelRequest
- func (*ResourceDelRequest) Descriptor() ([]byte, []int)
- func (m *ResourceDelRequest) GetId() int64
- func (*ResourceDelRequest) ProtoMessage()
- func (m *ResourceDelRequest) Reset()
- func (m *ResourceDelRequest) String() string
- func (m *ResourceDelRequest) XXX_DiscardUnknown()
- func (m *ResourceDelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceDelRequest) XXX_Merge(src proto.Message)
- func (m *ResourceDelRequest) XXX_Size() int
- func (m *ResourceDelRequest) XXX_Unmarshal(b []byte) error
- type ResourceDelResponse
- func (*ResourceDelResponse) Descriptor() ([]byte, []int)
- func (m *ResourceDelResponse) GetRsp() *Response
- func (*ResourceDelResponse) ProtoMessage()
- func (m *ResourceDelResponse) Reset()
- func (m *ResourceDelResponse) String() string
- func (m *ResourceDelResponse) XXX_DiscardUnknown()
- func (m *ResourceDelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceDelResponse) XXX_Merge(src proto.Message)
- func (m *ResourceDelResponse) XXX_Size() int
- func (m *ResourceDelResponse) XXX_Unmarshal(b []byte) error
- type ResourceModRequest
- func (*ResourceModRequest) Descriptor() ([]byte, []int)
- func (m *ResourceModRequest) GetRc() *Resource
- func (*ResourceModRequest) ProtoMessage()
- func (m *ResourceModRequest) Reset()
- func (m *ResourceModRequest) String() string
- func (m *ResourceModRequest) XXX_DiscardUnknown()
- func (m *ResourceModRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceModRequest) XXX_Merge(src proto.Message)
- func (m *ResourceModRequest) XXX_Size() int
- func (m *ResourceModRequest) XXX_Unmarshal(b []byte) error
- type ResourceModResponse
- func (*ResourceModResponse) Descriptor() ([]byte, []int)
- func (m *ResourceModResponse) GetRsp() *Response
- func (*ResourceModResponse) ProtoMessage()
- func (m *ResourceModResponse) Reset()
- func (m *ResourceModResponse) String() string
- func (m *ResourceModResponse) XXX_DiscardUnknown()
- func (m *ResourceModResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceModResponse) XXX_Merge(src proto.Message)
- func (m *ResourceModResponse) XXX_Size() int
- func (m *ResourceModResponse) XXX_Unmarshal(b []byte) error
- type ResourceQryRequest
- func (*ResourceQryRequest) Descriptor() ([]byte, []int)
- func (m *ResourceQryRequest) GetPage() int64
- func (m *ResourceQryRequest) GetSize() int64
- func (m *ResourceQryRequest) GetType() string
- func (*ResourceQryRequest) ProtoMessage()
- func (m *ResourceQryRequest) Reset()
- func (m *ResourceQryRequest) String() string
- func (m *ResourceQryRequest) XXX_DiscardUnknown()
- func (m *ResourceQryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceQryRequest) XXX_Merge(src proto.Message)
- func (m *ResourceQryRequest) XXX_Size() int
- func (m *ResourceQryRequest) XXX_Unmarshal(b []byte) error
- type ResourceQryResponse
- func (*ResourceQryResponse) Descriptor() ([]byte, []int)
- func (m *ResourceQryResponse) GetData() []*Resource
- func (m *ResourceQryResponse) GetRsp() *Response
- func (m *ResourceQryResponse) GetTotal() int64
- func (*ResourceQryResponse) ProtoMessage()
- func (m *ResourceQryResponse) Reset()
- func (m *ResourceQryResponse) String() string
- func (m *ResourceQryResponse) XXX_DiscardUnknown()
- func (m *ResourceQryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceQryResponse) XXX_Merge(src proto.Message)
- func (m *ResourceQryResponse) XXX_Size() int
- func (m *ResourceQryResponse) XXX_Unmarshal(b []byte) error
- type ResourceSrvClient
- type ResourceSrvServer
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetCode() int64
- func (m *Response) GetDesc() string
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type Role
- func (*Role) Descriptor() ([]byte, []int)
- func (m *Role) GetId() int64
- func (m *Role) GetMemo() string
- func (m *Role) GetName() string
- func (m *Role) GetStatus() int64
- func (m *Role) GetType() string
- func (*Role) ProtoMessage()
- func (m *Role) Reset()
- func (m *Role) String() string
- func (m *Role) XXX_DiscardUnknown()
- func (m *Role) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Role) XXX_Merge(src proto.Message)
- func (m *Role) XXX_Size() int
- func (m *Role) XXX_Unmarshal(b []byte) error
- type RoleAddRequest
- func (*RoleAddRequest) Descriptor() ([]byte, []int)
- func (m *RoleAddRequest) GetMemo() string
- func (m *RoleAddRequest) GetName() string
- func (m *RoleAddRequest) GetType() string
- func (*RoleAddRequest) ProtoMessage()
- func (m *RoleAddRequest) Reset()
- func (m *RoleAddRequest) String() string
- func (m *RoleAddRequest) XXX_DiscardUnknown()
- func (m *RoleAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleAddRequest) XXX_Merge(src proto.Message)
- func (m *RoleAddRequest) XXX_Size() int
- func (m *RoleAddRequest) XXX_Unmarshal(b []byte) error
- type RoleAddResponse
- func (*RoleAddResponse) Descriptor() ([]byte, []int)
- func (m *RoleAddResponse) GetRsp() *Response
- func (*RoleAddResponse) ProtoMessage()
- func (m *RoleAddResponse) Reset()
- func (m *RoleAddResponse) String() string
- func (m *RoleAddResponse) XXX_DiscardUnknown()
- func (m *RoleAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleAddResponse) XXX_Merge(src proto.Message)
- func (m *RoleAddResponse) XXX_Size() int
- func (m *RoleAddResponse) XXX_Unmarshal(b []byte) error
- type RoleBindingResource
- func (*RoleBindingResource) Descriptor() ([]byte, []int)
- func (m *RoleBindingResource) GetAction() string
- func (m *RoleBindingResource) GetId() int64
- func (m *RoleBindingResource) GetPolicy() string
- func (m *RoleBindingResource) GetResource() string
- func (m *RoleBindingResource) GetStatus() int64
- func (m *RoleBindingResource) GetSubject() string
- func (m *RoleBindingResource) GetType() string
- func (*RoleBindingResource) ProtoMessage()
- func (m *RoleBindingResource) Reset()
- func (m *RoleBindingResource) String() string
- func (m *RoleBindingResource) XXX_DiscardUnknown()
- func (m *RoleBindingResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleBindingResource) XXX_Merge(src proto.Message)
- func (m *RoleBindingResource) XXX_Size() int
- func (m *RoleBindingResource) XXX_Unmarshal(b []byte) error
- type RoleBindingResourceAddRequest
- func (*RoleBindingResourceAddRequest) Descriptor() ([]byte, []int)
- func (m *RoleBindingResourceAddRequest) GetAction() string
- func (m *RoleBindingResourceAddRequest) GetPolicy() string
- func (m *RoleBindingResourceAddRequest) GetResource() string
- func (m *RoleBindingResourceAddRequest) GetSubject() string
- func (m *RoleBindingResourceAddRequest) GetType() string
- func (*RoleBindingResourceAddRequest) ProtoMessage()
- func (m *RoleBindingResourceAddRequest) Reset()
- func (m *RoleBindingResourceAddRequest) String() string
- func (m *RoleBindingResourceAddRequest) XXX_DiscardUnknown()
- func (m *RoleBindingResourceAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleBindingResourceAddRequest) XXX_Merge(src proto.Message)
- func (m *RoleBindingResourceAddRequest) XXX_Size() int
- func (m *RoleBindingResourceAddRequest) XXX_Unmarshal(b []byte) error
- type RoleBindingResourceAddResponse
- func (*RoleBindingResourceAddResponse) Descriptor() ([]byte, []int)
- func (m *RoleBindingResourceAddResponse) GetRsp() *Response
- func (*RoleBindingResourceAddResponse) ProtoMessage()
- func (m *RoleBindingResourceAddResponse) Reset()
- func (m *RoleBindingResourceAddResponse) String() string
- func (m *RoleBindingResourceAddResponse) XXX_DiscardUnknown()
- func (m *RoleBindingResourceAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleBindingResourceAddResponse) XXX_Merge(src proto.Message)
- func (m *RoleBindingResourceAddResponse) XXX_Size() int
- func (m *RoleBindingResourceAddResponse) XXX_Unmarshal(b []byte) error
- type RoleBindingResourceDelRequest
- func (*RoleBindingResourceDelRequest) Descriptor() ([]byte, []int)
- func (m *RoleBindingResourceDelRequest) GetId() int64
- func (*RoleBindingResourceDelRequest) ProtoMessage()
- func (m *RoleBindingResourceDelRequest) Reset()
- func (m *RoleBindingResourceDelRequest) String() string
- func (m *RoleBindingResourceDelRequest) XXX_DiscardUnknown()
- func (m *RoleBindingResourceDelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleBindingResourceDelRequest) XXX_Merge(src proto.Message)
- func (m *RoleBindingResourceDelRequest) XXX_Size() int
- func (m *RoleBindingResourceDelRequest) XXX_Unmarshal(b []byte) error
- type RoleBindingResourceDelResponse
- func (*RoleBindingResourceDelResponse) Descriptor() ([]byte, []int)
- func (m *RoleBindingResourceDelResponse) GetRsp() *Response
- func (*RoleBindingResourceDelResponse) ProtoMessage()
- func (m *RoleBindingResourceDelResponse) Reset()
- func (m *RoleBindingResourceDelResponse) String() string
- func (m *RoleBindingResourceDelResponse) XXX_DiscardUnknown()
- func (m *RoleBindingResourceDelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleBindingResourceDelResponse) XXX_Merge(src proto.Message)
- func (m *RoleBindingResourceDelResponse) XXX_Size() int
- func (m *RoleBindingResourceDelResponse) XXX_Unmarshal(b []byte) error
- type RoleBindingResourceListRequest
- func (*RoleBindingResourceListRequest) Descriptor() ([]byte, []int)
- func (m *RoleBindingResourceListRequest) GetType() string
- func (*RoleBindingResourceListRequest) ProtoMessage()
- func (m *RoleBindingResourceListRequest) Reset()
- func (m *RoleBindingResourceListRequest) String() string
- func (m *RoleBindingResourceListRequest) XXX_DiscardUnknown()
- func (m *RoleBindingResourceListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleBindingResourceListRequest) XXX_Merge(src proto.Message)
- func (m *RoleBindingResourceListRequest) XXX_Size() int
- func (m *RoleBindingResourceListRequest) XXX_Unmarshal(b []byte) error
- type RoleBindingResourceListResponse
- func (*RoleBindingResourceListResponse) Descriptor() ([]byte, []int)
- func (m *RoleBindingResourceListResponse) GetData() []*RoleBindingResource
- func (m *RoleBindingResourceListResponse) GetRsp() *Response
- func (*RoleBindingResourceListResponse) ProtoMessage()
- func (m *RoleBindingResourceListResponse) Reset()
- func (m *RoleBindingResourceListResponse) String() string
- func (m *RoleBindingResourceListResponse) XXX_DiscardUnknown()
- func (m *RoleBindingResourceListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleBindingResourceListResponse) XXX_Merge(src proto.Message)
- func (m *RoleBindingResourceListResponse) XXX_Size() int
- func (m *RoleBindingResourceListResponse) XXX_Unmarshal(b []byte) error
- type RoleBindingResourceModRequest
- func (*RoleBindingResourceModRequest) Descriptor() ([]byte, []int)
- func (m *RoleBindingResourceModRequest) GetRole() *RoleBindingResource
- func (*RoleBindingResourceModRequest) ProtoMessage()
- func (m *RoleBindingResourceModRequest) Reset()
- func (m *RoleBindingResourceModRequest) String() string
- func (m *RoleBindingResourceModRequest) XXX_DiscardUnknown()
- func (m *RoleBindingResourceModRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleBindingResourceModRequest) XXX_Merge(src proto.Message)
- func (m *RoleBindingResourceModRequest) XXX_Size() int
- func (m *RoleBindingResourceModRequest) XXX_Unmarshal(b []byte) error
- type RoleBindingResourceModResponse
- func (*RoleBindingResourceModResponse) Descriptor() ([]byte, []int)
- func (m *RoleBindingResourceModResponse) GetRsp() *Response
- func (*RoleBindingResourceModResponse) ProtoMessage()
- func (m *RoleBindingResourceModResponse) Reset()
- func (m *RoleBindingResourceModResponse) String() string
- func (m *RoleBindingResourceModResponse) XXX_DiscardUnknown()
- func (m *RoleBindingResourceModResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleBindingResourceModResponse) XXX_Merge(src proto.Message)
- func (m *RoleBindingResourceModResponse) XXX_Size() int
- func (m *RoleBindingResourceModResponse) XXX_Unmarshal(b []byte) error
- type RoleBindingResourceQryRequest
- func (*RoleBindingResourceQryRequest) Descriptor() ([]byte, []int)
- func (m *RoleBindingResourceQryRequest) GetNum() int64
- func (m *RoleBindingResourceQryRequest) GetPage() int64
- func (m *RoleBindingResourceQryRequest) GetType() string
- func (*RoleBindingResourceQryRequest) ProtoMessage()
- func (m *RoleBindingResourceQryRequest) Reset()
- func (m *RoleBindingResourceQryRequest) String() string
- func (m *RoleBindingResourceQryRequest) XXX_DiscardUnknown()
- func (m *RoleBindingResourceQryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleBindingResourceQryRequest) XXX_Merge(src proto.Message)
- func (m *RoleBindingResourceQryRequest) XXX_Size() int
- func (m *RoleBindingResourceQryRequest) XXX_Unmarshal(b []byte) error
- type RoleBindingResourceQryResponse
- func (*RoleBindingResourceQryResponse) Descriptor() ([]byte, []int)
- func (m *RoleBindingResourceQryResponse) GetData() []*RoleBindingResource
- func (m *RoleBindingResourceQryResponse) GetRsp() *Response
- func (m *RoleBindingResourceQryResponse) GetTotal() int64
- func (*RoleBindingResourceQryResponse) ProtoMessage()
- func (m *RoleBindingResourceQryResponse) Reset()
- func (m *RoleBindingResourceQryResponse) String() string
- func (m *RoleBindingResourceQryResponse) XXX_DiscardUnknown()
- func (m *RoleBindingResourceQryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleBindingResourceQryResponse) XXX_Merge(src proto.Message)
- func (m *RoleBindingResourceQryResponse) XXX_Size() int
- func (m *RoleBindingResourceQryResponse) XXX_Unmarshal(b []byte) error
- type RoleBindingResourceSrvClient
- type RoleBindingResourceSrvServer
- type RoleDelRequest
- func (*RoleDelRequest) Descriptor() ([]byte, []int)
- func (m *RoleDelRequest) GetId() int64
- func (*RoleDelRequest) ProtoMessage()
- func (m *RoleDelRequest) Reset()
- func (m *RoleDelRequest) String() string
- func (m *RoleDelRequest) XXX_DiscardUnknown()
- func (m *RoleDelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleDelRequest) XXX_Merge(src proto.Message)
- func (m *RoleDelRequest) XXX_Size() int
- func (m *RoleDelRequest) XXX_Unmarshal(b []byte) error
- type RoleDelResponse
- func (*RoleDelResponse) Descriptor() ([]byte, []int)
- func (m *RoleDelResponse) GetRsp() *Response
- func (*RoleDelResponse) ProtoMessage()
- func (m *RoleDelResponse) Reset()
- func (m *RoleDelResponse) String() string
- func (m *RoleDelResponse) XXX_DiscardUnknown()
- func (m *RoleDelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleDelResponse) XXX_Merge(src proto.Message)
- func (m *RoleDelResponse) XXX_Size() int
- func (m *RoleDelResponse) XXX_Unmarshal(b []byte) error
- type RoleModRequest
- func (*RoleModRequest) Descriptor() ([]byte, []int)
- func (m *RoleModRequest) GetRole() *Role
- func (*RoleModRequest) ProtoMessage()
- func (m *RoleModRequest) Reset()
- func (m *RoleModRequest) String() string
- func (m *RoleModRequest) XXX_DiscardUnknown()
- func (m *RoleModRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleModRequest) XXX_Merge(src proto.Message)
- func (m *RoleModRequest) XXX_Size() int
- func (m *RoleModRequest) XXX_Unmarshal(b []byte) error
- type RoleModResponse
- func (*RoleModResponse) Descriptor() ([]byte, []int)
- func (m *RoleModResponse) GetRsp() *Response
- func (*RoleModResponse) ProtoMessage()
- func (m *RoleModResponse) Reset()
- func (m *RoleModResponse) String() string
- func (m *RoleModResponse) XXX_DiscardUnknown()
- func (m *RoleModResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleModResponse) XXX_Merge(src proto.Message)
- func (m *RoleModResponse) XXX_Size() int
- func (m *RoleModResponse) XXX_Unmarshal(b []byte) error
- type RoleQryRequest
- func (*RoleQryRequest) Descriptor() ([]byte, []int)
- func (m *RoleQryRequest) GetPage() int64
- func (m *RoleQryRequest) GetSize() int64
- func (m *RoleQryRequest) GetType() string
- func (*RoleQryRequest) ProtoMessage()
- func (m *RoleQryRequest) Reset()
- func (m *RoleQryRequest) String() string
- func (m *RoleQryRequest) XXX_DiscardUnknown()
- func (m *RoleQryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleQryRequest) XXX_Merge(src proto.Message)
- func (m *RoleQryRequest) XXX_Size() int
- func (m *RoleQryRequest) XXX_Unmarshal(b []byte) error
- type RoleQryResponse
- func (*RoleQryResponse) Descriptor() ([]byte, []int)
- func (m *RoleQryResponse) GetData() []*Role
- func (m *RoleQryResponse) GetRsp() *Response
- func (m *RoleQryResponse) GetTotal() int64
- func (*RoleQryResponse) ProtoMessage()
- func (m *RoleQryResponse) Reset()
- func (m *RoleQryResponse) String() string
- func (m *RoleQryResponse) XXX_DiscardUnknown()
- func (m *RoleQryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleQryResponse) XXX_Merge(src proto.Message)
- func (m *RoleQryResponse) XXX_Size() int
- func (m *RoleQryResponse) XXX_Unmarshal(b []byte) error
- type RoleSrvClient
- type RoleSrvServer
- type UnimplementedInternalRoleServer
- type UnimplementedResourceSrvServer
- func (*UnimplementedResourceSrvServer) Add(ctx context.Context, req *ResourceAddRequest) (*ResourceAddResponse, error)
- func (*UnimplementedResourceSrvServer) Del(ctx context.Context, req *ResourceDelRequest) (*ResourceDelResponse, error)
- func (*UnimplementedResourceSrvServer) Mod(ctx context.Context, req *ResourceModRequest) (*ResourceModResponse, error)
- func (*UnimplementedResourceSrvServer) Qry(ctx context.Context, req *ResourceQryRequest) (*ResourceQryResponse, error)
- type UnimplementedRoleBindingResourceSrvServer
- func (*UnimplementedRoleBindingResourceSrvServer) Add(ctx context.Context, req *RoleBindingResourceAddRequest) (*RoleBindingResourceAddResponse, error)
- func (*UnimplementedRoleBindingResourceSrvServer) Del(ctx context.Context, req *RoleBindingResourceDelRequest) (*RoleBindingResourceDelResponse, error)
- func (*UnimplementedRoleBindingResourceSrvServer) List(ctx context.Context, req *RoleBindingResourceListRequest) (*RoleBindingResourceListResponse, error)
- func (*UnimplementedRoleBindingResourceSrvServer) Mod(ctx context.Context, req *RoleBindingResourceModRequest) (*RoleBindingResourceModResponse, error)
- func (*UnimplementedRoleBindingResourceSrvServer) Qry(ctx context.Context, req *RoleBindingResourceQryRequest) (*RoleBindingResourceQryResponse, error)
- type UnimplementedRoleSrvServer
- func (*UnimplementedRoleSrvServer) Add(ctx context.Context, req *RoleAddRequest) (*RoleAddResponse, error)
- func (*UnimplementedRoleSrvServer) Del(ctx context.Context, req *RoleDelRequest) (*RoleDelResponse, error)
- func (*UnimplementedRoleSrvServer) Mod(ctx context.Context, req *RoleModRequest) (*RoleModResponse, error)
- func (*UnimplementedRoleSrvServer) Qry(ctx context.Context, req *RoleQryRequest) (*RoleQryResponse, error)
- type UnimplementedUserSrvServer
- func (*UnimplementedUserSrvServer) Add(ctx context.Context, req *UserAddRequest) (*UserAddResponse, error)
- func (*UnimplementedUserSrvServer) Del(ctx context.Context, req *UserDelRequest) (*UserDelResponse, error)
- func (*UnimplementedUserSrvServer) List(ctx context.Context, req *UserListRequest) (*UserListResponse, error)
- func (*UnimplementedUserSrvServer) Mod(ctx context.Context, req *UserModRequest) (*UserModResponse, error)
- func (*UnimplementedUserSrvServer) Qry(ctx context.Context, req *UserQryRequest) (*UserQryResponse, error)
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetId() int64
- func (m *User) GetRole() string
- func (m *User) GetStatus() int64
- func (m *User) GetType() string
- func (m *User) GetUser() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type UserAddRequest
- func (*UserAddRequest) Descriptor() ([]byte, []int)
- func (m *UserAddRequest) GetRole() string
- func (m *UserAddRequest) GetType() string
- func (m *UserAddRequest) GetUser() string
- func (*UserAddRequest) ProtoMessage()
- func (m *UserAddRequest) Reset()
- func (m *UserAddRequest) String() string
- func (m *UserAddRequest) XXX_DiscardUnknown()
- func (m *UserAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserAddRequest) XXX_Merge(src proto.Message)
- func (m *UserAddRequest) XXX_Size() int
- func (m *UserAddRequest) XXX_Unmarshal(b []byte) error
- type UserAddResponse
- func (*UserAddResponse) Descriptor() ([]byte, []int)
- func (m *UserAddResponse) GetRsp() *Response
- func (*UserAddResponse) ProtoMessage()
- func (m *UserAddResponse) Reset()
- func (m *UserAddResponse) String() string
- func (m *UserAddResponse) XXX_DiscardUnknown()
- func (m *UserAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserAddResponse) XXX_Merge(src proto.Message)
- func (m *UserAddResponse) XXX_Size() int
- func (m *UserAddResponse) XXX_Unmarshal(b []byte) error
- type UserDelRequest
- func (*UserDelRequest) Descriptor() ([]byte, []int)
- func (m *UserDelRequest) GetId() int64
- func (*UserDelRequest) ProtoMessage()
- func (m *UserDelRequest) Reset()
- func (m *UserDelRequest) String() string
- func (m *UserDelRequest) XXX_DiscardUnknown()
- func (m *UserDelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserDelRequest) XXX_Merge(src proto.Message)
- func (m *UserDelRequest) XXX_Size() int
- func (m *UserDelRequest) XXX_Unmarshal(b []byte) error
- type UserDelResponse
- func (*UserDelResponse) Descriptor() ([]byte, []int)
- func (m *UserDelResponse) GetRsp() *Response
- func (*UserDelResponse) ProtoMessage()
- func (m *UserDelResponse) Reset()
- func (m *UserDelResponse) String() string
- func (m *UserDelResponse) XXX_DiscardUnknown()
- func (m *UserDelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserDelResponse) XXX_Merge(src proto.Message)
- func (m *UserDelResponse) XXX_Size() int
- func (m *UserDelResponse) XXX_Unmarshal(b []byte) error
- type UserListRequest
- func (*UserListRequest) Descriptor() ([]byte, []int)
- func (m *UserListRequest) GetType() string
- func (*UserListRequest) ProtoMessage()
- func (m *UserListRequest) Reset()
- func (m *UserListRequest) String() string
- func (m *UserListRequest) XXX_DiscardUnknown()
- func (m *UserListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserListRequest) XXX_Merge(src proto.Message)
- func (m *UserListRequest) XXX_Size() int
- func (m *UserListRequest) XXX_Unmarshal(b []byte) error
- type UserListResponse
- func (*UserListResponse) Descriptor() ([]byte, []int)
- func (m *UserListResponse) GetData() []*User
- func (m *UserListResponse) GetRsp() *Response
- func (*UserListResponse) ProtoMessage()
- func (m *UserListResponse) Reset()
- func (m *UserListResponse) String() string
- func (m *UserListResponse) XXX_DiscardUnknown()
- func (m *UserListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserListResponse) XXX_Merge(src proto.Message)
- func (m *UserListResponse) XXX_Size() int
- func (m *UserListResponse) XXX_Unmarshal(b []byte) error
- type UserModRequest
- func (*UserModRequest) Descriptor() ([]byte, []int)
- func (m *UserModRequest) GetUser() *User
- func (*UserModRequest) ProtoMessage()
- func (m *UserModRequest) Reset()
- func (m *UserModRequest) String() string
- func (m *UserModRequest) XXX_DiscardUnknown()
- func (m *UserModRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserModRequest) XXX_Merge(src proto.Message)
- func (m *UserModRequest) XXX_Size() int
- func (m *UserModRequest) XXX_Unmarshal(b []byte) error
- type UserModResponse
- func (*UserModResponse) Descriptor() ([]byte, []int)
- func (m *UserModResponse) GetRsp() *Response
- func (*UserModResponse) ProtoMessage()
- func (m *UserModResponse) Reset()
- func (m *UserModResponse) String() string
- func (m *UserModResponse) XXX_DiscardUnknown()
- func (m *UserModResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserModResponse) XXX_Merge(src proto.Message)
- func (m *UserModResponse) XXX_Size() int
- func (m *UserModResponse) XXX_Unmarshal(b []byte) error
- type UserQryRequest
- func (*UserQryRequest) Descriptor() ([]byte, []int)
- func (m *UserQryRequest) GetNum() int64
- func (m *UserQryRequest) GetPage() int64
- func (m *UserQryRequest) GetType() string
- func (*UserQryRequest) ProtoMessage()
- func (m *UserQryRequest) Reset()
- func (m *UserQryRequest) String() string
- func (m *UserQryRequest) XXX_DiscardUnknown()
- func (m *UserQryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserQryRequest) XXX_Merge(src proto.Message)
- func (m *UserQryRequest) XXX_Size() int
- func (m *UserQryRequest) XXX_Unmarshal(b []byte) error
- type UserQryResponse
- func (*UserQryResponse) Descriptor() ([]byte, []int)
- func (m *UserQryResponse) GetData() []*User
- func (m *UserQryResponse) GetRsp() *Response
- func (m *UserQryResponse) GetTotal() int64
- func (*UserQryResponse) ProtoMessage()
- func (m *UserQryResponse) Reset()
- func (m *UserQryResponse) String() string
- func (m *UserQryResponse) XXX_DiscardUnknown()
- func (m *UserQryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserQryResponse) XXX_Merge(src proto.Message)
- func (m *UserQryResponse) XXX_Size() int
- func (m *UserQryResponse) XXX_Unmarshal(b []byte) error
- type UserSrvClient
- type UserSrvServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterInternalRoleServer ¶
func RegisterInternalRoleServer(s *grpc.Server, srv InternalRoleServer)
func RegisterResourceSrvServer ¶
func RegisterResourceSrvServer(s *grpc.Server, srv ResourceSrvServer)
func RegisterRoleBindingResourceSrvServer ¶
func RegisterRoleBindingResourceSrvServer(s *grpc.Server, srv RoleBindingResourceSrvServer)
func RegisterRoleSrvServer ¶
func RegisterRoleSrvServer(s *grpc.Server, srv RoleSrvServer)
func RegisterUserSrvServer ¶
func RegisterUserSrvServer(s *grpc.Server, srv UserSrvServer)
Types ¶
type AuthorizeRequest ¶
type AuthorizeRequest struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthorizeRequest) Descriptor ¶
func (*AuthorizeRequest) Descriptor() ([]byte, []int)
func (*AuthorizeRequest) GetAction ¶
func (m *AuthorizeRequest) GetAction() string
func (*AuthorizeRequest) GetResource ¶
func (m *AuthorizeRequest) GetResource() string
func (*AuthorizeRequest) GetSubject ¶
func (m *AuthorizeRequest) GetSubject() string
func (*AuthorizeRequest) ProtoMessage ¶
func (*AuthorizeRequest) ProtoMessage()
func (*AuthorizeRequest) Reset ¶
func (m *AuthorizeRequest) Reset()
func (*AuthorizeRequest) String ¶
func (m *AuthorizeRequest) String() string
func (*AuthorizeRequest) XXX_DiscardUnknown ¶
func (m *AuthorizeRequest) XXX_DiscardUnknown()
func (*AuthorizeRequest) XXX_Marshal ¶
func (m *AuthorizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthorizeRequest) XXX_Merge ¶
func (m *AuthorizeRequest) XXX_Merge(src proto.Message)
func (*AuthorizeRequest) XXX_Size ¶
func (m *AuthorizeRequest) XXX_Size() int
func (*AuthorizeRequest) XXX_Unmarshal ¶
func (m *AuthorizeRequest) XXX_Unmarshal(b []byte) error
type AuthorizeResponse ¶
type AuthorizeResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthorizeResponse) Descriptor ¶
func (*AuthorizeResponse) Descriptor() ([]byte, []int)
func (*AuthorizeResponse) GetOk ¶
func (m *AuthorizeResponse) GetOk() bool
func (*AuthorizeResponse) ProtoMessage ¶
func (*AuthorizeResponse) ProtoMessage()
func (*AuthorizeResponse) Reset ¶
func (m *AuthorizeResponse) Reset()
func (*AuthorizeResponse) String ¶
func (m *AuthorizeResponse) String() string
func (*AuthorizeResponse) XXX_DiscardUnknown ¶
func (m *AuthorizeResponse) XXX_DiscardUnknown()
func (*AuthorizeResponse) XXX_Marshal ¶
func (m *AuthorizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthorizeResponse) XXX_Merge ¶
func (m *AuthorizeResponse) XXX_Merge(src proto.Message)
func (*AuthorizeResponse) XXX_Size ¶
func (m *AuthorizeResponse) XXX_Size() int
func (*AuthorizeResponse) XXX_Unmarshal ¶
func (m *AuthorizeResponse) XXX_Unmarshal(b []byte) error
type InternalRoleClient ¶
type InternalRoleClient interface { Authorize(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*AuthorizeResponse, error) Close() error }
InternalRoleClient is the client API for InternalRole service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAnkrInternalRoleClient ¶
func NewAnkrInternalRoleClient(addr string) (InternalRoleClient, error)
new client method
func NewInternalRoleClient ¶
func NewInternalRoleClient(cc *grpc.ClientConn) InternalRoleClient
origin client method
type InternalRoleServer ¶
type InternalRoleServer interface {
Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error)
}
InternalRoleServer is the server API for InternalRole service.
type Resource ¶
type Resource struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` Source string `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty"` Memo string `protobuf:"bytes,6,opt,name=memo,proto3" json:"memo,omitempty"` Status int64 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Resource) Descriptor ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) XXX_DiscardUnknown ¶
func (m *Resource) XXX_DiscardUnknown()
func (*Resource) XXX_Marshal ¶
func (*Resource) XXX_Unmarshal ¶
type ResourceAddRequest ¶
type ResourceAddRequest struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` Memo string `protobuf:"bytes,5,opt,name=memo,proto3" json:"memo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ResourceAddRequest) Descriptor ¶
func (*ResourceAddRequest) Descriptor() ([]byte, []int)
func (*ResourceAddRequest) GetMemo ¶
func (m *ResourceAddRequest) GetMemo() string
func (*ResourceAddRequest) GetName ¶
func (m *ResourceAddRequest) GetName() string
func (*ResourceAddRequest) GetSource ¶
func (m *ResourceAddRequest) GetSource() string
func (*ResourceAddRequest) GetType ¶
func (m *ResourceAddRequest) GetType() string
func (*ResourceAddRequest) GetValue ¶
func (m *ResourceAddRequest) GetValue() string
func (*ResourceAddRequest) ProtoMessage ¶
func (*ResourceAddRequest) ProtoMessage()
func (*ResourceAddRequest) Reset ¶
func (m *ResourceAddRequest) Reset()
func (*ResourceAddRequest) String ¶
func (m *ResourceAddRequest) String() string
func (*ResourceAddRequest) XXX_DiscardUnknown ¶
func (m *ResourceAddRequest) XXX_DiscardUnknown()
func (*ResourceAddRequest) XXX_Marshal ¶
func (m *ResourceAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceAddRequest) XXX_Merge ¶
func (m *ResourceAddRequest) XXX_Merge(src proto.Message)
func (*ResourceAddRequest) XXX_Size ¶
func (m *ResourceAddRequest) XXX_Size() int
func (*ResourceAddRequest) XXX_Unmarshal ¶
func (m *ResourceAddRequest) XXX_Unmarshal(b []byte) error
type ResourceAddResponse ¶
type ResourceAddResponse struct { Rsp *Response `protobuf:"bytes,1,opt,name=rsp,proto3" json:"rsp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ResourceAddResponse) Descriptor ¶
func (*ResourceAddResponse) Descriptor() ([]byte, []int)
func (*ResourceAddResponse) GetRsp ¶
func (m *ResourceAddResponse) GetRsp() *Response
func (*ResourceAddResponse) ProtoMessage ¶
func (*ResourceAddResponse) ProtoMessage()
func (*ResourceAddResponse) Reset ¶
func (m *ResourceAddResponse) Reset()
func (*ResourceAddResponse) String ¶
func (m *ResourceAddResponse) String() string
func (*ResourceAddResponse) XXX_DiscardUnknown ¶
func (m *ResourceAddResponse) XXX_DiscardUnknown()
func (*ResourceAddResponse) XXX_Marshal ¶
func (m *ResourceAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceAddResponse) XXX_Merge ¶
func (m *ResourceAddResponse) XXX_Merge(src proto.Message)
func (*ResourceAddResponse) XXX_Size ¶
func (m *ResourceAddResponse) XXX_Size() int
func (*ResourceAddResponse) XXX_Unmarshal ¶
func (m *ResourceAddResponse) XXX_Unmarshal(b []byte) error
type ResourceDelRequest ¶
type ResourceDelRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ResourceDelRequest) Descriptor ¶
func (*ResourceDelRequest) Descriptor() ([]byte, []int)
func (*ResourceDelRequest) GetId ¶
func (m *ResourceDelRequest) GetId() int64
func (*ResourceDelRequest) ProtoMessage ¶
func (*ResourceDelRequest) ProtoMessage()
func (*ResourceDelRequest) Reset ¶
func (m *ResourceDelRequest) Reset()
func (*ResourceDelRequest) String ¶
func (m *ResourceDelRequest) String() string
func (*ResourceDelRequest) XXX_DiscardUnknown ¶
func (m *ResourceDelRequest) XXX_DiscardUnknown()
func (*ResourceDelRequest) XXX_Marshal ¶
func (m *ResourceDelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceDelRequest) XXX_Merge ¶
func (m *ResourceDelRequest) XXX_Merge(src proto.Message)
func (*ResourceDelRequest) XXX_Size ¶
func (m *ResourceDelRequest) XXX_Size() int
func (*ResourceDelRequest) XXX_Unmarshal ¶
func (m *ResourceDelRequest) XXX_Unmarshal(b []byte) error
type ResourceDelResponse ¶
type ResourceDelResponse struct { Rsp *Response `protobuf:"bytes,1,opt,name=rsp,proto3" json:"rsp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ResourceDelResponse) Descriptor ¶
func (*ResourceDelResponse) Descriptor() ([]byte, []int)
func (*ResourceDelResponse) GetRsp ¶
func (m *ResourceDelResponse) GetRsp() *Response
func (*ResourceDelResponse) ProtoMessage ¶
func (*ResourceDelResponse) ProtoMessage()
func (*ResourceDelResponse) Reset ¶
func (m *ResourceDelResponse) Reset()
func (*ResourceDelResponse) String ¶
func (m *ResourceDelResponse) String() string
func (*ResourceDelResponse) XXX_DiscardUnknown ¶
func (m *ResourceDelResponse) XXX_DiscardUnknown()
func (*ResourceDelResponse) XXX_Marshal ¶
func (m *ResourceDelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceDelResponse) XXX_Merge ¶
func (m *ResourceDelResponse) XXX_Merge(src proto.Message)
func (*ResourceDelResponse) XXX_Size ¶
func (m *ResourceDelResponse) XXX_Size() int
func (*ResourceDelResponse) XXX_Unmarshal ¶
func (m *ResourceDelResponse) XXX_Unmarshal(b []byte) error
type ResourceModRequest ¶
type ResourceModRequest struct { Rc *Resource `protobuf:"bytes,1,opt,name=rc,proto3" json:"rc,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ResourceModRequest) Descriptor ¶
func (*ResourceModRequest) Descriptor() ([]byte, []int)
func (*ResourceModRequest) GetRc ¶
func (m *ResourceModRequest) GetRc() *Resource
func (*ResourceModRequest) ProtoMessage ¶
func (*ResourceModRequest) ProtoMessage()
func (*ResourceModRequest) Reset ¶
func (m *ResourceModRequest) Reset()
func (*ResourceModRequest) String ¶
func (m *ResourceModRequest) String() string
func (*ResourceModRequest) XXX_DiscardUnknown ¶
func (m *ResourceModRequest) XXX_DiscardUnknown()
func (*ResourceModRequest) XXX_Marshal ¶
func (m *ResourceModRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceModRequest) XXX_Merge ¶
func (m *ResourceModRequest) XXX_Merge(src proto.Message)
func (*ResourceModRequest) XXX_Size ¶
func (m *ResourceModRequest) XXX_Size() int
func (*ResourceModRequest) XXX_Unmarshal ¶
func (m *ResourceModRequest) XXX_Unmarshal(b []byte) error
type ResourceModResponse ¶
type ResourceModResponse struct { Rsp *Response `protobuf:"bytes,1,opt,name=rsp,proto3" json:"rsp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ResourceModResponse) Descriptor ¶
func (*ResourceModResponse) Descriptor() ([]byte, []int)
func (*ResourceModResponse) GetRsp ¶
func (m *ResourceModResponse) GetRsp() *Response
func (*ResourceModResponse) ProtoMessage ¶
func (*ResourceModResponse) ProtoMessage()
func (*ResourceModResponse) Reset ¶
func (m *ResourceModResponse) Reset()
func (*ResourceModResponse) String ¶
func (m *ResourceModResponse) String() string
func (*ResourceModResponse) XXX_DiscardUnknown ¶
func (m *ResourceModResponse) XXX_DiscardUnknown()
func (*ResourceModResponse) XXX_Marshal ¶
func (m *ResourceModResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceModResponse) XXX_Merge ¶
func (m *ResourceModResponse) XXX_Merge(src proto.Message)
func (*ResourceModResponse) XXX_Size ¶
func (m *ResourceModResponse) XXX_Size() int
func (*ResourceModResponse) XXX_Unmarshal ¶
func (m *ResourceModResponse) XXX_Unmarshal(b []byte) error
type ResourceQryRequest ¶
type ResourceQryRequest struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ResourceQryRequest) Descriptor ¶
func (*ResourceQryRequest) Descriptor() ([]byte, []int)
func (*ResourceQryRequest) GetPage ¶
func (m *ResourceQryRequest) GetPage() int64
func (*ResourceQryRequest) GetSize ¶
func (m *ResourceQryRequest) GetSize() int64
func (*ResourceQryRequest) GetType ¶
func (m *ResourceQryRequest) GetType() string
func (*ResourceQryRequest) ProtoMessage ¶
func (*ResourceQryRequest) ProtoMessage()
func (*ResourceQryRequest) Reset ¶
func (m *ResourceQryRequest) Reset()
func (*ResourceQryRequest) String ¶
func (m *ResourceQryRequest) String() string
func (*ResourceQryRequest) XXX_DiscardUnknown ¶
func (m *ResourceQryRequest) XXX_DiscardUnknown()
func (*ResourceQryRequest) XXX_Marshal ¶
func (m *ResourceQryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceQryRequest) XXX_Merge ¶
func (m *ResourceQryRequest) XXX_Merge(src proto.Message)
func (*ResourceQryRequest) XXX_Size ¶
func (m *ResourceQryRequest) XXX_Size() int
func (*ResourceQryRequest) XXX_Unmarshal ¶
func (m *ResourceQryRequest) XXX_Unmarshal(b []byte) error
type ResourceQryResponse ¶
type ResourceQryResponse struct { Rsp *Response `protobuf:"bytes,1,opt,name=rsp,proto3" json:"rsp,omitempty"` Data []*Resource `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ResourceQryResponse) Descriptor ¶
func (*ResourceQryResponse) Descriptor() ([]byte, []int)
func (*ResourceQryResponse) GetData ¶
func (m *ResourceQryResponse) GetData() []*Resource
func (*ResourceQryResponse) GetRsp ¶
func (m *ResourceQryResponse) GetRsp() *Response
func (*ResourceQryResponse) GetTotal ¶
func (m *ResourceQryResponse) GetTotal() int64
func (*ResourceQryResponse) ProtoMessage ¶
func (*ResourceQryResponse) ProtoMessage()
func (*ResourceQryResponse) Reset ¶
func (m *ResourceQryResponse) Reset()
func (*ResourceQryResponse) String ¶
func (m *ResourceQryResponse) String() string
func (*ResourceQryResponse) XXX_DiscardUnknown ¶
func (m *ResourceQryResponse) XXX_DiscardUnknown()
func (*ResourceQryResponse) XXX_Marshal ¶
func (m *ResourceQryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceQryResponse) XXX_Merge ¶
func (m *ResourceQryResponse) XXX_Merge(src proto.Message)
func (*ResourceQryResponse) XXX_Size ¶
func (m *ResourceQryResponse) XXX_Size() int
func (*ResourceQryResponse) XXX_Unmarshal ¶
func (m *ResourceQryResponse) XXX_Unmarshal(b []byte) error
type ResourceSrvClient ¶
type ResourceSrvClient interface { Add(ctx context.Context, in *ResourceAddRequest, opts ...grpc.CallOption) (*ResourceAddResponse, error) Del(ctx context.Context, in *ResourceDelRequest, opts ...grpc.CallOption) (*ResourceDelResponse, error) Mod(ctx context.Context, in *ResourceModRequest, opts ...grpc.CallOption) (*ResourceModResponse, error) Qry(ctx context.Context, in *ResourceQryRequest, opts ...grpc.CallOption) (*ResourceQryResponse, error) Close() error }
ResourceSrvClient is the client API for ResourceSrv service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAnkrResourceSrvClient ¶
func NewAnkrResourceSrvClient(addr string) (ResourceSrvClient, error)
new client method
func NewResourceSrvClient ¶
func NewResourceSrvClient(cc *grpc.ClientConn) ResourceSrvClient
origin client method
type ResourceSrvServer ¶
type ResourceSrvServer interface { Add(context.Context, *ResourceAddRequest) (*ResourceAddResponse, error) Del(context.Context, *ResourceDelRequest) (*ResourceDelResponse, error) Mod(context.Context, *ResourceModRequest) (*ResourceModResponse, error) Qry(context.Context, *ResourceQryRequest) (*ResourceQryResponse, error) }
ResourceSrvServer is the server API for ResourceSrv service.
type Response ¶
type Response struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type Role ¶
type Role struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` Memo string `protobuf:"bytes,4,opt,name=memo,proto3" json:"memo,omitempty"` Status int64 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Role) Descriptor ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) XXX_DiscardUnknown ¶
func (m *Role) XXX_DiscardUnknown()
func (*Role) XXX_Unmarshal ¶
type RoleAddRequest ¶
type RoleAddRequest struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Memo string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleAddRequest) Descriptor ¶
func (*RoleAddRequest) Descriptor() ([]byte, []int)
func (*RoleAddRequest) GetMemo ¶
func (m *RoleAddRequest) GetMemo() string
func (*RoleAddRequest) GetName ¶
func (m *RoleAddRequest) GetName() string
func (*RoleAddRequest) GetType ¶
func (m *RoleAddRequest) GetType() string
func (*RoleAddRequest) ProtoMessage ¶
func (*RoleAddRequest) ProtoMessage()
func (*RoleAddRequest) Reset ¶
func (m *RoleAddRequest) Reset()
func (*RoleAddRequest) String ¶
func (m *RoleAddRequest) String() string
func (*RoleAddRequest) XXX_DiscardUnknown ¶
func (m *RoleAddRequest) XXX_DiscardUnknown()
func (*RoleAddRequest) XXX_Marshal ¶
func (m *RoleAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleAddRequest) XXX_Merge ¶
func (m *RoleAddRequest) XXX_Merge(src proto.Message)
func (*RoleAddRequest) XXX_Size ¶
func (m *RoleAddRequest) XXX_Size() int
func (*RoleAddRequest) XXX_Unmarshal ¶
func (m *RoleAddRequest) XXX_Unmarshal(b []byte) error
type RoleAddResponse ¶
type RoleAddResponse struct { Rsp *Response `protobuf:"bytes,1,opt,name=rsp,proto3" json:"rsp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleAddResponse) Descriptor ¶
func (*RoleAddResponse) Descriptor() ([]byte, []int)
func (*RoleAddResponse) GetRsp ¶
func (m *RoleAddResponse) GetRsp() *Response
func (*RoleAddResponse) ProtoMessage ¶
func (*RoleAddResponse) ProtoMessage()
func (*RoleAddResponse) Reset ¶
func (m *RoleAddResponse) Reset()
func (*RoleAddResponse) String ¶
func (m *RoleAddResponse) String() string
func (*RoleAddResponse) XXX_DiscardUnknown ¶
func (m *RoleAddResponse) XXX_DiscardUnknown()
func (*RoleAddResponse) XXX_Marshal ¶
func (m *RoleAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleAddResponse) XXX_Merge ¶
func (m *RoleAddResponse) XXX_Merge(src proto.Message)
func (*RoleAddResponse) XXX_Size ¶
func (m *RoleAddResponse) XXX_Size() int
func (*RoleAddResponse) XXX_Unmarshal ¶
func (m *RoleAddResponse) XXX_Unmarshal(b []byte) error
type RoleBindingResource ¶
type RoleBindingResource struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Subject string `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"` Resource string `protobuf:"bytes,4,opt,name=resource,proto3" json:"resource,omitempty"` Action string `protobuf:"bytes,5,opt,name=action,proto3" json:"action,omitempty"` Policy string `protobuf:"bytes,6,opt,name=policy,proto3" json:"policy,omitempty"` Status int64 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleBindingResource) Descriptor ¶
func (*RoleBindingResource) Descriptor() ([]byte, []int)
func (*RoleBindingResource) GetAction ¶
func (m *RoleBindingResource) GetAction() string
func (*RoleBindingResource) GetId ¶
func (m *RoleBindingResource) GetId() int64
func (*RoleBindingResource) GetPolicy ¶
func (m *RoleBindingResource) GetPolicy() string
func (*RoleBindingResource) GetResource ¶
func (m *RoleBindingResource) GetResource() string
func (*RoleBindingResource) GetStatus ¶
func (m *RoleBindingResource) GetStatus() int64
func (*RoleBindingResource) GetSubject ¶
func (m *RoleBindingResource) GetSubject() string
func (*RoleBindingResource) GetType ¶
func (m *RoleBindingResource) GetType() string
func (*RoleBindingResource) ProtoMessage ¶
func (*RoleBindingResource) ProtoMessage()
func (*RoleBindingResource) Reset ¶
func (m *RoleBindingResource) Reset()
func (*RoleBindingResource) String ¶
func (m *RoleBindingResource) String() string
func (*RoleBindingResource) XXX_DiscardUnknown ¶
func (m *RoleBindingResource) XXX_DiscardUnknown()
func (*RoleBindingResource) XXX_Marshal ¶
func (m *RoleBindingResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleBindingResource) XXX_Merge ¶
func (m *RoleBindingResource) XXX_Merge(src proto.Message)
func (*RoleBindingResource) XXX_Size ¶
func (m *RoleBindingResource) XXX_Size() int
func (*RoleBindingResource) XXX_Unmarshal ¶
func (m *RoleBindingResource) XXX_Unmarshal(b []byte) error
type RoleBindingResourceAddRequest ¶
type RoleBindingResourceAddRequest struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` Resource string `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"` Action string `protobuf:"bytes,4,opt,name=action,proto3" json:"action,omitempty"` Policy string `protobuf:"bytes,5,opt,name=policy,proto3" json:"policy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleBindingResourceAddRequest) Descriptor ¶
func (*RoleBindingResourceAddRequest) Descriptor() ([]byte, []int)
func (*RoleBindingResourceAddRequest) GetAction ¶
func (m *RoleBindingResourceAddRequest) GetAction() string
func (*RoleBindingResourceAddRequest) GetPolicy ¶
func (m *RoleBindingResourceAddRequest) GetPolicy() string
func (*RoleBindingResourceAddRequest) GetResource ¶
func (m *RoleBindingResourceAddRequest) GetResource() string
func (*RoleBindingResourceAddRequest) GetSubject ¶
func (m *RoleBindingResourceAddRequest) GetSubject() string
func (*RoleBindingResourceAddRequest) GetType ¶
func (m *RoleBindingResourceAddRequest) GetType() string
func (*RoleBindingResourceAddRequest) ProtoMessage ¶
func (*RoleBindingResourceAddRequest) ProtoMessage()
func (*RoleBindingResourceAddRequest) Reset ¶
func (m *RoleBindingResourceAddRequest) Reset()
func (*RoleBindingResourceAddRequest) String ¶
func (m *RoleBindingResourceAddRequest) String() string
func (*RoleBindingResourceAddRequest) XXX_DiscardUnknown ¶
func (m *RoleBindingResourceAddRequest) XXX_DiscardUnknown()
func (*RoleBindingResourceAddRequest) XXX_Marshal ¶
func (m *RoleBindingResourceAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleBindingResourceAddRequest) XXX_Merge ¶
func (m *RoleBindingResourceAddRequest) XXX_Merge(src proto.Message)
func (*RoleBindingResourceAddRequest) XXX_Size ¶
func (m *RoleBindingResourceAddRequest) XXX_Size() int
func (*RoleBindingResourceAddRequest) XXX_Unmarshal ¶
func (m *RoleBindingResourceAddRequest) XXX_Unmarshal(b []byte) error
type RoleBindingResourceAddResponse ¶
type RoleBindingResourceAddResponse struct { Rsp *Response `protobuf:"bytes,1,opt,name=rsp,proto3" json:"rsp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleBindingResourceAddResponse) Descriptor ¶
func (*RoleBindingResourceAddResponse) Descriptor() ([]byte, []int)
func (*RoleBindingResourceAddResponse) GetRsp ¶
func (m *RoleBindingResourceAddResponse) GetRsp() *Response
func (*RoleBindingResourceAddResponse) ProtoMessage ¶
func (*RoleBindingResourceAddResponse) ProtoMessage()
func (*RoleBindingResourceAddResponse) Reset ¶
func (m *RoleBindingResourceAddResponse) Reset()
func (*RoleBindingResourceAddResponse) String ¶
func (m *RoleBindingResourceAddResponse) String() string
func (*RoleBindingResourceAddResponse) XXX_DiscardUnknown ¶
func (m *RoleBindingResourceAddResponse) XXX_DiscardUnknown()
func (*RoleBindingResourceAddResponse) XXX_Marshal ¶
func (m *RoleBindingResourceAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleBindingResourceAddResponse) XXX_Merge ¶
func (m *RoleBindingResourceAddResponse) XXX_Merge(src proto.Message)
func (*RoleBindingResourceAddResponse) XXX_Size ¶
func (m *RoleBindingResourceAddResponse) XXX_Size() int
func (*RoleBindingResourceAddResponse) XXX_Unmarshal ¶
func (m *RoleBindingResourceAddResponse) XXX_Unmarshal(b []byte) error
type RoleBindingResourceDelRequest ¶
type RoleBindingResourceDelRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleBindingResourceDelRequest) Descriptor ¶
func (*RoleBindingResourceDelRequest) Descriptor() ([]byte, []int)
func (*RoleBindingResourceDelRequest) GetId ¶
func (m *RoleBindingResourceDelRequest) GetId() int64
func (*RoleBindingResourceDelRequest) ProtoMessage ¶
func (*RoleBindingResourceDelRequest) ProtoMessage()
func (*RoleBindingResourceDelRequest) Reset ¶
func (m *RoleBindingResourceDelRequest) Reset()
func (*RoleBindingResourceDelRequest) String ¶
func (m *RoleBindingResourceDelRequest) String() string
func (*RoleBindingResourceDelRequest) XXX_DiscardUnknown ¶
func (m *RoleBindingResourceDelRequest) XXX_DiscardUnknown()
func (*RoleBindingResourceDelRequest) XXX_Marshal ¶
func (m *RoleBindingResourceDelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleBindingResourceDelRequest) XXX_Merge ¶
func (m *RoleBindingResourceDelRequest) XXX_Merge(src proto.Message)
func (*RoleBindingResourceDelRequest) XXX_Size ¶
func (m *RoleBindingResourceDelRequest) XXX_Size() int
func (*RoleBindingResourceDelRequest) XXX_Unmarshal ¶
func (m *RoleBindingResourceDelRequest) XXX_Unmarshal(b []byte) error
type RoleBindingResourceDelResponse ¶
type RoleBindingResourceDelResponse struct { Rsp *Response `protobuf:"bytes,1,opt,name=rsp,proto3" json:"rsp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleBindingResourceDelResponse) Descriptor ¶
func (*RoleBindingResourceDelResponse) Descriptor() ([]byte, []int)
func (*RoleBindingResourceDelResponse) GetRsp ¶
func (m *RoleBindingResourceDelResponse) GetRsp() *Response
func (*RoleBindingResourceDelResponse) ProtoMessage ¶
func (*RoleBindingResourceDelResponse) ProtoMessage()
func (*RoleBindingResourceDelResponse) Reset ¶
func (m *RoleBindingResourceDelResponse) Reset()
func (*RoleBindingResourceDelResponse) String ¶
func (m *RoleBindingResourceDelResponse) String() string
func (*RoleBindingResourceDelResponse) XXX_DiscardUnknown ¶
func (m *RoleBindingResourceDelResponse) XXX_DiscardUnknown()
func (*RoleBindingResourceDelResponse) XXX_Marshal ¶
func (m *RoleBindingResourceDelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleBindingResourceDelResponse) XXX_Merge ¶
func (m *RoleBindingResourceDelResponse) XXX_Merge(src proto.Message)
func (*RoleBindingResourceDelResponse) XXX_Size ¶
func (m *RoleBindingResourceDelResponse) XXX_Size() int
func (*RoleBindingResourceDelResponse) XXX_Unmarshal ¶
func (m *RoleBindingResourceDelResponse) XXX_Unmarshal(b []byte) error
type RoleBindingResourceListRequest ¶
type RoleBindingResourceListRequest struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleBindingResourceListRequest) Descriptor ¶
func (*RoleBindingResourceListRequest) Descriptor() ([]byte, []int)
func (*RoleBindingResourceListRequest) GetType ¶
func (m *RoleBindingResourceListRequest) GetType() string
func (*RoleBindingResourceListRequest) ProtoMessage ¶
func (*RoleBindingResourceListRequest) ProtoMessage()
func (*RoleBindingResourceListRequest) Reset ¶
func (m *RoleBindingResourceListRequest) Reset()
func (*RoleBindingResourceListRequest) String ¶
func (m *RoleBindingResourceListRequest) String() string
func (*RoleBindingResourceListRequest) XXX_DiscardUnknown ¶
func (m *RoleBindingResourceListRequest) XXX_DiscardUnknown()
func (*RoleBindingResourceListRequest) XXX_Marshal ¶
func (m *RoleBindingResourceListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleBindingResourceListRequest) XXX_Merge ¶
func (m *RoleBindingResourceListRequest) XXX_Merge(src proto.Message)
func (*RoleBindingResourceListRequest) XXX_Size ¶
func (m *RoleBindingResourceListRequest) XXX_Size() int
func (*RoleBindingResourceListRequest) XXX_Unmarshal ¶
func (m *RoleBindingResourceListRequest) XXX_Unmarshal(b []byte) error
type RoleBindingResourceListResponse ¶
type RoleBindingResourceListResponse struct { Rsp *Response `protobuf:"bytes,1,opt,name=rsp,proto3" json:"rsp,omitempty"` Data []*RoleBindingResource `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleBindingResourceListResponse) Descriptor ¶
func (*RoleBindingResourceListResponse) Descriptor() ([]byte, []int)
func (*RoleBindingResourceListResponse) GetData ¶
func (m *RoleBindingResourceListResponse) GetData() []*RoleBindingResource
func (*RoleBindingResourceListResponse) GetRsp ¶
func (m *RoleBindingResourceListResponse) GetRsp() *Response
func (*RoleBindingResourceListResponse) ProtoMessage ¶
func (*RoleBindingResourceListResponse) ProtoMessage()
func (*RoleBindingResourceListResponse) Reset ¶
func (m *RoleBindingResourceListResponse) Reset()
func (*RoleBindingResourceListResponse) String ¶
func (m *RoleBindingResourceListResponse) String() string
func (*RoleBindingResourceListResponse) XXX_DiscardUnknown ¶
func (m *RoleBindingResourceListResponse) XXX_DiscardUnknown()
func (*RoleBindingResourceListResponse) XXX_Marshal ¶
func (m *RoleBindingResourceListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleBindingResourceListResponse) XXX_Merge ¶
func (m *RoleBindingResourceListResponse) XXX_Merge(src proto.Message)
func (*RoleBindingResourceListResponse) XXX_Size ¶
func (m *RoleBindingResourceListResponse) XXX_Size() int
func (*RoleBindingResourceListResponse) XXX_Unmarshal ¶
func (m *RoleBindingResourceListResponse) XXX_Unmarshal(b []byte) error
type RoleBindingResourceModRequest ¶
type RoleBindingResourceModRequest struct { Role *RoleBindingResource `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleBindingResourceModRequest) Descriptor ¶
func (*RoleBindingResourceModRequest) Descriptor() ([]byte, []int)
func (*RoleBindingResourceModRequest) GetRole ¶
func (m *RoleBindingResourceModRequest) GetRole() *RoleBindingResource
func (*RoleBindingResourceModRequest) ProtoMessage ¶
func (*RoleBindingResourceModRequest) ProtoMessage()
func (*RoleBindingResourceModRequest) Reset ¶
func (m *RoleBindingResourceModRequest) Reset()
func (*RoleBindingResourceModRequest) String ¶
func (m *RoleBindingResourceModRequest) String() string
func (*RoleBindingResourceModRequest) XXX_DiscardUnknown ¶
func (m *RoleBindingResourceModRequest) XXX_DiscardUnknown()
func (*RoleBindingResourceModRequest) XXX_Marshal ¶
func (m *RoleBindingResourceModRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleBindingResourceModRequest) XXX_Merge ¶
func (m *RoleBindingResourceModRequest) XXX_Merge(src proto.Message)
func (*RoleBindingResourceModRequest) XXX_Size ¶
func (m *RoleBindingResourceModRequest) XXX_Size() int
func (*RoleBindingResourceModRequest) XXX_Unmarshal ¶
func (m *RoleBindingResourceModRequest) XXX_Unmarshal(b []byte) error
type RoleBindingResourceModResponse ¶
type RoleBindingResourceModResponse struct { Rsp *Response `protobuf:"bytes,1,opt,name=rsp,proto3" json:"rsp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleBindingResourceModResponse) Descriptor ¶
func (*RoleBindingResourceModResponse) Descriptor() ([]byte, []int)
func (*RoleBindingResourceModResponse) GetRsp ¶
func (m *RoleBindingResourceModResponse) GetRsp() *Response
func (*RoleBindingResourceModResponse) ProtoMessage ¶
func (*RoleBindingResourceModResponse) ProtoMessage()
func (*RoleBindingResourceModResponse) Reset ¶
func (m *RoleBindingResourceModResponse) Reset()
func (*RoleBindingResourceModResponse) String ¶
func (m *RoleBindingResourceModResponse) String() string
func (*RoleBindingResourceModResponse) XXX_DiscardUnknown ¶
func (m *RoleBindingResourceModResponse) XXX_DiscardUnknown()
func (*RoleBindingResourceModResponse) XXX_Marshal ¶
func (m *RoleBindingResourceModResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleBindingResourceModResponse) XXX_Merge ¶
func (m *RoleBindingResourceModResponse) XXX_Merge(src proto.Message)
func (*RoleBindingResourceModResponse) XXX_Size ¶
func (m *RoleBindingResourceModResponse) XXX_Size() int
func (*RoleBindingResourceModResponse) XXX_Unmarshal ¶
func (m *RoleBindingResourceModResponse) XXX_Unmarshal(b []byte) error
type RoleBindingResourceQryRequest ¶
type RoleBindingResourceQryRequest struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` Num int64 `protobuf:"varint,2,opt,name=num,proto3" json:"num,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleBindingResourceQryRequest) Descriptor ¶
func (*RoleBindingResourceQryRequest) Descriptor() ([]byte, []int)
func (*RoleBindingResourceQryRequest) GetNum ¶
func (m *RoleBindingResourceQryRequest) GetNum() int64
func (*RoleBindingResourceQryRequest) GetPage ¶
func (m *RoleBindingResourceQryRequest) GetPage() int64
func (*RoleBindingResourceQryRequest) GetType ¶
func (m *RoleBindingResourceQryRequest) GetType() string
func (*RoleBindingResourceQryRequest) ProtoMessage ¶
func (*RoleBindingResourceQryRequest) ProtoMessage()
func (*RoleBindingResourceQryRequest) Reset ¶
func (m *RoleBindingResourceQryRequest) Reset()
func (*RoleBindingResourceQryRequest) String ¶
func (m *RoleBindingResourceQryRequest) String() string
func (*RoleBindingResourceQryRequest) XXX_DiscardUnknown ¶
func (m *RoleBindingResourceQryRequest) XXX_DiscardUnknown()
func (*RoleBindingResourceQryRequest) XXX_Marshal ¶
func (m *RoleBindingResourceQryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleBindingResourceQryRequest) XXX_Merge ¶
func (m *RoleBindingResourceQryRequest) XXX_Merge(src proto.Message)
func (*RoleBindingResourceQryRequest) XXX_Size ¶
func (m *RoleBindingResourceQryRequest) XXX_Size() int
func (*RoleBindingResourceQryRequest) XXX_Unmarshal ¶
func (m *RoleBindingResourceQryRequest) XXX_Unmarshal(b []byte) error
type RoleBindingResourceQryResponse ¶
type RoleBindingResourceQryResponse struct { Rsp *Response `protobuf:"bytes,1,opt,name=rsp,proto3" json:"rsp,omitempty"` Data []*RoleBindingResource `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleBindingResourceQryResponse) Descriptor ¶
func (*RoleBindingResourceQryResponse) Descriptor() ([]byte, []int)
func (*RoleBindingResourceQryResponse) GetData ¶
func (m *RoleBindingResourceQryResponse) GetData() []*RoleBindingResource
func (*RoleBindingResourceQryResponse) GetRsp ¶
func (m *RoleBindingResourceQryResponse) GetRsp() *Response
func (*RoleBindingResourceQryResponse) GetTotal ¶
func (m *RoleBindingResourceQryResponse) GetTotal() int64
func (*RoleBindingResourceQryResponse) ProtoMessage ¶
func (*RoleBindingResourceQryResponse) ProtoMessage()
func (*RoleBindingResourceQryResponse) Reset ¶
func (m *RoleBindingResourceQryResponse) Reset()
func (*RoleBindingResourceQryResponse) String ¶
func (m *RoleBindingResourceQryResponse) String() string
func (*RoleBindingResourceQryResponse) XXX_DiscardUnknown ¶
func (m *RoleBindingResourceQryResponse) XXX_DiscardUnknown()
func (*RoleBindingResourceQryResponse) XXX_Marshal ¶
func (m *RoleBindingResourceQryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleBindingResourceQryResponse) XXX_Merge ¶
func (m *RoleBindingResourceQryResponse) XXX_Merge(src proto.Message)
func (*RoleBindingResourceQryResponse) XXX_Size ¶
func (m *RoleBindingResourceQryResponse) XXX_Size() int
func (*RoleBindingResourceQryResponse) XXX_Unmarshal ¶
func (m *RoleBindingResourceQryResponse) XXX_Unmarshal(b []byte) error
type RoleBindingResourceSrvClient ¶
type RoleBindingResourceSrvClient interface { Add(ctx context.Context, in *RoleBindingResourceAddRequest, opts ...grpc.CallOption) (*RoleBindingResourceAddResponse, error) Del(ctx context.Context, in *RoleBindingResourceDelRequest, opts ...grpc.CallOption) (*RoleBindingResourceDelResponse, error) Mod(ctx context.Context, in *RoleBindingResourceModRequest, opts ...grpc.CallOption) (*RoleBindingResourceModResponse, error) Qry(ctx context.Context, in *RoleBindingResourceQryRequest, opts ...grpc.CallOption) (*RoleBindingResourceQryResponse, error) List(ctx context.Context, in *RoleBindingResourceListRequest, opts ...grpc.CallOption) (*RoleBindingResourceListResponse, error) Close() error }
RoleBindingResourceSrvClient is the client API for RoleBindingResourceSrv service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAnkrRoleBindingResourceSrvClient ¶
func NewAnkrRoleBindingResourceSrvClient(addr string) (RoleBindingResourceSrvClient, error)
new client method
func NewRoleBindingResourceSrvClient ¶
func NewRoleBindingResourceSrvClient(cc *grpc.ClientConn) RoleBindingResourceSrvClient
origin client method
type RoleBindingResourceSrvServer ¶
type RoleBindingResourceSrvServer interface { Add(context.Context, *RoleBindingResourceAddRequest) (*RoleBindingResourceAddResponse, error) Del(context.Context, *RoleBindingResourceDelRequest) (*RoleBindingResourceDelResponse, error) Mod(context.Context, *RoleBindingResourceModRequest) (*RoleBindingResourceModResponse, error) Qry(context.Context, *RoleBindingResourceQryRequest) (*RoleBindingResourceQryResponse, error) List(context.Context, *RoleBindingResourceListRequest) (*RoleBindingResourceListResponse, error) }
RoleBindingResourceSrvServer is the server API for RoleBindingResourceSrv service.
type RoleDelRequest ¶
type RoleDelRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleDelRequest) Descriptor ¶
func (*RoleDelRequest) Descriptor() ([]byte, []int)
func (*RoleDelRequest) GetId ¶
func (m *RoleDelRequest) GetId() int64
func (*RoleDelRequest) ProtoMessage ¶
func (*RoleDelRequest) ProtoMessage()
func (*RoleDelRequest) Reset ¶
func (m *RoleDelRequest) Reset()
func (*RoleDelRequest) String ¶
func (m *RoleDelRequest) String() string
func (*RoleDelRequest) XXX_DiscardUnknown ¶
func (m *RoleDelRequest) XXX_DiscardUnknown()
func (*RoleDelRequest) XXX_Marshal ¶
func (m *RoleDelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleDelRequest) XXX_Merge ¶
func (m *RoleDelRequest) XXX_Merge(src proto.Message)
func (*RoleDelRequest) XXX_Size ¶
func (m *RoleDelRequest) XXX_Size() int
func (*RoleDelRequest) XXX_Unmarshal ¶
func (m *RoleDelRequest) XXX_Unmarshal(b []byte) error
type RoleDelResponse ¶
type RoleDelResponse struct { Rsp *Response `protobuf:"bytes,1,opt,name=rsp,proto3" json:"rsp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleDelResponse) Descriptor ¶
func (*RoleDelResponse) Descriptor() ([]byte, []int)
func (*RoleDelResponse) GetRsp ¶
func (m *RoleDelResponse) GetRsp() *Response
func (*RoleDelResponse) ProtoMessage ¶
func (*RoleDelResponse) ProtoMessage()
func (*RoleDelResponse) Reset ¶
func (m *RoleDelResponse) Reset()
func (*RoleDelResponse) String ¶
func (m *RoleDelResponse) String() string
func (*RoleDelResponse) XXX_DiscardUnknown ¶
func (m *RoleDelResponse) XXX_DiscardUnknown()
func (*RoleDelResponse) XXX_Marshal ¶
func (m *RoleDelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleDelResponse) XXX_Merge ¶
func (m *RoleDelResponse) XXX_Merge(src proto.Message)
func (*RoleDelResponse) XXX_Size ¶
func (m *RoleDelResponse) XXX_Size() int
func (*RoleDelResponse) XXX_Unmarshal ¶
func (m *RoleDelResponse) XXX_Unmarshal(b []byte) error
type RoleModRequest ¶
type RoleModRequest struct { Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleModRequest) Descriptor ¶
func (*RoleModRequest) Descriptor() ([]byte, []int)
func (*RoleModRequest) GetRole ¶
func (m *RoleModRequest) GetRole() *Role
func (*RoleModRequest) ProtoMessage ¶
func (*RoleModRequest) ProtoMessage()
func (*RoleModRequest) Reset ¶
func (m *RoleModRequest) Reset()
func (*RoleModRequest) String ¶
func (m *RoleModRequest) String() string
func (*RoleModRequest) XXX_DiscardUnknown ¶
func (m *RoleModRequest) XXX_DiscardUnknown()
func (*RoleModRequest) XXX_Marshal ¶
func (m *RoleModRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleModRequest) XXX_Merge ¶
func (m *RoleModRequest) XXX_Merge(src proto.Message)
func (*RoleModRequest) XXX_Size ¶
func (m *RoleModRequest) XXX_Size() int
func (*RoleModRequest) XXX_Unmarshal ¶
func (m *RoleModRequest) XXX_Unmarshal(b []byte) error
type RoleModResponse ¶
type RoleModResponse struct { Rsp *Response `protobuf:"bytes,1,opt,name=rsp,proto3" json:"rsp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleModResponse) Descriptor ¶
func (*RoleModResponse) Descriptor() ([]byte, []int)
func (*RoleModResponse) GetRsp ¶
func (m *RoleModResponse) GetRsp() *Response
func (*RoleModResponse) ProtoMessage ¶
func (*RoleModResponse) ProtoMessage()
func (*RoleModResponse) Reset ¶
func (m *RoleModResponse) Reset()
func (*RoleModResponse) String ¶
func (m *RoleModResponse) String() string
func (*RoleModResponse) XXX_DiscardUnknown ¶
func (m *RoleModResponse) XXX_DiscardUnknown()
func (*RoleModResponse) XXX_Marshal ¶
func (m *RoleModResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleModResponse) XXX_Merge ¶
func (m *RoleModResponse) XXX_Merge(src proto.Message)
func (*RoleModResponse) XXX_Size ¶
func (m *RoleModResponse) XXX_Size() int
func (*RoleModResponse) XXX_Unmarshal ¶
func (m *RoleModResponse) XXX_Unmarshal(b []byte) error
type RoleQryRequest ¶
type RoleQryRequest struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleQryRequest) Descriptor ¶
func (*RoleQryRequest) Descriptor() ([]byte, []int)
func (*RoleQryRequest) GetPage ¶
func (m *RoleQryRequest) GetPage() int64
func (*RoleQryRequest) GetSize ¶
func (m *RoleQryRequest) GetSize() int64
func (*RoleQryRequest) GetType ¶
func (m *RoleQryRequest) GetType() string
func (*RoleQryRequest) ProtoMessage ¶
func (*RoleQryRequest) ProtoMessage()
func (*RoleQryRequest) Reset ¶
func (m *RoleQryRequest) Reset()
func (*RoleQryRequest) String ¶
func (m *RoleQryRequest) String() string
func (*RoleQryRequest) XXX_DiscardUnknown ¶
func (m *RoleQryRequest) XXX_DiscardUnknown()
func (*RoleQryRequest) XXX_Marshal ¶
func (m *RoleQryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleQryRequest) XXX_Merge ¶
func (m *RoleQryRequest) XXX_Merge(src proto.Message)
func (*RoleQryRequest) XXX_Size ¶
func (m *RoleQryRequest) XXX_Size() int
func (*RoleQryRequest) XXX_Unmarshal ¶
func (m *RoleQryRequest) XXX_Unmarshal(b []byte) error
type RoleQryResponse ¶
type RoleQryResponse struct { Rsp *Response `protobuf:"bytes,1,opt,name=rsp,proto3" json:"rsp,omitempty"` Data []*Role `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoleQryResponse) Descriptor ¶
func (*RoleQryResponse) Descriptor() ([]byte, []int)
func (*RoleQryResponse) GetData ¶
func (m *RoleQryResponse) GetData() []*Role
func (*RoleQryResponse) GetRsp ¶
func (m *RoleQryResponse) GetRsp() *Response
func (*RoleQryResponse) GetTotal ¶
func (m *RoleQryResponse) GetTotal() int64
func (*RoleQryResponse) ProtoMessage ¶
func (*RoleQryResponse) ProtoMessage()
func (*RoleQryResponse) Reset ¶
func (m *RoleQryResponse) Reset()
func (*RoleQryResponse) String ¶
func (m *RoleQryResponse) String() string
func (*RoleQryResponse) XXX_DiscardUnknown ¶
func (m *RoleQryResponse) XXX_DiscardUnknown()
func (*RoleQryResponse) XXX_Marshal ¶
func (m *RoleQryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleQryResponse) XXX_Merge ¶
func (m *RoleQryResponse) XXX_Merge(src proto.Message)
func (*RoleQryResponse) XXX_Size ¶
func (m *RoleQryResponse) XXX_Size() int
func (*RoleQryResponse) XXX_Unmarshal ¶
func (m *RoleQryResponse) XXX_Unmarshal(b []byte) error
type RoleSrvClient ¶
type RoleSrvClient interface { Add(ctx context.Context, in *RoleAddRequest, opts ...grpc.CallOption) (*RoleAddResponse, error) Del(ctx context.Context, in *RoleDelRequest, opts ...grpc.CallOption) (*RoleDelResponse, error) Mod(ctx context.Context, in *RoleModRequest, opts ...grpc.CallOption) (*RoleModResponse, error) Qry(ctx context.Context, in *RoleQryRequest, opts ...grpc.CallOption) (*RoleQryResponse, error) Close() error }
RoleSrvClient is the client API for RoleSrv service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAnkrRoleSrvClient ¶
func NewAnkrRoleSrvClient(addr string) (RoleSrvClient, error)
new client method
func NewRoleSrvClient ¶
func NewRoleSrvClient(cc *grpc.ClientConn) RoleSrvClient
origin client method
type RoleSrvServer ¶
type RoleSrvServer interface { Add(context.Context, *RoleAddRequest) (*RoleAddResponse, error) Del(context.Context, *RoleDelRequest) (*RoleDelResponse, error) Mod(context.Context, *RoleModRequest) (*RoleModResponse, error) Qry(context.Context, *RoleQryRequest) (*RoleQryResponse, error) }
RoleSrvServer is the server API for RoleSrv service.
type UnimplementedInternalRoleServer ¶
type UnimplementedInternalRoleServer struct { }
UnimplementedInternalRoleServer can be embedded to have forward compatible implementations.
func (*UnimplementedInternalRoleServer) Authorize ¶
func (*UnimplementedInternalRoleServer) Authorize(ctx context.Context, req *AuthorizeRequest) (*AuthorizeResponse, error)
type UnimplementedResourceSrvServer ¶
type UnimplementedResourceSrvServer struct { }
UnimplementedResourceSrvServer can be embedded to have forward compatible implementations.
func (*UnimplementedResourceSrvServer) Add ¶
func (*UnimplementedResourceSrvServer) Add(ctx context.Context, req *ResourceAddRequest) (*ResourceAddResponse, error)
func (*UnimplementedResourceSrvServer) Del ¶
func (*UnimplementedResourceSrvServer) Del(ctx context.Context, req *ResourceDelRequest) (*ResourceDelResponse, error)
func (*UnimplementedResourceSrvServer) Mod ¶
func (*UnimplementedResourceSrvServer) Mod(ctx context.Context, req *ResourceModRequest) (*ResourceModResponse, error)
func (*UnimplementedResourceSrvServer) Qry ¶
func (*UnimplementedResourceSrvServer) Qry(ctx context.Context, req *ResourceQryRequest) (*ResourceQryResponse, error)
type UnimplementedRoleBindingResourceSrvServer ¶
type UnimplementedRoleBindingResourceSrvServer struct { }
UnimplementedRoleBindingResourceSrvServer can be embedded to have forward compatible implementations.
func (*UnimplementedRoleBindingResourceSrvServer) Add ¶
func (*UnimplementedRoleBindingResourceSrvServer) Add(ctx context.Context, req *RoleBindingResourceAddRequest) (*RoleBindingResourceAddResponse, error)
func (*UnimplementedRoleBindingResourceSrvServer) Del ¶
func (*UnimplementedRoleBindingResourceSrvServer) Del(ctx context.Context, req *RoleBindingResourceDelRequest) (*RoleBindingResourceDelResponse, error)
func (*UnimplementedRoleBindingResourceSrvServer) List ¶
func (*UnimplementedRoleBindingResourceSrvServer) List(ctx context.Context, req *RoleBindingResourceListRequest) (*RoleBindingResourceListResponse, error)
func (*UnimplementedRoleBindingResourceSrvServer) Mod ¶
func (*UnimplementedRoleBindingResourceSrvServer) Mod(ctx context.Context, req *RoleBindingResourceModRequest) (*RoleBindingResourceModResponse, error)
func (*UnimplementedRoleBindingResourceSrvServer) Qry ¶
func (*UnimplementedRoleBindingResourceSrvServer) Qry(ctx context.Context, req *RoleBindingResourceQryRequest) (*RoleBindingResourceQryResponse, error)
type UnimplementedRoleSrvServer ¶
type UnimplementedRoleSrvServer struct { }
UnimplementedRoleSrvServer can be embedded to have forward compatible implementations.
func (*UnimplementedRoleSrvServer) Add ¶
func (*UnimplementedRoleSrvServer) Add(ctx context.Context, req *RoleAddRequest) (*RoleAddResponse, error)
func (*UnimplementedRoleSrvServer) Del ¶
func (*UnimplementedRoleSrvServer) Del(ctx context.Context, req *RoleDelRequest) (*RoleDelResponse, error)
func (*UnimplementedRoleSrvServer) Mod ¶
func (*UnimplementedRoleSrvServer) Mod(ctx context.Context, req *RoleModRequest) (*RoleModResponse, error)
func (*UnimplementedRoleSrvServer) Qry ¶
func (*UnimplementedRoleSrvServer) Qry(ctx context.Context, req *RoleQryRequest) (*RoleQryResponse, error)
type UnimplementedUserSrvServer ¶
type UnimplementedUserSrvServer struct { }
UnimplementedUserSrvServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserSrvServer) Add ¶
func (*UnimplementedUserSrvServer) Add(ctx context.Context, req *UserAddRequest) (*UserAddResponse, error)
func (*UnimplementedUserSrvServer) Del ¶
func (*UnimplementedUserSrvServer) Del(ctx context.Context, req *UserDelRequest) (*UserDelResponse, error)
func (*UnimplementedUserSrvServer) List ¶
func (*UnimplementedUserSrvServer) List(ctx context.Context, req *UserListRequest) (*UserListResponse, error)
func (*UnimplementedUserSrvServer) Mod ¶
func (*UnimplementedUserSrvServer) Mod(ctx context.Context, req *UserModRequest) (*UserModResponse, error)
func (*UnimplementedUserSrvServer) Qry ¶
func (*UnimplementedUserSrvServer) Qry(ctx context.Context, req *UserQryRequest) (*UserQryResponse, error)
type User ¶
type User struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` Status int64 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*User) Descriptor ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type UserAddRequest ¶
type UserAddRequest struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserAddRequest) Descriptor ¶
func (*UserAddRequest) Descriptor() ([]byte, []int)
func (*UserAddRequest) GetRole ¶
func (m *UserAddRequest) GetRole() string
func (*UserAddRequest) GetType ¶
func (m *UserAddRequest) GetType() string
func (*UserAddRequest) GetUser ¶
func (m *UserAddRequest) GetUser() string
func (*UserAddRequest) ProtoMessage ¶
func (*UserAddRequest) ProtoMessage()
func (*UserAddRequest) Reset ¶
func (m *UserAddRequest) Reset()
func (*UserAddRequest) String ¶
func (m *UserAddRequest) String() string
func (*UserAddRequest) XXX_DiscardUnknown ¶
func (m *UserAddRequest) XXX_DiscardUnknown()
func (*UserAddRequest) XXX_Marshal ¶
func (m *UserAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserAddRequest) XXX_Merge ¶
func (m *UserAddRequest) XXX_Merge(src proto.Message)
func (*UserAddRequest) XXX_Size ¶
func (m *UserAddRequest) XXX_Size() int
func (*UserAddRequest) XXX_Unmarshal ¶
func (m *UserAddRequest) XXX_Unmarshal(b []byte) error
type UserAddResponse ¶
type UserAddResponse struct { Rsp *Response `protobuf:"bytes,1,opt,name=rsp,proto3" json:"rsp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserAddResponse) Descriptor ¶
func (*UserAddResponse) Descriptor() ([]byte, []int)
func (*UserAddResponse) GetRsp ¶
func (m *UserAddResponse) GetRsp() *Response
func (*UserAddResponse) ProtoMessage ¶
func (*UserAddResponse) ProtoMessage()
func (*UserAddResponse) Reset ¶
func (m *UserAddResponse) Reset()
func (*UserAddResponse) String ¶
func (m *UserAddResponse) String() string
func (*UserAddResponse) XXX_DiscardUnknown ¶
func (m *UserAddResponse) XXX_DiscardUnknown()
func (*UserAddResponse) XXX_Marshal ¶
func (m *UserAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserAddResponse) XXX_Merge ¶
func (m *UserAddResponse) XXX_Merge(src proto.Message)
func (*UserAddResponse) XXX_Size ¶
func (m *UserAddResponse) XXX_Size() int
func (*UserAddResponse) XXX_Unmarshal ¶
func (m *UserAddResponse) XXX_Unmarshal(b []byte) error
type UserDelRequest ¶
type UserDelRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserDelRequest) Descriptor ¶
func (*UserDelRequest) Descriptor() ([]byte, []int)
func (*UserDelRequest) GetId ¶
func (m *UserDelRequest) GetId() int64
func (*UserDelRequest) ProtoMessage ¶
func (*UserDelRequest) ProtoMessage()
func (*UserDelRequest) Reset ¶
func (m *UserDelRequest) Reset()
func (*UserDelRequest) String ¶
func (m *UserDelRequest) String() string
func (*UserDelRequest) XXX_DiscardUnknown ¶
func (m *UserDelRequest) XXX_DiscardUnknown()
func (*UserDelRequest) XXX_Marshal ¶
func (m *UserDelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserDelRequest) XXX_Merge ¶
func (m *UserDelRequest) XXX_Merge(src proto.Message)
func (*UserDelRequest) XXX_Size ¶
func (m *UserDelRequest) XXX_Size() int
func (*UserDelRequest) XXX_Unmarshal ¶
func (m *UserDelRequest) XXX_Unmarshal(b []byte) error
type UserDelResponse ¶
type UserDelResponse struct { Rsp *Response `protobuf:"bytes,1,opt,name=rsp,proto3" json:"rsp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserDelResponse) Descriptor ¶
func (*UserDelResponse) Descriptor() ([]byte, []int)
func (*UserDelResponse) GetRsp ¶
func (m *UserDelResponse) GetRsp() *Response
func (*UserDelResponse) ProtoMessage ¶
func (*UserDelResponse) ProtoMessage()
func (*UserDelResponse) Reset ¶
func (m *UserDelResponse) Reset()
func (*UserDelResponse) String ¶
func (m *UserDelResponse) String() string
func (*UserDelResponse) XXX_DiscardUnknown ¶
func (m *UserDelResponse) XXX_DiscardUnknown()
func (*UserDelResponse) XXX_Marshal ¶
func (m *UserDelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserDelResponse) XXX_Merge ¶
func (m *UserDelResponse) XXX_Merge(src proto.Message)
func (*UserDelResponse) XXX_Size ¶
func (m *UserDelResponse) XXX_Size() int
func (*UserDelResponse) XXX_Unmarshal ¶
func (m *UserDelResponse) XXX_Unmarshal(b []byte) error
type UserListRequest ¶
type UserListRequest struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserListRequest) Descriptor ¶
func (*UserListRequest) Descriptor() ([]byte, []int)
func (*UserListRequest) GetType ¶
func (m *UserListRequest) GetType() string
func (*UserListRequest) ProtoMessage ¶
func (*UserListRequest) ProtoMessage()
func (*UserListRequest) Reset ¶
func (m *UserListRequest) Reset()
func (*UserListRequest) String ¶
func (m *UserListRequest) String() string
func (*UserListRequest) XXX_DiscardUnknown ¶
func (m *UserListRequest) XXX_DiscardUnknown()
func (*UserListRequest) XXX_Marshal ¶
func (m *UserListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserListRequest) XXX_Merge ¶
func (m *UserListRequest) XXX_Merge(src proto.Message)
func (*UserListRequest) XXX_Size ¶
func (m *UserListRequest) XXX_Size() int
func (*UserListRequest) XXX_Unmarshal ¶
func (m *UserListRequest) XXX_Unmarshal(b []byte) error
type UserListResponse ¶
type UserListResponse struct { Rsp *Response `protobuf:"bytes,1,opt,name=rsp,proto3" json:"rsp,omitempty"` Data []*User `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserListResponse) Descriptor ¶
func (*UserListResponse) Descriptor() ([]byte, []int)
func (*UserListResponse) GetData ¶
func (m *UserListResponse) GetData() []*User
func (*UserListResponse) GetRsp ¶
func (m *UserListResponse) GetRsp() *Response
func (*UserListResponse) ProtoMessage ¶
func (*UserListResponse) ProtoMessage()
func (*UserListResponse) Reset ¶
func (m *UserListResponse) Reset()
func (*UserListResponse) String ¶
func (m *UserListResponse) String() string
func (*UserListResponse) XXX_DiscardUnknown ¶
func (m *UserListResponse) XXX_DiscardUnknown()
func (*UserListResponse) XXX_Marshal ¶
func (m *UserListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserListResponse) XXX_Merge ¶
func (m *UserListResponse) XXX_Merge(src proto.Message)
func (*UserListResponse) XXX_Size ¶
func (m *UserListResponse) XXX_Size() int
func (*UserListResponse) XXX_Unmarshal ¶
func (m *UserListResponse) XXX_Unmarshal(b []byte) error
type UserModRequest ¶
type UserModRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserModRequest) Descriptor ¶
func (*UserModRequest) Descriptor() ([]byte, []int)
func (*UserModRequest) GetUser ¶
func (m *UserModRequest) GetUser() *User
func (*UserModRequest) ProtoMessage ¶
func (*UserModRequest) ProtoMessage()
func (*UserModRequest) Reset ¶
func (m *UserModRequest) Reset()
func (*UserModRequest) String ¶
func (m *UserModRequest) String() string
func (*UserModRequest) XXX_DiscardUnknown ¶
func (m *UserModRequest) XXX_DiscardUnknown()
func (*UserModRequest) XXX_Marshal ¶
func (m *UserModRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserModRequest) XXX_Merge ¶
func (m *UserModRequest) XXX_Merge(src proto.Message)
func (*UserModRequest) XXX_Size ¶
func (m *UserModRequest) XXX_Size() int
func (*UserModRequest) XXX_Unmarshal ¶
func (m *UserModRequest) XXX_Unmarshal(b []byte) error
type UserModResponse ¶
type UserModResponse struct { Rsp *Response `protobuf:"bytes,1,opt,name=rsp,proto3" json:"rsp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserModResponse) Descriptor ¶
func (*UserModResponse) Descriptor() ([]byte, []int)
func (*UserModResponse) GetRsp ¶
func (m *UserModResponse) GetRsp() *Response
func (*UserModResponse) ProtoMessage ¶
func (*UserModResponse) ProtoMessage()
func (*UserModResponse) Reset ¶
func (m *UserModResponse) Reset()
func (*UserModResponse) String ¶
func (m *UserModResponse) String() string
func (*UserModResponse) XXX_DiscardUnknown ¶
func (m *UserModResponse) XXX_DiscardUnknown()
func (*UserModResponse) XXX_Marshal ¶
func (m *UserModResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserModResponse) XXX_Merge ¶
func (m *UserModResponse) XXX_Merge(src proto.Message)
func (*UserModResponse) XXX_Size ¶
func (m *UserModResponse) XXX_Size() int
func (*UserModResponse) XXX_Unmarshal ¶
func (m *UserModResponse) XXX_Unmarshal(b []byte) error
type UserQryRequest ¶
type UserQryRequest struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` Num int64 `protobuf:"varint,2,opt,name=num,proto3" json:"num,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserQryRequest) Descriptor ¶
func (*UserQryRequest) Descriptor() ([]byte, []int)
func (*UserQryRequest) GetNum ¶
func (m *UserQryRequest) GetNum() int64
func (*UserQryRequest) GetPage ¶
func (m *UserQryRequest) GetPage() int64
func (*UserQryRequest) GetType ¶
func (m *UserQryRequest) GetType() string
func (*UserQryRequest) ProtoMessage ¶
func (*UserQryRequest) ProtoMessage()
func (*UserQryRequest) Reset ¶
func (m *UserQryRequest) Reset()
func (*UserQryRequest) String ¶
func (m *UserQryRequest) String() string
func (*UserQryRequest) XXX_DiscardUnknown ¶
func (m *UserQryRequest) XXX_DiscardUnknown()
func (*UserQryRequest) XXX_Marshal ¶
func (m *UserQryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserQryRequest) XXX_Merge ¶
func (m *UserQryRequest) XXX_Merge(src proto.Message)
func (*UserQryRequest) XXX_Size ¶
func (m *UserQryRequest) XXX_Size() int
func (*UserQryRequest) XXX_Unmarshal ¶
func (m *UserQryRequest) XXX_Unmarshal(b []byte) error
type UserQryResponse ¶
type UserQryResponse struct { Rsp *Response `protobuf:"bytes,1,opt,name=rsp,proto3" json:"rsp,omitempty"` Data []*User `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserQryResponse) Descriptor ¶
func (*UserQryResponse) Descriptor() ([]byte, []int)
func (*UserQryResponse) GetData ¶
func (m *UserQryResponse) GetData() []*User
func (*UserQryResponse) GetRsp ¶
func (m *UserQryResponse) GetRsp() *Response
func (*UserQryResponse) GetTotal ¶
func (m *UserQryResponse) GetTotal() int64
func (*UserQryResponse) ProtoMessage ¶
func (*UserQryResponse) ProtoMessage()
func (*UserQryResponse) Reset ¶
func (m *UserQryResponse) Reset()
func (*UserQryResponse) String ¶
func (m *UserQryResponse) String() string
func (*UserQryResponse) XXX_DiscardUnknown ¶
func (m *UserQryResponse) XXX_DiscardUnknown()
func (*UserQryResponse) XXX_Marshal ¶
func (m *UserQryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserQryResponse) XXX_Merge ¶
func (m *UserQryResponse) XXX_Merge(src proto.Message)
func (*UserQryResponse) XXX_Size ¶
func (m *UserQryResponse) XXX_Size() int
func (*UserQryResponse) XXX_Unmarshal ¶
func (m *UserQryResponse) XXX_Unmarshal(b []byte) error
type UserSrvClient ¶
type UserSrvClient interface { Add(ctx context.Context, in *UserAddRequest, opts ...grpc.CallOption) (*UserAddResponse, error) Del(ctx context.Context, in *UserDelRequest, opts ...grpc.CallOption) (*UserDelResponse, error) Mod(ctx context.Context, in *UserModRequest, opts ...grpc.CallOption) (*UserModResponse, error) Qry(ctx context.Context, in *UserQryRequest, opts ...grpc.CallOption) (*UserQryResponse, error) List(ctx context.Context, in *UserListRequest, opts ...grpc.CallOption) (*UserListResponse, error) Close() error }
UserSrvClient is the client API for UserSrv service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAnkrUserSrvClient ¶
func NewAnkrUserSrvClient(addr string) (UserSrvClient, error)
new client method
func NewUserSrvClient ¶
func NewUserSrvClient(cc *grpc.ClientConn) UserSrvClient
origin client method
type UserSrvServer ¶
type UserSrvServer interface { Add(context.Context, *UserAddRequest) (*UserAddResponse, error) Del(context.Context, *UserDelRequest) (*UserDelResponse, error) Mod(context.Context, *UserModRequest) (*UserModResponse, error) Qry(context.Context, *UserQryRequest) (*UserQryResponse, error) List(context.Context, *UserListRequest) (*UserListResponse, error) }
UserSrvServer is the server API for UserSrv service.