1078 lines
34 KiB
Go
1078 lines
34 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.19.6
|
|
// source: service_node_grant.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
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)
|
|
)
|
|
|
|
// 创建节点认证
|
|
type CreateNodeGrantRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
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"`
|
|
Passphrase string `protobuf:"bytes,8,opt,name=passphrase,proto3" json:"passphrase,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"`
|
|
Su bool `protobuf:"varint,9,opt,name=su,proto3" json:"su,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateNodeGrantRequest) Reset() {
|
|
*x = CreateNodeGrantRequest{}
|
|
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 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) GetPassphrase() string {
|
|
if x != nil {
|
|
return x.Passphrase
|
|
}
|
|
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
|
|
}
|
|
|
|
func (x *CreateNodeGrantRequest) GetSu() bool {
|
|
if x != nil {
|
|
return x.Su
|
|
}
|
|
return false
|
|
}
|
|
|
|
type CreateNodeGrantResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
NodeGrantId int64 `protobuf:"varint,1,opt,name=nodeGrantId,proto3" json:"nodeGrantId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateNodeGrantResponse) Reset() {
|
|
*x = CreateNodeGrantResponse{}
|
|
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 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}
|
|
}
|
|
|
|
func (x *CreateNodeGrantResponse) GetNodeGrantId() int64 {
|
|
if x != nil {
|
|
return x.NodeGrantId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 修改节点认证
|
|
type UpdateNodeGrantRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
NodeGrantId int64 `protobuf:"varint,8,opt,name=nodeGrantId,proto3" json:"nodeGrantId,omitempty"`
|
|
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"`
|
|
Passphrase string `protobuf:"bytes,9,opt,name=passphrase,proto3" json:"passphrase,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"`
|
|
Su bool `protobuf:"varint,10,opt,name=su,proto3" json:"su,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateNodeGrantRequest) Reset() {
|
|
*x = UpdateNodeGrantRequest{}
|
|
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 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}
|
|
}
|
|
|
|
func (x *UpdateNodeGrantRequest) GetNodeGrantId() int64 {
|
|
if x != nil {
|
|
return x.NodeGrantId
|
|
}
|
|
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) GetPassphrase() string {
|
|
if x != nil {
|
|
return x.Passphrase
|
|
}
|
|
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
|
|
}
|
|
|
|
func (x *UpdateNodeGrantRequest) GetSu() bool {
|
|
if x != nil {
|
|
return x.Su
|
|
}
|
|
return false
|
|
}
|
|
|
|
// 禁用节点认证
|
|
type DisableNodeGrantRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
NodeGrantId int64 `protobuf:"varint,1,opt,name=nodeGrantId,proto3" json:"nodeGrantId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DisableNodeGrantRequest) Reset() {
|
|
*x = DisableNodeGrantRequest{}
|
|
mi := &file_service_node_grant_proto_msgTypes[3]
|
|
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 {
|
|
mi := &file_service_node_grant_proto_msgTypes[3]
|
|
if 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) {
|
|
return file_service_node_grant_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *DisableNodeGrantRequest) GetNodeGrantId() int64 {
|
|
if x != nil {
|
|
return x.NodeGrantId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DisableNodeGrantResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DisableNodeGrantResponse) Reset() {
|
|
*x = DisableNodeGrantResponse{}
|
|
mi := &file_service_node_grant_proto_msgTypes[4]
|
|
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 {
|
|
mi := &file_service_node_grant_proto_msgTypes[4]
|
|
if 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) {
|
|
return file_service_node_grant_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
// 计算节点认证数量
|
|
type CountAllEnabledNodeGrantsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CountAllEnabledNodeGrantsRequest) Reset() {
|
|
*x = CountAllEnabledNodeGrantsRequest{}
|
|
mi := &file_service_node_grant_proto_msgTypes[5]
|
|
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 {
|
|
mi := &file_service_node_grant_proto_msgTypes[5]
|
|
if 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) {
|
|
return file_service_node_grant_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *CountAllEnabledNodeGrantsRequest) GetKeyword() string {
|
|
if x != nil {
|
|
return x.Keyword
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 列出单页认证
|
|
type ListEnabledNodeGrantsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
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"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListEnabledNodeGrantsRequest) Reset() {
|
|
*x = ListEnabledNodeGrantsRequest{}
|
|
mi := &file_service_node_grant_proto_msgTypes[6]
|
|
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 {
|
|
mi := &file_service_node_grant_proto_msgTypes[6]
|
|
if 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) {
|
|
return file_service_node_grant_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ListEnabledNodeGrantsRequest) GetKeyword() string {
|
|
if x != nil {
|
|
return x.Keyword
|
|
}
|
|
return ""
|
|
}
|
|
|
|
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 `protogen:"open.v1"`
|
|
NodeGrants []*NodeGrant `protobuf:"bytes,1,rep,name=nodeGrants,proto3" json:"nodeGrants,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListEnabledNodeGrantsResponse) Reset() {
|
|
*x = ListEnabledNodeGrantsResponse{}
|
|
mi := &file_service_node_grant_proto_msgTypes[7]
|
|
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 {
|
|
mi := &file_service_node_grant_proto_msgTypes[7]
|
|
if 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) {
|
|
return file_service_node_grant_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *ListEnabledNodeGrantsResponse) GetNodeGrants() []*NodeGrant {
|
|
if x != nil {
|
|
return x.NodeGrants
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 获取所有认证信息
|
|
type FindAllEnabledNodeGrantsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindAllEnabledNodeGrantsRequest) Reset() {
|
|
*x = FindAllEnabledNodeGrantsRequest{}
|
|
mi := &file_service_node_grant_proto_msgTypes[8]
|
|
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 {
|
|
mi := &file_service_node_grant_proto_msgTypes[8]
|
|
if 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) {
|
|
return file_service_node_grant_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
type FindAllEnabledNodeGrantsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
NodeGrants []*NodeGrant `protobuf:"bytes,1,rep,name=nodeGrants,proto3" json:"nodeGrants,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindAllEnabledNodeGrantsResponse) Reset() {
|
|
*x = FindAllEnabledNodeGrantsResponse{}
|
|
mi := &file_service_node_grant_proto_msgTypes[9]
|
|
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 {
|
|
mi := &file_service_node_grant_proto_msgTypes[9]
|
|
if 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) {
|
|
return file_service_node_grant_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *FindAllEnabledNodeGrantsResponse) GetNodeGrants() []*NodeGrant {
|
|
if x != nil {
|
|
return x.NodeGrants
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 获取认证信息
|
|
type FindEnabledNodeGrantRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
NodeGrantId int64 `protobuf:"varint,1,opt,name=nodeGrantId,proto3" json:"nodeGrantId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindEnabledNodeGrantRequest) Reset() {
|
|
*x = FindEnabledNodeGrantRequest{}
|
|
mi := &file_service_node_grant_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindEnabledNodeGrantRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledNodeGrantRequest) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledNodeGrantRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_node_grant_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindEnabledNodeGrantRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledNodeGrantRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_node_grant_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *FindEnabledNodeGrantRequest) GetNodeGrantId() int64 {
|
|
if x != nil {
|
|
return x.NodeGrantId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindEnabledNodeGrantResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
NodeGrant *NodeGrant `protobuf:"bytes,1,opt,name=nodeGrant,proto3" json:"nodeGrant,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindEnabledNodeGrantResponse) Reset() {
|
|
*x = FindEnabledNodeGrantResponse{}
|
|
mi := &file_service_node_grant_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindEnabledNodeGrantResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledNodeGrantResponse) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledNodeGrantResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_node_grant_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindEnabledNodeGrantResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledNodeGrantResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_node_grant_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *FindEnabledNodeGrantResponse) GetNodeGrant() *NodeGrant {
|
|
if x != nil {
|
|
return x.NodeGrant
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 测试连接
|
|
type TestNodeGrantRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
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"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TestNodeGrantRequest) Reset() {
|
|
*x = TestNodeGrantRequest{}
|
|
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 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 `protogen:"open.v1"`
|
|
IsOk bool `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"`
|
|
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TestNodeGrantResponse) Reset() {
|
|
*x = TestNodeGrantResponse{}
|
|
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 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 ""
|
|
}
|
|
|
|
// 查找集群推荐的认证
|
|
type FindSuggestNodeGrantsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
NodeClusterId int64 `protobuf:"varint,1,opt,name=nodeClusterId,proto3" json:"nodeClusterId,omitempty"` // 边缘节点集群
|
|
NsClusterId int64 `protobuf:"varint,2,opt,name=nsClusterId,proto3" json:"nsClusterId,omitempty"` // NS节点集群
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindSuggestNodeGrantsRequest) Reset() {
|
|
*x = FindSuggestNodeGrantsRequest{}
|
|
mi := &file_service_node_grant_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindSuggestNodeGrantsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindSuggestNodeGrantsRequest) ProtoMessage() {}
|
|
|
|
func (x *FindSuggestNodeGrantsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_node_grant_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindSuggestNodeGrantsRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindSuggestNodeGrantsRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_node_grant_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *FindSuggestNodeGrantsRequest) GetNodeClusterId() int64 {
|
|
if x != nil {
|
|
return x.NodeClusterId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *FindSuggestNodeGrantsRequest) GetNsClusterId() int64 {
|
|
if x != nil {
|
|
return x.NsClusterId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindSuggestNodeGrantsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
NodeGrants []*NodeGrant `protobuf:"bytes,1,rep,name=nodeGrants,proto3" json:"nodeGrants,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindSuggestNodeGrantsResponse) Reset() {
|
|
*x = FindSuggestNodeGrantsResponse{}
|
|
mi := &file_service_node_grant_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindSuggestNodeGrantsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindSuggestNodeGrantsResponse) ProtoMessage() {}
|
|
|
|
func (x *FindSuggestNodeGrantsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_node_grant_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindSuggestNodeGrantsResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindSuggestNodeGrantsResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_node_grant_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *FindSuggestNodeGrantsResponse) GetNodeGrants() []*NodeGrant {
|
|
if x != nil {
|
|
return x.NodeGrants
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_service_node_grant_proto protoreflect.FileDescriptor
|
|
|
|
const file_service_node_grant_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x18service_node_grant.proto\x12\x02pb\x1a\x1dmodels/model_node_grant.proto\x1a\x19models/rpc_messages.proto\"\x86\x02\n" +
|
|
"\x16CreateNodeGrantRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n" +
|
|
"\x06method\x18\x02 \x01(\tR\x06method\x12\x1a\n" +
|
|
"\busername\x18\x03 \x01(\tR\busername\x12\x1a\n" +
|
|
"\bpassword\x18\x04 \x01(\tR\bpassword\x12\x1e\n" +
|
|
"\n" +
|
|
"privateKey\x18\x05 \x01(\tR\n" +
|
|
"privateKey\x12\x1e\n" +
|
|
"\n" +
|
|
"passphrase\x18\b \x01(\tR\n" +
|
|
"passphrase\x12 \n" +
|
|
"\vdescription\x18\x06 \x01(\tR\vdescription\x12\x16\n" +
|
|
"\x06nodeId\x18\a \x01(\x03R\x06nodeId\x12\x0e\n" +
|
|
"\x02su\x18\t \x01(\bR\x02su\";\n" +
|
|
"\x17CreateNodeGrantResponse\x12 \n" +
|
|
"\vnodeGrantId\x18\x01 \x01(\x03R\vnodeGrantId\"\xa8\x02\n" +
|
|
"\x16UpdateNodeGrantRequest\x12 \n" +
|
|
"\vnodeGrantId\x18\b \x01(\x03R\vnodeGrantId\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n" +
|
|
"\x06method\x18\x02 \x01(\tR\x06method\x12\x1a\n" +
|
|
"\busername\x18\x03 \x01(\tR\busername\x12\x1a\n" +
|
|
"\bpassword\x18\x04 \x01(\tR\bpassword\x12\x1e\n" +
|
|
"\n" +
|
|
"privateKey\x18\x05 \x01(\tR\n" +
|
|
"privateKey\x12\x1e\n" +
|
|
"\n" +
|
|
"passphrase\x18\t \x01(\tR\n" +
|
|
"passphrase\x12 \n" +
|
|
"\vdescription\x18\x06 \x01(\tR\vdescription\x12\x16\n" +
|
|
"\x06nodeId\x18\a \x01(\x03R\x06nodeId\x12\x0e\n" +
|
|
"\x02su\x18\n" +
|
|
" \x01(\bR\x02su\";\n" +
|
|
"\x17DisableNodeGrantRequest\x12 \n" +
|
|
"\vnodeGrantId\x18\x01 \x01(\x03R\vnodeGrantId\"\x1a\n" +
|
|
"\x18DisableNodeGrantResponse\"<\n" +
|
|
" CountAllEnabledNodeGrantsRequest\x12\x18\n" +
|
|
"\akeyword\x18\x01 \x01(\tR\akeyword\"d\n" +
|
|
"\x1cListEnabledNodeGrantsRequest\x12\x18\n" +
|
|
"\akeyword\x18\x03 \x01(\tR\akeyword\x12\x16\n" +
|
|
"\x06offset\x18\x01 \x01(\x03R\x06offset\x12\x12\n" +
|
|
"\x04size\x18\x02 \x01(\x03R\x04size\"N\n" +
|
|
"\x1dListEnabledNodeGrantsResponse\x12-\n" +
|
|
"\n" +
|
|
"nodeGrants\x18\x01 \x03(\v2\r.pb.NodeGrantR\n" +
|
|
"nodeGrants\"!\n" +
|
|
"\x1fFindAllEnabledNodeGrantsRequest\"Q\n" +
|
|
" FindAllEnabledNodeGrantsResponse\x12-\n" +
|
|
"\n" +
|
|
"nodeGrants\x18\x01 \x03(\v2\r.pb.NodeGrantR\n" +
|
|
"nodeGrants\"?\n" +
|
|
"\x1bFindEnabledNodeGrantRequest\x12 \n" +
|
|
"\vnodeGrantId\x18\x01 \x01(\x03R\vnodeGrantId\"K\n" +
|
|
"\x1cFindEnabledNodeGrantResponse\x12+\n" +
|
|
"\tnodeGrant\x18\x01 \x01(\v2\r.pb.NodeGrantR\tnodeGrant\"`\n" +
|
|
"\x14TestNodeGrantRequest\x12 \n" +
|
|
"\vnodeGrantId\x18\x01 \x01(\x03R\vnodeGrantId\x12\x12\n" +
|
|
"\x04host\x18\x02 \x01(\tR\x04host\x12\x12\n" +
|
|
"\x04port\x18\x03 \x01(\x05R\x04port\"A\n" +
|
|
"\x15TestNodeGrantResponse\x12\x12\n" +
|
|
"\x04isOk\x18\x01 \x01(\bR\x04isOk\x12\x14\n" +
|
|
"\x05error\x18\x02 \x01(\tR\x05error\"f\n" +
|
|
"\x1cFindSuggestNodeGrantsRequest\x12$\n" +
|
|
"\rnodeClusterId\x18\x01 \x01(\x03R\rnodeClusterId\x12 \n" +
|
|
"\vnsClusterId\x18\x02 \x01(\x03R\vnsClusterId\"N\n" +
|
|
"\x1dFindSuggestNodeGrantsResponse\x12-\n" +
|
|
"\n" +
|
|
"nodeGrants\x18\x01 \x03(\v2\r.pb.NodeGrantR\n" +
|
|
"nodeGrants2\x89\x06\n" +
|
|
"\x10NodeGrantService\x12J\n" +
|
|
"\x0fcreateNodeGrant\x12\x1a.pb.CreateNodeGrantRequest\x1a\x1b.pb.CreateNodeGrantResponse\x12=\n" +
|
|
"\x0fupdateNodeGrant\x12\x1a.pb.UpdateNodeGrantRequest\x1a\x0e.pb.RPCSuccess\x12M\n" +
|
|
"\x10disableNodeGrant\x12\x1b.pb.DisableNodeGrantRequest\x1a\x1c.pb.DisableNodeGrantResponse\x12W\n" +
|
|
"\x19countAllEnabledNodeGrants\x12$.pb.CountAllEnabledNodeGrantsRequest\x1a\x14.pb.RPCCountResponse\x12\\\n" +
|
|
"\x15listEnabledNodeGrants\x12 .pb.ListEnabledNodeGrantsRequest\x1a!.pb.ListEnabledNodeGrantsResponse\x12e\n" +
|
|
"\x18findAllEnabledNodeGrants\x12#.pb.FindAllEnabledNodeGrantsRequest\x1a$.pb.FindAllEnabledNodeGrantsResponse\x12Y\n" +
|
|
"\x14findEnabledNodeGrant\x12\x1f.pb.FindEnabledNodeGrantRequest\x1a .pb.FindEnabledNodeGrantResponse\x12D\n" +
|
|
"\rtestNodeGrant\x12\x18.pb.TestNodeGrantRequest\x1a\x19.pb.TestNodeGrantResponse\x12\\\n" +
|
|
"\x15findSuggestNodeGrants\x12 .pb.FindSuggestNodeGrantsRequest\x1a!.pb.FindSuggestNodeGrantsResponseB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_service_node_grant_proto_rawDescOnce sync.Once
|
|
file_service_node_grant_proto_rawDescData []byte
|
|
)
|
|
|
|
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(unsafe.Slice(unsafe.StringData(file_service_node_grant_proto_rawDesc), len(file_service_node_grant_proto_rawDesc)))
|
|
})
|
|
return file_service_node_grant_proto_rawDescData
|
|
}
|
|
|
|
var file_service_node_grant_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
|
var file_service_node_grant_proto_goTypes = []any{
|
|
(*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
|
|
(*FindEnabledNodeGrantRequest)(nil), // 10: pb.FindEnabledNodeGrantRequest
|
|
(*FindEnabledNodeGrantResponse)(nil), // 11: pb.FindEnabledNodeGrantResponse
|
|
(*TestNodeGrantRequest)(nil), // 12: pb.TestNodeGrantRequest
|
|
(*TestNodeGrantResponse)(nil), // 13: pb.TestNodeGrantResponse
|
|
(*FindSuggestNodeGrantsRequest)(nil), // 14: pb.FindSuggestNodeGrantsRequest
|
|
(*FindSuggestNodeGrantsResponse)(nil), // 15: pb.FindSuggestNodeGrantsResponse
|
|
(*NodeGrant)(nil), // 16: pb.NodeGrant
|
|
(*RPCSuccess)(nil), // 17: pb.RPCSuccess
|
|
(*RPCCountResponse)(nil), // 18: pb.RPCCountResponse
|
|
}
|
|
var file_service_node_grant_proto_depIdxs = []int32{
|
|
16, // 0: pb.ListEnabledNodeGrantsResponse.nodeGrants:type_name -> pb.NodeGrant
|
|
16, // 1: pb.FindAllEnabledNodeGrantsResponse.nodeGrants:type_name -> pb.NodeGrant
|
|
16, // 2: pb.FindEnabledNodeGrantResponse.nodeGrant:type_name -> pb.NodeGrant
|
|
16, // 3: pb.FindSuggestNodeGrantsResponse.nodeGrants:type_name -> pb.NodeGrant
|
|
0, // 4: pb.NodeGrantService.createNodeGrant:input_type -> pb.CreateNodeGrantRequest
|
|
2, // 5: pb.NodeGrantService.updateNodeGrant:input_type -> pb.UpdateNodeGrantRequest
|
|
3, // 6: pb.NodeGrantService.disableNodeGrant:input_type -> pb.DisableNodeGrantRequest
|
|
5, // 7: pb.NodeGrantService.countAllEnabledNodeGrants:input_type -> pb.CountAllEnabledNodeGrantsRequest
|
|
6, // 8: pb.NodeGrantService.listEnabledNodeGrants:input_type -> pb.ListEnabledNodeGrantsRequest
|
|
8, // 9: pb.NodeGrantService.findAllEnabledNodeGrants:input_type -> pb.FindAllEnabledNodeGrantsRequest
|
|
10, // 10: pb.NodeGrantService.findEnabledNodeGrant:input_type -> pb.FindEnabledNodeGrantRequest
|
|
12, // 11: pb.NodeGrantService.testNodeGrant:input_type -> pb.TestNodeGrantRequest
|
|
14, // 12: pb.NodeGrantService.findSuggestNodeGrants:input_type -> pb.FindSuggestNodeGrantsRequest
|
|
1, // 13: pb.NodeGrantService.createNodeGrant:output_type -> pb.CreateNodeGrantResponse
|
|
17, // 14: pb.NodeGrantService.updateNodeGrant:output_type -> pb.RPCSuccess
|
|
4, // 15: pb.NodeGrantService.disableNodeGrant:output_type -> pb.DisableNodeGrantResponse
|
|
18, // 16: pb.NodeGrantService.countAllEnabledNodeGrants:output_type -> pb.RPCCountResponse
|
|
7, // 17: pb.NodeGrantService.listEnabledNodeGrants:output_type -> pb.ListEnabledNodeGrantsResponse
|
|
9, // 18: pb.NodeGrantService.findAllEnabledNodeGrants:output_type -> pb.FindAllEnabledNodeGrantsResponse
|
|
11, // 19: pb.NodeGrantService.findEnabledNodeGrant:output_type -> pb.FindEnabledNodeGrantResponse
|
|
13, // 20: pb.NodeGrantService.testNodeGrant:output_type -> pb.TestNodeGrantResponse
|
|
15, // 21: pb.NodeGrantService.findSuggestNodeGrants:output_type -> pb.FindSuggestNodeGrantsResponse
|
|
13, // [13:22] is the sub-list for method output_type
|
|
4, // [4:13] is the sub-list for method input_type
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
0, // [0:4] 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()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_node_grant_proto_rawDesc), len(file_service_node_grant_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 16,
|
|
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_goTypes = nil
|
|
file_service_node_grant_proto_depIdxs = nil
|
|
}
|