mirror of
https://github.com/openziti/zrok.git
synced 2024-11-26 01:54:09 +01:00
updated grpc for private shares (#463)
This commit is contained in:
parent
14719c18ec
commit
254251a3dc
@ -257,6 +257,132 @@ func (x *PublicShareRequest) GetAccessGrants() []string {
|
||||
return nil
|
||||
}
|
||||
|
||||
type PrivateShareReply struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
||||
}
|
||||
|
||||
func (x *PrivateShareReply) Reset() {
|
||||
*x = PrivateShareReply{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *PrivateShareReply) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*PrivateShareReply) ProtoMessage() {}
|
||||
|
||||
func (x *PrivateShareReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[3]
|
||||
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 PrivateShareReply.ProtoReflect.Descriptor instead.
|
||||
func (*PrivateShareReply) Descriptor() ([]byte, []int) {
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *PrivateShareReply) GetToken() string {
|
||||
if x != nil {
|
||||
return x.Token
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type PrivateShareRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
|
||||
BackendMode string `protobuf:"bytes,2,opt,name=backendMode,proto3" json:"backendMode,omitempty"`
|
||||
Insecure bool `protobuf:"varint,3,opt,name=insecure,proto3" json:"insecure,omitempty"`
|
||||
Closed bool `protobuf:"varint,4,opt,name=closed,proto3" json:"closed,omitempty"`
|
||||
AccessGrants []string `protobuf:"bytes,5,rep,name=accessGrants,proto3" json:"accessGrants,omitempty"`
|
||||
}
|
||||
|
||||
func (x *PrivateShareRequest) Reset() {
|
||||
*x = PrivateShareRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *PrivateShareRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*PrivateShareRequest) ProtoMessage() {}
|
||||
|
||||
func (x *PrivateShareRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[4]
|
||||
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 PrivateShareRequest.ProtoReflect.Descriptor instead.
|
||||
func (*PrivateShareRequest) Descriptor() ([]byte, []int) {
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *PrivateShareRequest) GetTarget() string {
|
||||
if x != nil {
|
||||
return x.Target
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *PrivateShareRequest) GetBackendMode() string {
|
||||
if x != nil {
|
||||
return x.BackendMode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *PrivateShareRequest) GetInsecure() bool {
|
||||
if x != nil {
|
||||
return x.Insecure
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *PrivateShareRequest) GetClosed() bool {
|
||||
if x != nil {
|
||||
return x.Closed
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *PrivateShareRequest) GetAccessGrants() []string {
|
||||
if x != nil {
|
||||
return x.AccessGrants
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ReleaseShareRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@ -268,7 +394,7 @@ type ReleaseShareRequest struct {
|
||||
func (x *ReleaseShareRequest) Reset() {
|
||||
*x = ReleaseShareRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[3]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -281,7 +407,7 @@ func (x *ReleaseShareRequest) String() string {
|
||||
func (*ReleaseShareRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ReleaseShareRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[3]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -294,7 +420,7 @@ func (x *ReleaseShareRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ReleaseShareRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ReleaseShareRequest) Descriptor() ([]byte, []int) {
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{3}
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *ReleaseShareRequest) GetToken() string {
|
||||
@ -313,7 +439,7 @@ type ReleaseShareReply struct {
|
||||
func (x *ReleaseShareReply) Reset() {
|
||||
*x = ReleaseShareReply{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[4]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -326,7 +452,7 @@ func (x *ReleaseShareReply) String() string {
|
||||
func (*ReleaseShareReply) ProtoMessage() {}
|
||||
|
||||
func (x *ReleaseShareReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[4]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[6]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -339,7 +465,7 @@ func (x *ReleaseShareReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ReleaseShareReply.ProtoReflect.Descriptor instead.
|
||||
func (*ReleaseShareReply) Descriptor() ([]byte, []int) {
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{4}
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
type ShareDetail struct {
|
||||
@ -360,7 +486,7 @@ type ShareDetail struct {
|
||||
func (x *ShareDetail) Reset() {
|
||||
*x = ShareDetail{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[5]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -373,7 +499,7 @@ func (x *ShareDetail) String() string {
|
||||
func (*ShareDetail) ProtoMessage() {}
|
||||
|
||||
func (x *ShareDetail) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[5]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[7]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -386,7 +512,7 @@ func (x *ShareDetail) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ShareDetail.ProtoReflect.Descriptor instead.
|
||||
func (*ShareDetail) Descriptor() ([]byte, []int) {
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{5}
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *ShareDetail) GetToken() string {
|
||||
@ -454,7 +580,7 @@ type StatusRequest struct {
|
||||
func (x *StatusRequest) Reset() {
|
||||
*x = StatusRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[6]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -467,7 +593,7 @@ func (x *StatusRequest) String() string {
|
||||
func (*StatusRequest) ProtoMessage() {}
|
||||
|
||||
func (x *StatusRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[6]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[8]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -480,7 +606,7 @@ func (x *StatusRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
|
||||
func (*StatusRequest) Descriptor() ([]byte, []int) {
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{6}
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
type StatusReply struct {
|
||||
@ -495,7 +621,7 @@ type StatusReply struct {
|
||||
func (x *StatusReply) Reset() {
|
||||
*x = StatusReply{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[7]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -508,7 +634,7 @@ func (x *StatusReply) String() string {
|
||||
func (*StatusReply) ProtoMessage() {}
|
||||
|
||||
func (x *StatusReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[7]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[9]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -521,7 +647,7 @@ func (x *StatusReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use StatusReply.ProtoReflect.Descriptor instead.
|
||||
func (*StatusReply) Descriptor() ([]byte, []int) {
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{7}
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *StatusReply) GetAccesses() []*AccessDetail {
|
||||
@ -547,7 +673,7 @@ type VersionRequest struct {
|
||||
func (x *VersionRequest) Reset() {
|
||||
*x = VersionRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[8]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -560,7 +686,7 @@ func (x *VersionRequest) String() string {
|
||||
func (*VersionRequest) ProtoMessage() {}
|
||||
|
||||
func (x *VersionRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[8]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[10]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -573,7 +699,7 @@ func (x *VersionRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use VersionRequest.ProtoReflect.Descriptor instead.
|
||||
func (*VersionRequest) Descriptor() ([]byte, []int) {
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{8}
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
type VersionReply struct {
|
||||
@ -587,7 +713,7 @@ type VersionReply struct {
|
||||
func (x *VersionReply) Reset() {
|
||||
*x = VersionReply{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[9]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -600,7 +726,7 @@ func (x *VersionReply) String() string {
|
||||
func (*VersionReply) ProtoMessage() {}
|
||||
|
||||
func (x *VersionReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[9]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[11]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -613,7 +739,7 @@ func (x *VersionReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use VersionReply.ProtoReflect.Descriptor instead.
|
||||
func (*VersionReply) Descriptor() ([]byte, []int) {
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{9}
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
func (x *VersionReply) GetV() string {
|
||||
@ -665,54 +791,71 @@ var file_agent_agentGrpc_agent_proto_rawDesc = []byte{
|
||||
0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x0c,
|
||||
0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x03,
|
||||
0x28, 0x09, 0x52, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73,
|
||||
0x22, 0x2b, 0x0a, 0x13, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x13, 0x0a,
|
||||
0x11, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x70,
|
||||
0x6c, 0x79, 0x22, 0x85, 0x02, 0x0a, 0x0b, 0x53, 0x68, 0x61, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61,
|
||||
0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x68, 0x61, 0x72,
|
||||
0x65, 0x4d, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x68, 0x61,
|
||||
0x72, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e,
|
||||
0x64, 0x4d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x62, 0x61, 0x63,
|
||||
0x6b, 0x65, 0x6e, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x65,
|
||||
0x72, 0x76, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x73, 0x65,
|
||||
0x72, 0x76, 0x65, 0x64, 0x12, 0x2a, 0x0a, 0x10, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64,
|
||||
0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10,
|
||||
0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
|
||||
0x12, 0x28, 0x0a, 0x0f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x45, 0x6e, 0x64, 0x70, 0x6f,
|
||||
0x69, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x61, 0x63, 0x6b, 0x65,
|
||||
0x6e, 0x64, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6c,
|
||||
0x6f, 0x73, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x63, 0x6c, 0x6f, 0x73,
|
||||
0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x0f, 0x0a, 0x0d, 0x53, 0x74,
|
||||
0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5e, 0x0a, 0x0b, 0x53,
|
||||
0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x29, 0x0a, 0x08, 0x61, 0x63,
|
||||
0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x41,
|
||||
0x63, 0x63, 0x65, 0x73, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x08, 0x61, 0x63, 0x63,
|
||||
0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x06, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18,
|
||||
0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x44, 0x65, 0x74,
|
||||
0x61, 0x69, 0x6c, 0x52, 0x06, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0x10, 0x0a, 0x0e, 0x56,
|
||||
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x1c, 0x0a,
|
||||
0x0c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x0c, 0x0a,
|
||||
0x01, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x76, 0x32, 0xd3, 0x01, 0x0a, 0x05,
|
||||
0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x0b, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53,
|
||||
0x68, 0x61, 0x72, 0x65, 0x12, 0x13, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61,
|
||||
0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x50, 0x75, 0x62, 0x6c,
|
||||
0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x3a,
|
||||
0x0a, 0x0c, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x14,
|
||||
0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x68,
|
||||
0x61, 0x72, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x28, 0x0a, 0x06, 0x53, 0x74,
|
||||
0x61, 0x74, 0x75, 0x73, 0x12, 0x0e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x1a, 0x0c, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x70,
|
||||
0x6c, 0x79, 0x22, 0x00, 0x12, 0x2b, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,
|
||||
0x0f, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x1a, 0x0d, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22,
|
||||
0x00, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
||||
0x6f, 0x70, 0x65, 0x6e, 0x7a, 0x69, 0x74, 0x69, 0x2f, 0x7a, 0x72, 0x6f, 0x6b, 0x2f, 0x61, 0x67,
|
||||
0x65, 0x6e, 0x74, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x47, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x22, 0x29, 0x0a, 0x11, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65,
|
||||
0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xa7, 0x01, 0x0a, 0x13,
|
||||
0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x62,
|
||||
0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x0b, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a,
|
||||
0x08, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
|
||||
0x08, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6c, 0x6f,
|
||||
0x73, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x63, 0x6c, 0x6f, 0x73, 0x65,
|
||||
0x64, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x47, 0x72, 0x61, 0x6e, 0x74,
|
||||
0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x47,
|
||||
0x72, 0x61, 0x6e, 0x74, 0x73, 0x22, 0x2b, 0x0a, 0x13, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65,
|
||||
0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05,
|
||||
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b,
|
||||
0x65, 0x6e, 0x22, 0x13, 0x0a, 0x11, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x68, 0x61,
|
||||
0x72, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x85, 0x02, 0x0a, 0x0b, 0x53, 0x68, 0x61, 0x72,
|
||||
0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1c, 0x0a,
|
||||
0x09, 0x73, 0x68, 0x61, 0x72, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x09, 0x73, 0x68, 0x61, 0x72, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x62,
|
||||
0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x0b, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a,
|
||||
0x08, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
|
||||
0x08, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x12, 0x2a, 0x0a, 0x10, 0x66, 0x72, 0x6f,
|
||||
0x6e, 0x74, 0x65, 0x6e, 0x64, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x05, 0x20,
|
||||
0x03, 0x28, 0x09, 0x52, 0x10, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x45, 0x6e, 0x64,
|
||||
0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64,
|
||||
0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f,
|
||||
0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12,
|
||||
0x16, 0x0a, 0x06, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52,
|
||||
0x06, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
|
||||
0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22,
|
||||
0x0f, 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x22, 0x5e, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12,
|
||||
0x29, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
|
||||
0x0b, 0x32, 0x0d, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c,
|
||||
0x52, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x06, 0x73, 0x68,
|
||||
0x61, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x53, 0x68, 0x61,
|
||||
0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x06, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73,
|
||||
0x22, 0x10, 0x0a, 0x0e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x22, 0x1c, 0x0a, 0x0c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70,
|
||||
0x6c, 0x79, 0x12, 0x0c, 0x0a, 0x01, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x76,
|
||||
0x32, 0x8f, 0x02, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x0b, 0x50, 0x75,
|
||||
0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x13, 0x2e, 0x50, 0x75, 0x62, 0x6c,
|
||||
0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11,
|
||||
0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x70, 0x6c,
|
||||
0x79, 0x22, 0x00, 0x12, 0x3a, 0x0a, 0x0c, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x53, 0x68,
|
||||
0x61, 0x72, 0x65, 0x12, 0x14, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61,
|
||||
0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x50, 0x72, 0x69, 0x76,
|
||||
0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12,
|
||||
0x3a, 0x0a, 0x0c, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12,
|
||||
0x14, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53,
|
||||
0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x28, 0x0a, 0x06, 0x53,
|
||||
0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0c, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65,
|
||||
0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x2b, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
|
||||
0x12, 0x0f, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x1a, 0x0d, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79,
|
||||
0x22, 0x00, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
||||
0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x7a, 0x69, 0x74, 0x69, 0x2f, 0x7a, 0x72, 0x6f, 0x6b, 0x2f, 0x61,
|
||||
0x67, 0x65, 0x6e, 0x74, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x47, 0x72, 0x70, 0x63, 0x62, 0x06,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@ -727,32 +870,36 @@ func file_agent_agentGrpc_agent_proto_rawDescGZIP() []byte {
|
||||
return file_agent_agentGrpc_agent_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_agent_agentGrpc_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||||
var file_agent_agentGrpc_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
||||
var file_agent_agentGrpc_agent_proto_goTypes = []any{
|
||||
(*AccessDetail)(nil), // 0: AccessDetail
|
||||
(*PublicShareReply)(nil), // 1: PublicShareReply
|
||||
(*PublicShareRequest)(nil), // 2: PublicShareRequest
|
||||
(*ReleaseShareRequest)(nil), // 3: ReleaseShareRequest
|
||||
(*ReleaseShareReply)(nil), // 4: ReleaseShareReply
|
||||
(*ShareDetail)(nil), // 5: ShareDetail
|
||||
(*StatusRequest)(nil), // 6: StatusRequest
|
||||
(*StatusReply)(nil), // 7: StatusReply
|
||||
(*VersionRequest)(nil), // 8: VersionRequest
|
||||
(*VersionReply)(nil), // 9: VersionReply
|
||||
(*PrivateShareReply)(nil), // 3: PrivateShareReply
|
||||
(*PrivateShareRequest)(nil), // 4: PrivateShareRequest
|
||||
(*ReleaseShareRequest)(nil), // 5: ReleaseShareRequest
|
||||
(*ReleaseShareReply)(nil), // 6: ReleaseShareReply
|
||||
(*ShareDetail)(nil), // 7: ShareDetail
|
||||
(*StatusRequest)(nil), // 8: StatusRequest
|
||||
(*StatusReply)(nil), // 9: StatusReply
|
||||
(*VersionRequest)(nil), // 10: VersionRequest
|
||||
(*VersionReply)(nil), // 11: VersionReply
|
||||
}
|
||||
var file_agent_agentGrpc_agent_proto_depIdxs = []int32{
|
||||
0, // 0: StatusReply.accesses:type_name -> AccessDetail
|
||||
5, // 1: StatusReply.shares:type_name -> ShareDetail
|
||||
7, // 1: StatusReply.shares:type_name -> ShareDetail
|
||||
2, // 2: Agent.PublicShare:input_type -> PublicShareRequest
|
||||
3, // 3: Agent.ReleaseShare:input_type -> ReleaseShareRequest
|
||||
6, // 4: Agent.Status:input_type -> StatusRequest
|
||||
8, // 5: Agent.Version:input_type -> VersionRequest
|
||||
1, // 6: Agent.PublicShare:output_type -> PublicShareReply
|
||||
4, // 7: Agent.ReleaseShare:output_type -> ReleaseShareReply
|
||||
7, // 8: Agent.Status:output_type -> StatusReply
|
||||
9, // 9: Agent.Version:output_type -> VersionReply
|
||||
6, // [6:10] is the sub-list for method output_type
|
||||
2, // [2:6] is the sub-list for method input_type
|
||||
4, // 3: Agent.PrivateShare:input_type -> PrivateShareRequest
|
||||
5, // 4: Agent.ReleaseShare:input_type -> ReleaseShareRequest
|
||||
8, // 5: Agent.Status:input_type -> StatusRequest
|
||||
10, // 6: Agent.Version:input_type -> VersionRequest
|
||||
1, // 7: Agent.PublicShare:output_type -> PublicShareReply
|
||||
3, // 8: Agent.PrivateShare:output_type -> PrivateShareReply
|
||||
6, // 9: Agent.ReleaseShare:output_type -> ReleaseShareReply
|
||||
9, // 10: Agent.Status:output_type -> StatusReply
|
||||
11, // 11: Agent.Version:output_type -> VersionReply
|
||||
7, // [7:12] is the sub-list for method output_type
|
||||
2, // [2:7] is the sub-list for method input_type
|
||||
2, // [2:2] is the sub-list for extension type_name
|
||||
2, // [2:2] is the sub-list for extension extendee
|
||||
0, // [0:2] is the sub-list for field type_name
|
||||
@ -801,7 +948,7 @@ func file_agent_agentGrpc_agent_proto_init() {
|
||||
}
|
||||
}
|
||||
file_agent_agentGrpc_agent_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ReleaseShareRequest); i {
|
||||
switch v := v.(*PrivateShareReply); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -813,7 +960,7 @@ func file_agent_agentGrpc_agent_proto_init() {
|
||||
}
|
||||
}
|
||||
file_agent_agentGrpc_agent_proto_msgTypes[4].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ReleaseShareReply); i {
|
||||
switch v := v.(*PrivateShareRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -825,7 +972,7 @@ func file_agent_agentGrpc_agent_proto_init() {
|
||||
}
|
||||
}
|
||||
file_agent_agentGrpc_agent_proto_msgTypes[5].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ShareDetail); i {
|
||||
switch v := v.(*ReleaseShareRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -837,7 +984,7 @@ func file_agent_agentGrpc_agent_proto_init() {
|
||||
}
|
||||
}
|
||||
file_agent_agentGrpc_agent_proto_msgTypes[6].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*StatusRequest); i {
|
||||
switch v := v.(*ReleaseShareReply); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -849,7 +996,7 @@ func file_agent_agentGrpc_agent_proto_init() {
|
||||
}
|
||||
}
|
||||
file_agent_agentGrpc_agent_proto_msgTypes[7].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*StatusReply); i {
|
||||
switch v := v.(*ShareDetail); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -861,7 +1008,7 @@ func file_agent_agentGrpc_agent_proto_init() {
|
||||
}
|
||||
}
|
||||
file_agent_agentGrpc_agent_proto_msgTypes[8].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*VersionRequest); i {
|
||||
switch v := v.(*StatusRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -873,6 +1020,30 @@ func file_agent_agentGrpc_agent_proto_init() {
|
||||
}
|
||||
}
|
||||
file_agent_agentGrpc_agent_proto_msgTypes[9].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*StatusReply); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_agent_agentGrpc_agent_proto_msgTypes[10].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*VersionRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_agent_agentGrpc_agent_proto_msgTypes[11].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*VersionReply); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -891,7 +1062,7 @@ func file_agent_agentGrpc_agent_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_agent_agentGrpc_agent_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 10,
|
||||
NumMessages: 12,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
@ -4,6 +4,7 @@ option go_package = "github.com/openziti/zrok/agent/agentGrpc";
|
||||
|
||||
service Agent {
|
||||
rpc PublicShare(PublicShareRequest) returns (PublicShareReply) {}
|
||||
rpc PrivateShare(PrivateShareRequest) returns (PrivateShareReply) {}
|
||||
rpc ReleaseShare(ReleaseShareRequest) returns (ReleaseShareReply) {}
|
||||
rpc Status(StatusRequest) returns (StatusReply) {}
|
||||
rpc Version(VersionRequest) returns (VersionReply) {}
|
||||
@ -33,6 +34,18 @@ message PublicShareRequest {
|
||||
repeated string accessGrants = 10;
|
||||
}
|
||||
|
||||
message PrivateShareReply {
|
||||
string token = 1;
|
||||
}
|
||||
|
||||
message PrivateShareRequest {
|
||||
string target = 1;
|
||||
string backendMode = 2;
|
||||
bool insecure = 3;
|
||||
bool closed = 4;
|
||||
repeated string accessGrants = 5;
|
||||
}
|
||||
|
||||
message ReleaseShareRequest {
|
||||
string token = 1;
|
||||
}
|
||||
|
@ -20,6 +20,7 @@ const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
Agent_PublicShare_FullMethodName = "/Agent/PublicShare"
|
||||
Agent_PrivateShare_FullMethodName = "/Agent/PrivateShare"
|
||||
Agent_ReleaseShare_FullMethodName = "/Agent/ReleaseShare"
|
||||
Agent_Status_FullMethodName = "/Agent/Status"
|
||||
Agent_Version_FullMethodName = "/Agent/Version"
|
||||
@ -30,6 +31,7 @@ const (
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type AgentClient interface {
|
||||
PublicShare(ctx context.Context, in *PublicShareRequest, opts ...grpc.CallOption) (*PublicShareReply, error)
|
||||
PrivateShare(ctx context.Context, in *PrivateShareRequest, opts ...grpc.CallOption) (*PrivateShareReply, error)
|
||||
ReleaseShare(ctx context.Context, in *ReleaseShareRequest, opts ...grpc.CallOption) (*ReleaseShareReply, error)
|
||||
Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionReply, error)
|
||||
@ -53,6 +55,16 @@ func (c *agentClient) PublicShare(ctx context.Context, in *PublicShareRequest, o
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *agentClient) PrivateShare(ctx context.Context, in *PrivateShareRequest, opts ...grpc.CallOption) (*PrivateShareReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(PrivateShareReply)
|
||||
err := c.cc.Invoke(ctx, Agent_PrivateShare_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *agentClient) ReleaseShare(ctx context.Context, in *ReleaseShareRequest, opts ...grpc.CallOption) (*ReleaseShareReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ReleaseShareReply)
|
||||
@ -88,6 +100,7 @@ func (c *agentClient) Version(ctx context.Context, in *VersionRequest, opts ...g
|
||||
// for forward compatibility.
|
||||
type AgentServer interface {
|
||||
PublicShare(context.Context, *PublicShareRequest) (*PublicShareReply, error)
|
||||
PrivateShare(context.Context, *PrivateShareRequest) (*PrivateShareReply, error)
|
||||
ReleaseShare(context.Context, *ReleaseShareRequest) (*ReleaseShareReply, error)
|
||||
Status(context.Context, *StatusRequest) (*StatusReply, error)
|
||||
Version(context.Context, *VersionRequest) (*VersionReply, error)
|
||||
@ -104,6 +117,9 @@ type UnimplementedAgentServer struct{}
|
||||
func (UnimplementedAgentServer) PublicShare(context.Context, *PublicShareRequest) (*PublicShareReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method PublicShare not implemented")
|
||||
}
|
||||
func (UnimplementedAgentServer) PrivateShare(context.Context, *PrivateShareRequest) (*PrivateShareReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method PrivateShare not implemented")
|
||||
}
|
||||
func (UnimplementedAgentServer) ReleaseShare(context.Context, *ReleaseShareRequest) (*ReleaseShareReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ReleaseShare not implemented")
|
||||
}
|
||||
@ -152,6 +168,24 @@ func _Agent_PublicShare_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Agent_PrivateShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(PrivateShareRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AgentServer).PrivateShare(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Agent_PrivateShare_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AgentServer).PrivateShare(ctx, req.(*PrivateShareRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Agent_ReleaseShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ReleaseShareRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@ -217,6 +251,10 @@ var Agent_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "PublicShare",
|
||||
Handler: _Agent_PublicShare_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "PrivateShare",
|
||||
Handler: _Agent_PrivateShare_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ReleaseShare",
|
||||
Handler: _Agent_ReleaseShare_Handler,
|
||||
|
Loading…
Reference in New Issue
Block a user