Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAuthRServer(s grpc.ServiceRegistrar, srv AuthRServer)
- type AuthRClient
- type AuthRRequest
- func (*AuthRRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRRequest) GetRequest() *RbacRequest
- func (x *AuthRRequest) GetUserName() string
- func (*AuthRRequest) ProtoMessage()
- func (x *AuthRRequest) ProtoReflect() protoreflect.Message
- func (x *AuthRRequest) Reset()
- func (x *AuthRRequest) String() string
- type AuthRResponse
- type AuthRServer
- type Permission
- func (*Permission) Descriptor() ([]byte, []int)deprecated
- func (x *Permission) GetApiGroup() string
- func (x *Permission) GetResource() string
- func (x *Permission) GetVerb() string
- func (*Permission) ProtoMessage()
- func (x *Permission) ProtoReflect() protoreflect.Message
- func (x *Permission) Reset()
- func (x *Permission) String() string
- type RbacRequest
- func (*RbacRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RbacRequest) GetOperator() string
- func (x *RbacRequest) GetPermissions() []*Permission
- func (*RbacRequest) ProtoMessage()
- func (x *RbacRequest) ProtoReflect() protoreflect.Message
- func (x *RbacRequest) Reset()
- func (x *RbacRequest) String() string
- type UnimplementedAuthRServer
- type UnsafeAuthRServer
Constants ¶
const (
AuthR_AuthR_FullMethodName = "/authr.AuthR/AuthR"
)
Variables ¶
var AuthR_ServiceDesc = grpc.ServiceDesc{ ServiceName: "authr.AuthR", HandlerType: (*AuthRServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AuthR", Handler: _AuthR_AuthR_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "authr/authr.proto", }
AuthR_ServiceDesc is the grpc.ServiceDesc for AuthR service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_authr_authr_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthRServer ¶
func RegisterAuthRServer(s grpc.ServiceRegistrar, srv AuthRServer)
Types ¶
type AuthRClient ¶
type AuthRClient interface {
AuthR(ctx context.Context, in *AuthRRequest, opts ...grpc.CallOption) (*AuthRResponse, error)
}
AuthRClient is the client API for AuthR service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthRClient ¶
func NewAuthRClient(cc grpc.ClientConnInterface) AuthRClient
type AuthRRequest ¶
type AuthRRequest struct { UserName string `protobuf:"bytes,1,opt,name=userName,proto3" json:"userName,omitempty"` Request *RbacRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` // contains filtered or unexported fields }
func (*AuthRRequest) Descriptor
deprecated
func (*AuthRRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthRRequest.ProtoReflect.Descriptor instead.
func (*AuthRRequest) GetRequest ¶
func (x *AuthRRequest) GetRequest() *RbacRequest
func (*AuthRRequest) GetUserName ¶
func (x *AuthRRequest) GetUserName() string
func (*AuthRRequest) ProtoMessage ¶
func (*AuthRRequest) ProtoMessage()
func (*AuthRRequest) ProtoReflect ¶
func (x *AuthRRequest) ProtoReflect() protoreflect.Message
func (*AuthRRequest) Reset ¶
func (x *AuthRRequest) Reset()
func (*AuthRRequest) String ¶
func (x *AuthRRequest) String() string
type AuthRResponse ¶
type AuthRResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*AuthRResponse) Descriptor
deprecated
func (*AuthRResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthRResponse.ProtoReflect.Descriptor instead.
func (*AuthRResponse) GetSuccess ¶
func (x *AuthRResponse) GetSuccess() bool
func (*AuthRResponse) ProtoMessage ¶
func (*AuthRResponse) ProtoMessage()
func (*AuthRResponse) ProtoReflect ¶
func (x *AuthRResponse) ProtoReflect() protoreflect.Message
func (*AuthRResponse) Reset ¶
func (x *AuthRResponse) Reset()
func (*AuthRResponse) String ¶
func (x *AuthRResponse) String() string
type AuthRServer ¶
type AuthRServer interface { AuthR(context.Context, *AuthRRequest) (*AuthRResponse, error) // contains filtered or unexported methods }
AuthRServer is the server API for AuthR service. All implementations must embed UnimplementedAuthRServer for forward compatibility
type Permission ¶
type Permission struct { ApiGroup string `protobuf:"bytes,1,opt,name=apiGroup,proto3" json:"apiGroup,omitempty"` Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` Verb string `protobuf:"bytes,3,opt,name=verb,proto3" json:"verb,omitempty"` // contains filtered or unexported fields }
func (*Permission) Descriptor
deprecated
func (*Permission) Descriptor() ([]byte, []int)
Deprecated: Use Permission.ProtoReflect.Descriptor instead.
func (*Permission) GetApiGroup ¶
func (x *Permission) GetApiGroup() string
func (*Permission) GetResource ¶
func (x *Permission) GetResource() string
func (*Permission) GetVerb ¶
func (x *Permission) GetVerb() string
func (*Permission) ProtoMessage ¶
func (*Permission) ProtoMessage()
func (*Permission) ProtoReflect ¶
func (x *Permission) ProtoReflect() protoreflect.Message
func (*Permission) Reset ¶
func (x *Permission) Reset()
func (*Permission) String ¶
func (x *Permission) String() string
type RbacRequest ¶
type RbacRequest struct { Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"` Permissions []*Permission `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"` // contains filtered or unexported fields }
func (*RbacRequest) Descriptor
deprecated
func (*RbacRequest) Descriptor() ([]byte, []int)
Deprecated: Use RbacRequest.ProtoReflect.Descriptor instead.
func (*RbacRequest) GetOperator ¶
func (x *RbacRequest) GetOperator() string
func (*RbacRequest) GetPermissions ¶
func (x *RbacRequest) GetPermissions() []*Permission
func (*RbacRequest) ProtoMessage ¶
func (*RbacRequest) ProtoMessage()
func (*RbacRequest) ProtoReflect ¶
func (x *RbacRequest) ProtoReflect() protoreflect.Message
func (*RbacRequest) Reset ¶
func (x *RbacRequest) Reset()
func (*RbacRequest) String ¶
func (x *RbacRequest) String() string
type UnimplementedAuthRServer ¶
type UnimplementedAuthRServer struct { }
UnimplementedAuthRServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthRServer) AuthR ¶
func (UnimplementedAuthRServer) AuthR(context.Context, *AuthRRequest) (*AuthRResponse, error)
type UnsafeAuthRServer ¶
type UnsafeAuthRServer interface {
// contains filtered or unexported methods
}
UnsafeAuthRServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthRServer will result in compilation errors.