Files
EdgeCommon/pkg/rpc/pb/service_node_grant.pb.go

1562 lines
58 KiB
Go
Raw Normal View History

2020-09-13 19:27:47 +08:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.12.3
// source: service_node_grant.proto
package pb
import (
context "context"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// 创建节点认证
type CreateNodeGrantRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
PrivateKey string `protobuf:"bytes,5,opt,name=privateKey,proto3" json:"privateKey,omitempty"`
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
NodeId int64 `protobuf:"varint,7,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
}
func (x *CreateNodeGrantRequest) Reset() {
*x = CreateNodeGrantRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_grant_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateNodeGrantRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateNodeGrantRequest) ProtoMessage() {}
func (x *CreateNodeGrantRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_node_grant_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateNodeGrantRequest.ProtoReflect.Descriptor instead.
func (*CreateNodeGrantRequest) Descriptor() ([]byte, []int) {
return file_service_node_grant_proto_rawDescGZIP(), []int{0}
}
func (x *CreateNodeGrantRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *CreateNodeGrantRequest) GetMethod() string {
if x != nil {
return x.Method
}
return ""
}
func (x *CreateNodeGrantRequest) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *CreateNodeGrantRequest) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
func (x *CreateNodeGrantRequest) GetPrivateKey() string {
if x != nil {
return x.PrivateKey
}
return ""
}
func (x *CreateNodeGrantRequest) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *CreateNodeGrantRequest) GetNodeId() int64 {
if x != nil {
return x.NodeId
}
return 0
}
type CreateNodeGrantResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2021-04-18 21:19:14 +08:00
NodeGrantId int64 `protobuf:"varint,1,opt,name=nodeGrantId,proto3" json:"nodeGrantId,omitempty"`
2020-09-13 19:27:47 +08:00
}
func (x *CreateNodeGrantResponse) Reset() {
*x = CreateNodeGrantResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_grant_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateNodeGrantResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateNodeGrantResponse) ProtoMessage() {}
func (x *CreateNodeGrantResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_node_grant_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateNodeGrantResponse.ProtoReflect.Descriptor instead.
func (*CreateNodeGrantResponse) Descriptor() ([]byte, []int) {
return file_service_node_grant_proto_rawDescGZIP(), []int{1}
}
2021-04-18 21:19:14 +08:00
func (x *CreateNodeGrantResponse) GetNodeGrantId() int64 {
2020-09-13 19:27:47 +08:00
if x != nil {
2021-04-18 21:19:14 +08:00
return x.NodeGrantId
2020-09-13 19:27:47 +08:00
}
return 0
}
// 修改节点认证
type UpdateNodeGrantRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2021-04-18 21:19:14 +08:00
NodeGrantId int64 `protobuf:"varint,8,opt,name=nodeGrantId,proto3" json:"nodeGrantId,omitempty"`
2020-09-13 19:27:47 +08:00
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
PrivateKey string `protobuf:"bytes,5,opt,name=privateKey,proto3" json:"privateKey,omitempty"`
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
NodeId int64 `protobuf:"varint,7,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
}
func (x *UpdateNodeGrantRequest) Reset() {
*x = UpdateNodeGrantRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_grant_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateNodeGrantRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateNodeGrantRequest) ProtoMessage() {}
func (x *UpdateNodeGrantRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_node_grant_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateNodeGrantRequest.ProtoReflect.Descriptor instead.
func (*UpdateNodeGrantRequest) Descriptor() ([]byte, []int) {
return file_service_node_grant_proto_rawDescGZIP(), []int{2}
}
2021-04-18 21:19:14 +08:00
func (x *UpdateNodeGrantRequest) GetNodeGrantId() int64 {
2020-09-13 19:27:47 +08:00
if x != nil {
2021-04-18 21:19:14 +08:00
return x.NodeGrantId
2020-09-13 19:27:47 +08:00
}
return 0
}
func (x *UpdateNodeGrantRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *UpdateNodeGrantRequest) GetMethod() string {
if x != nil {
return x.Method
}
return ""
}
func (x *UpdateNodeGrantRequest) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *UpdateNodeGrantRequest) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
func (x *UpdateNodeGrantRequest) GetPrivateKey() string {
if x != nil {
return x.PrivateKey
}
return ""
}
func (x *UpdateNodeGrantRequest) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *UpdateNodeGrantRequest) GetNodeId() int64 {
if x != nil {
return x.NodeId
}
return 0
}
// 禁用节点认证
type DisableNodeGrantRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2021-04-18 21:19:14 +08:00
NodeGrantId int64 `protobuf:"varint,1,opt,name=nodeGrantId,proto3" json:"nodeGrantId,omitempty"`
2020-09-13 19:27:47 +08:00
}
func (x *DisableNodeGrantRequest) Reset() {
*x = DisableNodeGrantRequest{}
if protoimpl.UnsafeEnabled {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_grant_proto_msgTypes[3]
2020-09-13 19:27:47 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DisableNodeGrantRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DisableNodeGrantRequest) ProtoMessage() {}
func (x *DisableNodeGrantRequest) ProtoReflect() protoreflect.Message {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_grant_proto_msgTypes[3]
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DisableNodeGrantRequest.ProtoReflect.Descriptor instead.
func (*DisableNodeGrantRequest) Descriptor() ([]byte, []int) {
2020-09-17 10:15:55 +08:00
return file_service_node_grant_proto_rawDescGZIP(), []int{3}
2020-09-13 19:27:47 +08:00
}
2021-04-18 21:19:14 +08:00
func (x *DisableNodeGrantRequest) GetNodeGrantId() int64 {
2020-09-13 19:27:47 +08:00
if x != nil {
2021-04-18 21:19:14 +08:00
return x.NodeGrantId
2020-09-13 19:27:47 +08:00
}
return 0
}
type DisableNodeGrantResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *DisableNodeGrantResponse) Reset() {
*x = DisableNodeGrantResponse{}
if protoimpl.UnsafeEnabled {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_grant_proto_msgTypes[4]
2020-09-13 19:27:47 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DisableNodeGrantResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DisableNodeGrantResponse) ProtoMessage() {}
func (x *DisableNodeGrantResponse) ProtoReflect() protoreflect.Message {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_grant_proto_msgTypes[4]
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DisableNodeGrantResponse.ProtoReflect.Descriptor instead.
func (*DisableNodeGrantResponse) Descriptor() ([]byte, []int) {
2020-09-17 10:15:55 +08:00
return file_service_node_grant_proto_rawDescGZIP(), []int{4}
2020-09-13 19:27:47 +08:00
}
// 计算节点认证数量
type CountAllEnabledNodeGrantsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2021-05-23 21:13:30 +08:00
Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"`
2020-09-13 19:27:47 +08:00
}
func (x *CountAllEnabledNodeGrantsRequest) Reset() {
*x = CountAllEnabledNodeGrantsRequest{}
if protoimpl.UnsafeEnabled {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_grant_proto_msgTypes[5]
2020-09-13 19:27:47 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CountAllEnabledNodeGrantsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CountAllEnabledNodeGrantsRequest) ProtoMessage() {}
func (x *CountAllEnabledNodeGrantsRequest) ProtoReflect() protoreflect.Message {
2020-09-17 10:15:55 +08:00
mi := &file_service_node_grant_proto_msgTypes[5]
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CountAllEnabledNodeGrantsRequest.ProtoReflect.Descriptor instead.
func (*CountAllEnabledNodeGrantsRequest) Descriptor() ([]byte, []int) {
2020-09-17 10:15:55 +08:00
return file_service_node_grant_proto_rawDescGZIP(), []int{5}
2020-09-13 19:27:47 +08:00
}
2021-05-23 21:13:30 +08:00
func (x *CountAllEnabledNodeGrantsRequest) GetKeyword() string {
if x != nil {
return x.Keyword
}
return ""
}
2020-09-13 19:27:47 +08:00
// 列出单页认证
type ListEnabledNodeGrantsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2021-05-23 21:13:30 +08:00
Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"`
Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
2020-09-13 19:27:47 +08:00
}
func (x *ListEnabledNodeGrantsRequest) Reset() {
*x = ListEnabledNodeGrantsRequest{}
if protoimpl.UnsafeEnabled {
2020-11-12 14:41:23 +08:00
mi := &file_service_node_grant_proto_msgTypes[6]
2020-09-13 19:27:47 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListEnabledNodeGrantsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListEnabledNodeGrantsRequest) ProtoMessage() {}
func (x *ListEnabledNodeGrantsRequest) ProtoReflect() protoreflect.Message {
2020-11-12 14:41:23 +08:00
mi := &file_service_node_grant_proto_msgTypes[6]
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListEnabledNodeGrantsRequest.ProtoReflect.Descriptor instead.
func (*ListEnabledNodeGrantsRequest) Descriptor() ([]byte, []int) {
2020-11-12 14:41:23 +08:00
return file_service_node_grant_proto_rawDescGZIP(), []int{6}
2020-09-13 19:27:47 +08:00
}
2021-05-23 21:13:30 +08:00
func (x *ListEnabledNodeGrantsRequest) GetKeyword() string {
if x != nil {
return x.Keyword
}
return ""
}
2020-09-13 19:27:47 +08:00
func (x *ListEnabledNodeGrantsRequest) GetOffset() int64 {
if x != nil {
return x.Offset
}
return 0
}
func (x *ListEnabledNodeGrantsRequest) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
type ListEnabledNodeGrantsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2021-04-18 21:19:14 +08:00
NodeGrants []*NodeGrant `protobuf:"bytes,1,rep,name=nodeGrants,proto3" json:"nodeGrants,omitempty"`
2020-09-13 19:27:47 +08:00
}
func (x *ListEnabledNodeGrantsResponse) Reset() {
*x = ListEnabledNodeGrantsResponse{}
if protoimpl.UnsafeEnabled {
2020-11-12 14:41:23 +08:00
mi := &file_service_node_grant_proto_msgTypes[7]
2020-09-13 19:27:47 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListEnabledNodeGrantsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListEnabledNodeGrantsResponse) ProtoMessage() {}
func (x *ListEnabledNodeGrantsResponse) ProtoReflect() protoreflect.Message {
2020-11-12 14:41:23 +08:00
mi := &file_service_node_grant_proto_msgTypes[7]
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListEnabledNodeGrantsResponse.ProtoReflect.Descriptor instead.
func (*ListEnabledNodeGrantsResponse) Descriptor() ([]byte, []int) {
2020-11-12 14:41:23 +08:00
return file_service_node_grant_proto_rawDescGZIP(), []int{7}
2020-09-13 19:27:47 +08:00
}
2021-04-18 21:19:14 +08:00
func (x *ListEnabledNodeGrantsResponse) GetNodeGrants() []*NodeGrant {
2020-09-13 19:27:47 +08:00
if x != nil {
2021-04-18 21:19:14 +08:00
return x.NodeGrants
2020-09-13 19:27:47 +08:00
}
return nil
}
// 获取所有认证信息
type FindAllEnabledNodeGrantsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *FindAllEnabledNodeGrantsRequest) Reset() {
*x = FindAllEnabledNodeGrantsRequest{}
if protoimpl.UnsafeEnabled {
2020-11-12 14:41:23 +08:00
mi := &file_service_node_grant_proto_msgTypes[8]
2020-09-13 19:27:47 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllEnabledNodeGrantsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllEnabledNodeGrantsRequest) ProtoMessage() {}
func (x *FindAllEnabledNodeGrantsRequest) ProtoReflect() protoreflect.Message {
2020-11-12 14:41:23 +08:00
mi := &file_service_node_grant_proto_msgTypes[8]
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllEnabledNodeGrantsRequest.ProtoReflect.Descriptor instead.
func (*FindAllEnabledNodeGrantsRequest) Descriptor() ([]byte, []int) {
2020-11-12 14:41:23 +08:00
return file_service_node_grant_proto_rawDescGZIP(), []int{8}
2020-09-13 19:27:47 +08:00
}
type FindAllEnabledNodeGrantsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2021-04-18 21:19:14 +08:00
NodeGrants []*NodeGrant `protobuf:"bytes,1,rep,name=nodeGrants,proto3" json:"nodeGrants,omitempty"`
2020-09-13 19:27:47 +08:00
}
func (x *FindAllEnabledNodeGrantsResponse) Reset() {
*x = FindAllEnabledNodeGrantsResponse{}
if protoimpl.UnsafeEnabled {
2020-11-12 14:41:23 +08:00
mi := &file_service_node_grant_proto_msgTypes[9]
2020-09-13 19:27:47 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllEnabledNodeGrantsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllEnabledNodeGrantsResponse) ProtoMessage() {}
func (x *FindAllEnabledNodeGrantsResponse) ProtoReflect() protoreflect.Message {
2020-11-12 14:41:23 +08:00
mi := &file_service_node_grant_proto_msgTypes[9]
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllEnabledNodeGrantsResponse.ProtoReflect.Descriptor instead.
func (*FindAllEnabledNodeGrantsResponse) Descriptor() ([]byte, []int) {
2020-11-12 14:41:23 +08:00
return file_service_node_grant_proto_rawDescGZIP(), []int{9}
2020-09-13 19:27:47 +08:00
}
2021-04-18 21:19:14 +08:00
func (x *FindAllEnabledNodeGrantsResponse) GetNodeGrants() []*NodeGrant {
2020-09-13 19:27:47 +08:00
if x != nil {
2021-04-18 21:19:14 +08:00
return x.NodeGrants
2020-09-13 19:27:47 +08:00
}
return nil
}
// 获取认证信息
2021-04-18 21:19:14 +08:00
type FindEnabledNodeGrantRequest struct {
2020-09-13 19:27:47 +08:00
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2021-04-18 21:19:14 +08:00
NodeGrantId int64 `protobuf:"varint,1,opt,name=nodeGrantId,proto3" json:"nodeGrantId,omitempty"`
2020-09-13 19:27:47 +08:00
}
2021-04-18 21:19:14 +08:00
func (x *FindEnabledNodeGrantRequest) Reset() {
*x = FindEnabledNodeGrantRequest{}
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled {
2020-11-12 14:41:23 +08:00
mi := &file_service_node_grant_proto_msgTypes[10]
2020-09-13 19:27:47 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
2021-04-18 21:19:14 +08:00
func (x *FindEnabledNodeGrantRequest) String() string {
2020-09-13 19:27:47 +08:00
return protoimpl.X.MessageStringOf(x)
}
2021-04-18 21:19:14 +08:00
func (*FindEnabledNodeGrantRequest) ProtoMessage() {}
2020-09-13 19:27:47 +08:00
2021-04-18 21:19:14 +08:00
func (x *FindEnabledNodeGrantRequest) ProtoReflect() protoreflect.Message {
2020-11-12 14:41:23 +08:00
mi := &file_service_node_grant_proto_msgTypes[10]
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
2021-04-18 21:19:14 +08:00
// Deprecated: Use FindEnabledNodeGrantRequest.ProtoReflect.Descriptor instead.
func (*FindEnabledNodeGrantRequest) Descriptor() ([]byte, []int) {
2020-11-12 14:41:23 +08:00
return file_service_node_grant_proto_rawDescGZIP(), []int{10}
2020-09-13 19:27:47 +08:00
}
2021-04-18 21:19:14 +08:00
func (x *FindEnabledNodeGrantRequest) GetNodeGrantId() int64 {
2020-09-13 19:27:47 +08:00
if x != nil {
2021-04-18 21:19:14 +08:00
return x.NodeGrantId
2020-09-13 19:27:47 +08:00
}
return 0
}
2021-04-18 21:19:14 +08:00
type FindEnabledNodeGrantResponse struct {
2020-09-13 19:27:47 +08:00
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2021-04-18 21:19:14 +08:00
NodeGrant *NodeGrant `protobuf:"bytes,1,opt,name=nodeGrant,proto3" json:"nodeGrant,omitempty"`
2020-09-13 19:27:47 +08:00
}
2021-04-18 21:19:14 +08:00
func (x *FindEnabledNodeGrantResponse) Reset() {
*x = FindEnabledNodeGrantResponse{}
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled {
2020-11-12 14:41:23 +08:00
mi := &file_service_node_grant_proto_msgTypes[11]
2020-09-13 19:27:47 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
2021-04-18 21:19:14 +08:00
func (x *FindEnabledNodeGrantResponse) String() string {
2020-09-13 19:27:47 +08:00
return protoimpl.X.MessageStringOf(x)
}
2021-04-18 21:19:14 +08:00
func (*FindEnabledNodeGrantResponse) ProtoMessage() {}
2020-09-13 19:27:47 +08:00
2021-04-18 21:19:14 +08:00
func (x *FindEnabledNodeGrantResponse) ProtoReflect() protoreflect.Message {
2020-11-12 14:41:23 +08:00
mi := &file_service_node_grant_proto_msgTypes[11]
2020-09-13 19:27:47 +08:00
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
2021-04-18 21:19:14 +08:00
// Deprecated: Use FindEnabledNodeGrantResponse.ProtoReflect.Descriptor instead.
func (*FindEnabledNodeGrantResponse) Descriptor() ([]byte, []int) {
2020-11-12 14:41:23 +08:00
return file_service_node_grant_proto_rawDescGZIP(), []int{11}
2020-09-13 19:27:47 +08:00
}
2021-04-18 21:19:14 +08:00
func (x *FindEnabledNodeGrantResponse) GetNodeGrant() *NodeGrant {
2020-09-13 19:27:47 +08:00
if x != nil {
2021-04-18 21:19:14 +08:00
return x.NodeGrant
2020-09-13 19:27:47 +08:00
}
return nil
}
2021-04-18 21:19:14 +08:00
// 测试连接
type TestNodeGrantRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NodeGrantId int64 `protobuf:"varint,1,opt,name=nodeGrantId,proto3" json:"nodeGrantId,omitempty"`
Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
}
func (x *TestNodeGrantRequest) Reset() {
*x = TestNodeGrantRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_grant_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestNodeGrantRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestNodeGrantRequest) ProtoMessage() {}
func (x *TestNodeGrantRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_node_grant_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestNodeGrantRequest.ProtoReflect.Descriptor instead.
func (*TestNodeGrantRequest) Descriptor() ([]byte, []int) {
return file_service_node_grant_proto_rawDescGZIP(), []int{12}
}
func (x *TestNodeGrantRequest) GetNodeGrantId() int64 {
if x != nil {
return x.NodeGrantId
}
return 0
}
func (x *TestNodeGrantRequest) GetHost() string {
if x != nil {
return x.Host
}
return ""
}
func (x *TestNodeGrantRequest) GetPort() int32 {
if x != nil {
return x.Port
}
return 0
}
type TestNodeGrantResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
IsOk bool `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
}
func (x *TestNodeGrantResponse) Reset() {
*x = TestNodeGrantResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_grant_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestNodeGrantResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestNodeGrantResponse) ProtoMessage() {}
func (x *TestNodeGrantResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_node_grant_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TestNodeGrantResponse.ProtoReflect.Descriptor instead.
func (*TestNodeGrantResponse) Descriptor() ([]byte, []int) {
return file_service_node_grant_proto_rawDescGZIP(), []int{13}
}
func (x *TestNodeGrantResponse) GetIsOk() bool {
if x != nil {
return x.IsOk
}
return false
}
func (x *TestNodeGrantResponse) GetError() string {
if x != nil {
return x.Error
}
return ""
}
2020-09-13 19:27:47 +08:00
var File_service_node_grant_proto protoreflect.FileDescriptor
var file_service_node_grant_proto_rawDesc = []byte{
0x0a, 0x18, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x67,
0x72, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x1d,
0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x6f, 0x64,
0x65, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6d,
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd6, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65,
2020-09-17 10:15:55 +08:00
0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f,
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12,
0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70,
0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70,
0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x61,
0x74, 0x65, 0x4b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x69,
0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65,
0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64,
0x65, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49,
2021-04-18 21:19:14 +08:00
0x64, 0x22, 0x3b, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47,
0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0b,
0x6e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x03, 0x52, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x22, 0xf8,
0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61,
0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x6f, 0x64,
0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b,
0x6e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e,
0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18,
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12,
0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x18, 0x05, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12,
0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28,
2021-04-18 21:19:14 +08:00
0x03, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x3b, 0x0a, 0x17, 0x44, 0x69, 0x73,
0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71,
2021-04-18 21:19:14 +08:00
0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e,
0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x47,
0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x1a, 0x0a, 0x18, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c,
0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
2021-05-23 21:13:30 +08:00
0x73, 0x65, 0x22, 0x3c, 0x0a, 0x20, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e,
2021-04-18 21:19:14 +08:00
0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52,
2021-05-23 21:13:30 +08:00
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64,
0x22, 0x64, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e,
0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66,
0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73,
0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,
0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x4e, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e,
2021-04-18 21:19:14 +08:00
0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52,
2021-05-23 21:13:30 +08:00
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x47,
0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62,
0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x0a, 0x6e, 0x6f, 0x64, 0x65,
0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x22, 0x21, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c,
0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e,
0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x51, 0x0a, 0x20, 0x46, 0x69, 0x6e,
0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47,
0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a,
0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74,
0x52, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x22, 0x3f, 0x0a, 0x1b,
0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47,
0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e,
0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x52, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x4b, 0x0a,
0x1c, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65,
0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a,
0x09, 0x6e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52,
0x09, 0x6e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x60, 0x0a, 0x14, 0x54, 0x65,
0x73, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61,
0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74,
0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x41, 0x0a, 0x15,
0x54, 0x65, 0x73, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6b, 0x18, 0x01, 0x20,
0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72,
0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x32,
0xab, 0x05, 0x0a, 0x10, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x72,
0x76, 0x69, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f,
0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e,
0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x3d, 0x0a, 0x0f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72,
0x61, 0x6e, 0x74, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e,
2021-04-18 21:19:14 +08:00
0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
2021-05-23 21:13:30 +08:00
0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12,
0x4d, 0x0a, 0x10, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72,
0x61, 0x6e, 0x74, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65,
0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64,
0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57,
0x0a, 0x19, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x24, 0x2e, 0x70, 0x62,
0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x15, 0x6c, 0x69, 0x73, 0x74, 0x45,
2021-04-18 21:19:14 +08:00
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73,
2021-05-23 21:13:30 +08:00
0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x18, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
2021-04-18 21:19:14 +08:00
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74,
2021-05-23 21:13:30 +08:00
0x73, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e,
0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72,
0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x14,
0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47,
0x72, 0x61, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e,
0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x74, 0x65, 0x73, 0x74, 0x4e,
0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x65,
0x73, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4e, 0x6f, 0x64, 0x65,
0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a,
0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
2020-09-13 19:27:47 +08:00
}
var (
file_service_node_grant_proto_rawDescOnce sync.Once
file_service_node_grant_proto_rawDescData = file_service_node_grant_proto_rawDesc
)
func file_service_node_grant_proto_rawDescGZIP() []byte {
file_service_node_grant_proto_rawDescOnce.Do(func() {
file_service_node_grant_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_node_grant_proto_rawDescData)
})
return file_service_node_grant_proto_rawDescData
}
2021-04-18 21:19:14 +08:00
var file_service_node_grant_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
2020-09-13 19:27:47 +08:00
var file_service_node_grant_proto_goTypes = []interface{}{
2020-11-12 14:41:23 +08:00
(*CreateNodeGrantRequest)(nil), // 0: pb.CreateNodeGrantRequest
(*CreateNodeGrantResponse)(nil), // 1: pb.CreateNodeGrantResponse
(*UpdateNodeGrantRequest)(nil), // 2: pb.UpdateNodeGrantRequest
(*DisableNodeGrantRequest)(nil), // 3: pb.DisableNodeGrantRequest
(*DisableNodeGrantResponse)(nil), // 4: pb.DisableNodeGrantResponse
(*CountAllEnabledNodeGrantsRequest)(nil), // 5: pb.CountAllEnabledNodeGrantsRequest
(*ListEnabledNodeGrantsRequest)(nil), // 6: pb.ListEnabledNodeGrantsRequest
(*ListEnabledNodeGrantsResponse)(nil), // 7: pb.ListEnabledNodeGrantsResponse
(*FindAllEnabledNodeGrantsRequest)(nil), // 8: pb.FindAllEnabledNodeGrantsRequest
(*FindAllEnabledNodeGrantsResponse)(nil), // 9: pb.FindAllEnabledNodeGrantsResponse
2021-04-18 21:19:14 +08:00
(*FindEnabledNodeGrantRequest)(nil), // 10: pb.FindEnabledNodeGrantRequest
(*FindEnabledNodeGrantResponse)(nil), // 11: pb.FindEnabledNodeGrantResponse
(*TestNodeGrantRequest)(nil), // 12: pb.TestNodeGrantRequest
(*TestNodeGrantResponse)(nil), // 13: pb.TestNodeGrantResponse
(*NodeGrant)(nil), // 14: pb.NodeGrant
(*RPCSuccess)(nil), // 15: pb.RPCSuccess
(*RPCCountResponse)(nil), // 16: pb.RPCCountResponse
2020-09-13 19:27:47 +08:00
}
var file_service_node_grant_proto_depIdxs = []int32{
2021-04-18 21:19:14 +08:00
14, // 0: pb.ListEnabledNodeGrantsResponse.nodeGrants:type_name -> pb.NodeGrant
14, // 1: pb.FindAllEnabledNodeGrantsResponse.nodeGrants:type_name -> pb.NodeGrant
14, // 2: pb.FindEnabledNodeGrantResponse.nodeGrant:type_name -> pb.NodeGrant
2020-09-13 19:27:47 +08:00
0, // 3: pb.NodeGrantService.createNodeGrant:input_type -> pb.CreateNodeGrantRequest
2, // 4: pb.NodeGrantService.updateNodeGrant:input_type -> pb.UpdateNodeGrantRequest
2020-09-17 10:15:55 +08:00
3, // 5: pb.NodeGrantService.disableNodeGrant:input_type -> pb.DisableNodeGrantRequest
5, // 6: pb.NodeGrantService.countAllEnabledNodeGrants:input_type -> pb.CountAllEnabledNodeGrantsRequest
2021-04-18 21:19:14 +08:00
6, // 7: pb.NodeGrantService.listEnabledNodeGrants:input_type -> pb.ListEnabledNodeGrantsRequest
8, // 8: pb.NodeGrantService.findAllEnabledNodeGrants:input_type -> pb.FindAllEnabledNodeGrantsRequest
10, // 9: pb.NodeGrantService.findEnabledNodeGrant:input_type -> pb.FindEnabledNodeGrantRequest
12, // 10: pb.NodeGrantService.testNodeGrant:input_type -> pb.TestNodeGrantRequest
1, // 11: pb.NodeGrantService.createNodeGrant:output_type -> pb.CreateNodeGrantResponse
15, // 12: pb.NodeGrantService.updateNodeGrant:output_type -> pb.RPCSuccess
4, // 13: pb.NodeGrantService.disableNodeGrant:output_type -> pb.DisableNodeGrantResponse
16, // 14: pb.NodeGrantService.countAllEnabledNodeGrants:output_type -> pb.RPCCountResponse
7, // 15: pb.NodeGrantService.listEnabledNodeGrants:output_type -> pb.ListEnabledNodeGrantsResponse
9, // 16: pb.NodeGrantService.findAllEnabledNodeGrants:output_type -> pb.FindAllEnabledNodeGrantsResponse
11, // 17: pb.NodeGrantService.findEnabledNodeGrant:output_type -> pb.FindEnabledNodeGrantResponse
13, // 18: pb.NodeGrantService.testNodeGrant:output_type -> pb.TestNodeGrantResponse
11, // [11:19] is the sub-list for method output_type
3, // [3:11] is the sub-list for method input_type
2020-09-13 19:27:47 +08:00
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_service_node_grant_proto_init() }
func file_service_node_grant_proto_init() {
if File_service_node_grant_proto != nil {
return
}
file_models_model_node_grant_proto_init()
file_models_rpc_messages_proto_init()
2020-09-13 19:27:47 +08:00
if !protoimpl.UnsafeEnabled {
file_service_node_grant_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateNodeGrantRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_node_grant_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateNodeGrantResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_node_grant_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateNodeGrantRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_node_grant_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DisableNodeGrantRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2020-09-17 10:15:55 +08:00
file_service_node_grant_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
2020-09-13 19:27:47 +08:00
switch v := v.(*DisableNodeGrantResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2020-09-17 10:15:55 +08:00
file_service_node_grant_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
2020-09-13 19:27:47 +08:00
switch v := v.(*CountAllEnabledNodeGrantsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2020-09-17 10:15:55 +08:00
file_service_node_grant_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
2020-09-13 19:27:47 +08:00
switch v := v.(*ListEnabledNodeGrantsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2020-11-12 14:41:23 +08:00
file_service_node_grant_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
2020-09-13 19:27:47 +08:00
switch v := v.(*ListEnabledNodeGrantsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2020-11-12 14:41:23 +08:00
file_service_node_grant_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
2020-09-13 19:27:47 +08:00
switch v := v.(*FindAllEnabledNodeGrantsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2020-11-12 14:41:23 +08:00
file_service_node_grant_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
2020-09-13 19:27:47 +08:00
switch v := v.(*FindAllEnabledNodeGrantsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2020-11-12 14:41:23 +08:00
file_service_node_grant_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
2021-04-18 21:19:14 +08:00
switch v := v.(*FindEnabledNodeGrantRequest); i {
2020-09-13 19:27:47 +08:00
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2020-11-12 14:41:23 +08:00
file_service_node_grant_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
2021-04-18 21:19:14 +08:00
switch v := v.(*FindEnabledNodeGrantResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_node_grant_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TestNodeGrantRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_node_grant_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TestNodeGrantResponse); i {
2020-09-13 19:27:47 +08:00
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_node_grant_proto_rawDesc,
NumEnums: 0,
2021-04-18 21:19:14 +08:00
NumMessages: 14,
2020-09-13 19:27:47 +08:00
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_service_node_grant_proto_goTypes,
DependencyIndexes: file_service_node_grant_proto_depIdxs,
MessageInfos: file_service_node_grant_proto_msgTypes,
}.Build()
File_service_node_grant_proto = out.File
file_service_node_grant_proto_rawDesc = nil
file_service_node_grant_proto_goTypes = nil
file_service_node_grant_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// NodeGrantServiceClient is the client API for NodeGrantService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type NodeGrantServiceClient interface {
// 创建认证
CreateNodeGrant(ctx context.Context, in *CreateNodeGrantRequest, opts ...grpc.CallOption) (*CreateNodeGrantResponse, error)
// 修改认证
UpdateNodeGrant(ctx context.Context, in *UpdateNodeGrantRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
2020-09-13 19:27:47 +08:00
// 禁用认证
DisableNodeGrant(ctx context.Context, in *DisableNodeGrantRequest, opts ...grpc.CallOption) (*DisableNodeGrantResponse, error)
// 计算认证的数量
2020-11-12 14:41:23 +08:00
CountAllEnabledNodeGrants(ctx context.Context, in *CountAllEnabledNodeGrantsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
2020-09-13 19:27:47 +08:00
// 列出单页认证
ListEnabledNodeGrants(ctx context.Context, in *ListEnabledNodeGrantsRequest, opts ...grpc.CallOption) (*ListEnabledNodeGrantsResponse, error)
// 列出所有认证
FindAllEnabledNodeGrants(ctx context.Context, in *FindAllEnabledNodeGrantsRequest, opts ...grpc.CallOption) (*FindAllEnabledNodeGrantsResponse, error)
// 获取单个认证信息
2021-04-18 21:19:14 +08:00
FindEnabledNodeGrant(ctx context.Context, in *FindEnabledNodeGrantRequest, opts ...grpc.CallOption) (*FindEnabledNodeGrantResponse, error)
// 测试连接
TestNodeGrant(ctx context.Context, in *TestNodeGrantRequest, opts ...grpc.CallOption) (*TestNodeGrantResponse, error)
2020-09-13 19:27:47 +08:00
}
type nodeGrantServiceClient struct {
cc grpc.ClientConnInterface
}
func NewNodeGrantServiceClient(cc grpc.ClientConnInterface) NodeGrantServiceClient {
return &nodeGrantServiceClient{cc}
}
func (c *nodeGrantServiceClient) CreateNodeGrant(ctx context.Context, in *CreateNodeGrantRequest, opts ...grpc.CallOption) (*CreateNodeGrantResponse, error) {
out := new(CreateNodeGrantResponse)
err := c.cc.Invoke(ctx, "/pb.NodeGrantService/createNodeGrant", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeGrantServiceClient) UpdateNodeGrant(ctx context.Context, in *UpdateNodeGrantRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
2020-09-13 19:27:47 +08:00
err := c.cc.Invoke(ctx, "/pb.NodeGrantService/updateNodeGrant", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeGrantServiceClient) DisableNodeGrant(ctx context.Context, in *DisableNodeGrantRequest, opts ...grpc.CallOption) (*DisableNodeGrantResponse, error) {
out := new(DisableNodeGrantResponse)
err := c.cc.Invoke(ctx, "/pb.NodeGrantService/disableNodeGrant", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
2020-11-12 14:41:23 +08:00
func (c *nodeGrantServiceClient) CountAllEnabledNodeGrants(ctx context.Context, in *CountAllEnabledNodeGrantsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
out := new(RPCCountResponse)
2020-09-13 19:27:47 +08:00
err := c.cc.Invoke(ctx, "/pb.NodeGrantService/countAllEnabledNodeGrants", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeGrantServiceClient) ListEnabledNodeGrants(ctx context.Context, in *ListEnabledNodeGrantsRequest, opts ...grpc.CallOption) (*ListEnabledNodeGrantsResponse, error) {
out := new(ListEnabledNodeGrantsResponse)
2021-04-18 21:19:14 +08:00
err := c.cc.Invoke(ctx, "/pb.NodeGrantService/listEnabledNodeGrants", in, out, opts...)
2020-09-13 19:27:47 +08:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeGrantServiceClient) FindAllEnabledNodeGrants(ctx context.Context, in *FindAllEnabledNodeGrantsRequest, opts ...grpc.CallOption) (*FindAllEnabledNodeGrantsResponse, error) {
out := new(FindAllEnabledNodeGrantsResponse)
2021-04-18 21:19:14 +08:00
err := c.cc.Invoke(ctx, "/pb.NodeGrantService/findAllEnabledNodeGrants", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeGrantServiceClient) FindEnabledNodeGrant(ctx context.Context, in *FindEnabledNodeGrantRequest, opts ...grpc.CallOption) (*FindEnabledNodeGrantResponse, error) {
out := new(FindEnabledNodeGrantResponse)
err := c.cc.Invoke(ctx, "/pb.NodeGrantService/findEnabledNodeGrant", in, out, opts...)
2020-09-13 19:27:47 +08:00
if err != nil {
return nil, err
}
return out, nil
}
2021-04-18 21:19:14 +08:00
func (c *nodeGrantServiceClient) TestNodeGrant(ctx context.Context, in *TestNodeGrantRequest, opts ...grpc.CallOption) (*TestNodeGrantResponse, error) {
out := new(TestNodeGrantResponse)
err := c.cc.Invoke(ctx, "/pb.NodeGrantService/testNodeGrant", in, out, opts...)
2020-09-13 19:27:47 +08:00
if err != nil {
return nil, err
}
return out, nil
}
// NodeGrantServiceServer is the server API for NodeGrantService service.
type NodeGrantServiceServer interface {
// 创建认证
CreateNodeGrant(context.Context, *CreateNodeGrantRequest) (*CreateNodeGrantResponse, error)
// 修改认证
UpdateNodeGrant(context.Context, *UpdateNodeGrantRequest) (*RPCSuccess, error)
2020-09-13 19:27:47 +08:00
// 禁用认证
DisableNodeGrant(context.Context, *DisableNodeGrantRequest) (*DisableNodeGrantResponse, error)
// 计算认证的数量
2020-11-12 14:41:23 +08:00
CountAllEnabledNodeGrants(context.Context, *CountAllEnabledNodeGrantsRequest) (*RPCCountResponse, error)
2020-09-13 19:27:47 +08:00
// 列出单页认证
ListEnabledNodeGrants(context.Context, *ListEnabledNodeGrantsRequest) (*ListEnabledNodeGrantsResponse, error)
// 列出所有认证
FindAllEnabledNodeGrants(context.Context, *FindAllEnabledNodeGrantsRequest) (*FindAllEnabledNodeGrantsResponse, error)
// 获取单个认证信息
2021-04-18 21:19:14 +08:00
FindEnabledNodeGrant(context.Context, *FindEnabledNodeGrantRequest) (*FindEnabledNodeGrantResponse, error)
// 测试连接
TestNodeGrant(context.Context, *TestNodeGrantRequest) (*TestNodeGrantResponse, error)
2020-09-13 19:27:47 +08:00
}
// UnimplementedNodeGrantServiceServer can be embedded to have forward compatible implementations.
type UnimplementedNodeGrantServiceServer struct {
}
func (*UnimplementedNodeGrantServiceServer) CreateNodeGrant(context.Context, *CreateNodeGrantRequest) (*CreateNodeGrantResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateNodeGrant not implemented")
}
func (*UnimplementedNodeGrantServiceServer) UpdateNodeGrant(context.Context, *UpdateNodeGrantRequest) (*RPCSuccess, error) {
2020-09-13 19:27:47 +08:00
return nil, status.Errorf(codes.Unimplemented, "method UpdateNodeGrant not implemented")
}
func (*UnimplementedNodeGrantServiceServer) DisableNodeGrant(context.Context, *DisableNodeGrantRequest) (*DisableNodeGrantResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DisableNodeGrant not implemented")
}
2020-11-12 14:41:23 +08:00
func (*UnimplementedNodeGrantServiceServer) CountAllEnabledNodeGrants(context.Context, *CountAllEnabledNodeGrantsRequest) (*RPCCountResponse, error) {
2020-09-13 19:27:47 +08:00
return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledNodeGrants not implemented")
}
func (*UnimplementedNodeGrantServiceServer) ListEnabledNodeGrants(context.Context, *ListEnabledNodeGrantsRequest) (*ListEnabledNodeGrantsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListEnabledNodeGrants not implemented")
}
func (*UnimplementedNodeGrantServiceServer) FindAllEnabledNodeGrants(context.Context, *FindAllEnabledNodeGrantsRequest) (*FindAllEnabledNodeGrantsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledNodeGrants not implemented")
}
2021-04-18 21:19:14 +08:00
func (*UnimplementedNodeGrantServiceServer) FindEnabledNodeGrant(context.Context, *FindEnabledNodeGrantRequest) (*FindEnabledNodeGrantResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledNodeGrant not implemented")
}
func (*UnimplementedNodeGrantServiceServer) TestNodeGrant(context.Context, *TestNodeGrantRequest) (*TestNodeGrantResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TestNodeGrant not implemented")
2020-09-13 19:27:47 +08:00
}
func RegisterNodeGrantServiceServer(s *grpc.Server, srv NodeGrantServiceServer) {
s.RegisterService(&_NodeGrantService_serviceDesc, srv)
}
func _NodeGrantService_CreateNodeGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateNodeGrantRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeGrantServiceServer).CreateNodeGrant(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeGrantService/CreateNodeGrant",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeGrantServiceServer).CreateNodeGrant(ctx, req.(*CreateNodeGrantRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeGrantService_UpdateNodeGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateNodeGrantRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeGrantServiceServer).UpdateNodeGrant(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeGrantService/UpdateNodeGrant",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeGrantServiceServer).UpdateNodeGrant(ctx, req.(*UpdateNodeGrantRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeGrantService_DisableNodeGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DisableNodeGrantRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeGrantServiceServer).DisableNodeGrant(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeGrantService/DisableNodeGrant",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeGrantServiceServer).DisableNodeGrant(ctx, req.(*DisableNodeGrantRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeGrantService_CountAllEnabledNodeGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CountAllEnabledNodeGrantsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeGrantServiceServer).CountAllEnabledNodeGrants(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeGrantService/CountAllEnabledNodeGrants",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeGrantServiceServer).CountAllEnabledNodeGrants(ctx, req.(*CountAllEnabledNodeGrantsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeGrantService_ListEnabledNodeGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListEnabledNodeGrantsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeGrantServiceServer).ListEnabledNodeGrants(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeGrantService/ListEnabledNodeGrants",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeGrantServiceServer).ListEnabledNodeGrants(ctx, req.(*ListEnabledNodeGrantsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeGrantService_FindAllEnabledNodeGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllEnabledNodeGrantsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeGrantServiceServer).FindAllEnabledNodeGrants(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeGrantService/FindAllEnabledNodeGrants",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeGrantServiceServer).FindAllEnabledNodeGrants(ctx, req.(*FindAllEnabledNodeGrantsRequest))
}
return interceptor(ctx, in, info, handler)
}
2021-04-18 21:19:14 +08:00
func _NodeGrantService_FindEnabledNodeGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindEnabledNodeGrantRequest)
2020-09-13 19:27:47 +08:00
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
2021-04-18 21:19:14 +08:00
return srv.(NodeGrantServiceServer).FindEnabledNodeGrant(ctx, in)
2020-09-13 19:27:47 +08:00
}
info := &grpc.UnaryServerInfo{
Server: srv,
2021-04-18 21:19:14 +08:00
FullMethod: "/pb.NodeGrantService/FindEnabledNodeGrant",
2020-09-13 19:27:47 +08:00
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2021-04-18 21:19:14 +08:00
return srv.(NodeGrantServiceServer).FindEnabledNodeGrant(ctx, req.(*FindEnabledNodeGrantRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeGrantService_TestNodeGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TestNodeGrantRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeGrantServiceServer).TestNodeGrant(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeGrantService/TestNodeGrant",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeGrantServiceServer).TestNodeGrant(ctx, req.(*TestNodeGrantRequest))
2020-09-13 19:27:47 +08:00
}
return interceptor(ctx, in, info, handler)
}
var _NodeGrantService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.NodeGrantService",
HandlerType: (*NodeGrantServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "createNodeGrant",
Handler: _NodeGrantService_CreateNodeGrant_Handler,
},
{
MethodName: "updateNodeGrant",
Handler: _NodeGrantService_UpdateNodeGrant_Handler,
},
{
MethodName: "disableNodeGrant",
Handler: _NodeGrantService_DisableNodeGrant_Handler,
},
{
MethodName: "countAllEnabledNodeGrants",
Handler: _NodeGrantService_CountAllEnabledNodeGrants_Handler,
},
{
2021-04-18 21:19:14 +08:00
MethodName: "listEnabledNodeGrants",
2020-09-13 19:27:47 +08:00
Handler: _NodeGrantService_ListEnabledNodeGrants_Handler,
},
{
2021-04-18 21:19:14 +08:00
MethodName: "findAllEnabledNodeGrants",
2020-09-13 19:27:47 +08:00
Handler: _NodeGrantService_FindAllEnabledNodeGrants_Handler,
},
{
2021-04-18 21:19:14 +08:00
MethodName: "findEnabledNodeGrant",
Handler: _NodeGrantService_FindEnabledNodeGrant_Handler,
},
{
MethodName: "testNodeGrant",
Handler: _NodeGrantService_TestNodeGrant_Handler,
2020-09-13 19:27:47 +08:00
},
},
Streams: []grpc.StreamDesc{},
Metadata: "service_node_grant.proto",
}