mirror of
https://github.com/openziti/zrok.git
synced 2024-11-22 08:03:49 +01:00
grpc for 'zrok agent release access' (#463)
This commit is contained in:
parent
9bf5ff5346
commit
fa8c39b177
@ -501,6 +501,91 @@ func (x *PublicShareRequest) GetAccessGrants() []string {
|
||||
return nil
|
||||
}
|
||||
|
||||
type ReleaseAccessRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
FrontendToken string `protobuf:"bytes,1,opt,name=frontendToken,proto3" json:"frontendToken,omitempty"`
|
||||
}
|
||||
|
||||
func (x *ReleaseAccessRequest) Reset() {
|
||||
*x = ReleaseAccessRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *ReleaseAccessRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ReleaseAccessRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ReleaseAccessRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[7]
|
||||
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 ReleaseAccessRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ReleaseAccessRequest) Descriptor() ([]byte, []int) {
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *ReleaseAccessRequest) GetFrontendToken() string {
|
||||
if x != nil {
|
||||
return x.FrontendToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type ReleaseAccessReply struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *ReleaseAccessReply) Reset() {
|
||||
*x = ReleaseAccessReply{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *ReleaseAccessReply) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ReleaseAccessReply) ProtoMessage() {}
|
||||
|
||||
func (x *ReleaseAccessReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[8]
|
||||
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 ReleaseAccessReply.ProtoReflect.Descriptor instead.
|
||||
func (*ReleaseAccessReply) Descriptor() ([]byte, []int) {
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
type ReleaseShareRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@ -512,7 +597,7 @@ type ReleaseShareRequest struct {
|
||||
func (x *ReleaseShareRequest) Reset() {
|
||||
*x = ReleaseShareRequest{}
|
||||
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)
|
||||
}
|
||||
@ -525,7 +610,7 @@ func (x *ReleaseShareRequest) String() string {
|
||||
func (*ReleaseShareRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ReleaseShareRequest) 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 {
|
||||
@ -538,7 +623,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{7}
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *ReleaseShareRequest) GetToken() string {
|
||||
@ -557,7 +642,7 @@ type ReleaseShareReply struct {
|
||||
func (x *ReleaseShareReply) Reset() {
|
||||
*x = ReleaseShareReply{}
|
||||
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)
|
||||
}
|
||||
@ -570,7 +655,7 @@ func (x *ReleaseShareReply) String() string {
|
||||
func (*ReleaseShareReply) ProtoMessage() {}
|
||||
|
||||
func (x *ReleaseShareReply) 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 {
|
||||
@ -583,7 +668,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{8}
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
type ShareDetail struct {
|
||||
@ -604,7 +689,7 @@ type ShareDetail struct {
|
||||
func (x *ShareDetail) Reset() {
|
||||
*x = ShareDetail{}
|
||||
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)
|
||||
}
|
||||
@ -617,7 +702,7 @@ func (x *ShareDetail) String() string {
|
||||
func (*ShareDetail) ProtoMessage() {}
|
||||
|
||||
func (x *ShareDetail) 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 {
|
||||
@ -630,7 +715,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{9}
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
func (x *ShareDetail) GetToken() string {
|
||||
@ -698,7 +783,7 @@ type StatusRequest struct {
|
||||
func (x *StatusRequest) Reset() {
|
||||
*x = StatusRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[10]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -711,7 +796,7 @@ func (x *StatusRequest) String() string {
|
||||
func (*StatusRequest) ProtoMessage() {}
|
||||
|
||||
func (x *StatusRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[10]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[12]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -724,7 +809,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{10}
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
type StatusReply struct {
|
||||
@ -739,7 +824,7 @@ type StatusReply struct {
|
||||
func (x *StatusReply) Reset() {
|
||||
*x = StatusReply{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[11]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[13]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -752,7 +837,7 @@ func (x *StatusReply) String() string {
|
||||
func (*StatusReply) ProtoMessage() {}
|
||||
|
||||
func (x *StatusReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[11]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[13]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -765,7 +850,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{11}
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{13}
|
||||
}
|
||||
|
||||
func (x *StatusReply) GetAccesses() []*AccessDetail {
|
||||
@ -791,7 +876,7 @@ type VersionRequest struct {
|
||||
func (x *VersionRequest) Reset() {
|
||||
*x = VersionRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[12]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[14]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -804,7 +889,7 @@ func (x *VersionRequest) String() string {
|
||||
func (*VersionRequest) ProtoMessage() {}
|
||||
|
||||
func (x *VersionRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[12]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[14]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -817,7 +902,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{12}
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{14}
|
||||
}
|
||||
|
||||
type VersionReply struct {
|
||||
@ -831,7 +916,7 @@ type VersionReply struct {
|
||||
func (x *VersionReply) Reset() {
|
||||
*x = VersionReply{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[13]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[15]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -844,7 +929,7 @@ func (x *VersionReply) String() string {
|
||||
func (*VersionReply) ProtoMessage() {}
|
||||
|
||||
func (x *VersionReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[13]
|
||||
mi := &file_agent_agentGrpc_agent_proto_msgTypes[15]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -857,7 +942,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{13}
|
||||
return file_agent_agentGrpc_agent_proto_rawDescGZIP(), []int{15}
|
||||
}
|
||||
|
||||
func (x *VersionReply) GetV() string {
|
||||
@ -936,62 +1021,71 @@ var file_agent_agentGrpc_agent_proto_rawDesc = []byte{
|
||||
0x18, 0x09, 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, 0xce, 0x02,
|
||||
0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x3d, 0x0a, 0x0d, 0x50, 0x72, 0x69, 0x76, 0x61,
|
||||
0x74, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x15, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x61,
|
||||
0x74, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
||||
0x13, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 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, 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,
|
||||
0x74, 0x73, 0x22, 0x3c, 0x0a, 0x14, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x41, 0x63, 0x63,
|
||||
0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x66, 0x72,
|
||||
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x0d, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
|
||||
0x22, 0x14, 0x0a, 0x12, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73,
|
||||
0x73, 0x52, 0x65, 0x70, 0x6c, 0x79, 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, 0x8d, 0x03, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x3d, 0x0a, 0x0d, 0x50,
|
||||
0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x15, 0x2e, 0x50,
|
||||
0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63,
|
||||
0x65, 0x73, 0x73, 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, 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,
|
||||
0x3d, 0x0a, 0x0d, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
|
||||
0x12, 0x15, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73,
|
||||
0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 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 (
|
||||
@ -1006,7 +1100,7 @@ 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, 14)
|
||||
var file_agent_agentGrpc_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
||||
var file_agent_agentGrpc_agent_proto_goTypes = []any{
|
||||
(*AccessDetail)(nil), // 0: AccessDetail
|
||||
(*PrivateAccessReply)(nil), // 1: PrivateAccessReply
|
||||
@ -1015,31 +1109,35 @@ var file_agent_agentGrpc_agent_proto_goTypes = []any{
|
||||
(*PrivateShareRequest)(nil), // 4: PrivateShareRequest
|
||||
(*PublicShareReply)(nil), // 5: PublicShareReply
|
||||
(*PublicShareRequest)(nil), // 6: PublicShareRequest
|
||||
(*ReleaseShareRequest)(nil), // 7: ReleaseShareRequest
|
||||
(*ReleaseShareReply)(nil), // 8: ReleaseShareReply
|
||||
(*ShareDetail)(nil), // 9: ShareDetail
|
||||
(*StatusRequest)(nil), // 10: StatusRequest
|
||||
(*StatusReply)(nil), // 11: StatusReply
|
||||
(*VersionRequest)(nil), // 12: VersionRequest
|
||||
(*VersionReply)(nil), // 13: VersionReply
|
||||
(*ReleaseAccessRequest)(nil), // 7: ReleaseAccessRequest
|
||||
(*ReleaseAccessReply)(nil), // 8: ReleaseAccessReply
|
||||
(*ReleaseShareRequest)(nil), // 9: ReleaseShareRequest
|
||||
(*ReleaseShareReply)(nil), // 10: ReleaseShareReply
|
||||
(*ShareDetail)(nil), // 11: ShareDetail
|
||||
(*StatusRequest)(nil), // 12: StatusRequest
|
||||
(*StatusReply)(nil), // 13: StatusReply
|
||||
(*VersionRequest)(nil), // 14: VersionRequest
|
||||
(*VersionReply)(nil), // 15: VersionReply
|
||||
}
|
||||
var file_agent_agentGrpc_agent_proto_depIdxs = []int32{
|
||||
0, // 0: StatusReply.accesses:type_name -> AccessDetail
|
||||
9, // 1: StatusReply.shares:type_name -> ShareDetail
|
||||
11, // 1: StatusReply.shares:type_name -> ShareDetail
|
||||
2, // 2: Agent.PrivateAccess:input_type -> PrivateAccessRequest
|
||||
4, // 3: Agent.PrivateShare:input_type -> PrivateShareRequest
|
||||
6, // 4: Agent.PublicShare:input_type -> PublicShareRequest
|
||||
7, // 5: Agent.ReleaseShare:input_type -> ReleaseShareRequest
|
||||
10, // 6: Agent.Status:input_type -> StatusRequest
|
||||
12, // 7: Agent.Version:input_type -> VersionRequest
|
||||
1, // 8: Agent.PrivateAccess:output_type -> PrivateAccessReply
|
||||
3, // 9: Agent.PrivateShare:output_type -> PrivateShareReply
|
||||
5, // 10: Agent.PublicShare:output_type -> PublicShareReply
|
||||
8, // 11: Agent.ReleaseShare:output_type -> ReleaseShareReply
|
||||
11, // 12: Agent.Status:output_type -> StatusReply
|
||||
13, // 13: Agent.Version:output_type -> VersionReply
|
||||
8, // [8:14] is the sub-list for method output_type
|
||||
2, // [2:8] is the sub-list for method input_type
|
||||
7, // 5: Agent.ReleaseAccess:input_type -> ReleaseAccessRequest
|
||||
9, // 6: Agent.ReleaseShare:input_type -> ReleaseShareRequest
|
||||
12, // 7: Agent.Status:input_type -> StatusRequest
|
||||
14, // 8: Agent.Version:input_type -> VersionRequest
|
||||
1, // 9: Agent.PrivateAccess:output_type -> PrivateAccessReply
|
||||
3, // 10: Agent.PrivateShare:output_type -> PrivateShareReply
|
||||
5, // 11: Agent.PublicShare:output_type -> PublicShareReply
|
||||
8, // 12: Agent.ReleaseAccess:output_type -> ReleaseAccessReply
|
||||
10, // 13: Agent.ReleaseShare:output_type -> ReleaseShareReply
|
||||
13, // 14: Agent.Status:output_type -> StatusReply
|
||||
15, // 15: Agent.Version:output_type -> VersionReply
|
||||
9, // [9:16] is the sub-list for method output_type
|
||||
2, // [2:9] 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
|
||||
@ -1136,7 +1234,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.(*ReleaseShareRequest); i {
|
||||
switch v := v.(*ReleaseAccessRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1148,7 +1246,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.(*ReleaseShareReply); i {
|
||||
switch v := v.(*ReleaseAccessReply); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1160,7 +1258,7 @@ func file_agent_agentGrpc_agent_proto_init() {
|
||||
}
|
||||
}
|
||||
file_agent_agentGrpc_agent_proto_msgTypes[9].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ShareDetail); i {
|
||||
switch v := v.(*ReleaseShareRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1172,7 +1270,7 @@ func file_agent_agentGrpc_agent_proto_init() {
|
||||
}
|
||||
}
|
||||
file_agent_agentGrpc_agent_proto_msgTypes[10].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*StatusRequest); i {
|
||||
switch v := v.(*ReleaseShareReply); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1184,7 +1282,7 @@ func file_agent_agentGrpc_agent_proto_init() {
|
||||
}
|
||||
}
|
||||
file_agent_agentGrpc_agent_proto_msgTypes[11].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*StatusReply); i {
|
||||
switch v := v.(*ShareDetail); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1196,7 +1294,7 @@ func file_agent_agentGrpc_agent_proto_init() {
|
||||
}
|
||||
}
|
||||
file_agent_agentGrpc_agent_proto_msgTypes[12].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*VersionRequest); i {
|
||||
switch v := v.(*StatusRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1208,6 +1306,30 @@ func file_agent_agentGrpc_agent_proto_init() {
|
||||
}
|
||||
}
|
||||
file_agent_agentGrpc_agent_proto_msgTypes[13].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[14].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[15].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*VersionReply); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1226,7 +1348,7 @@ func file_agent_agentGrpc_agent_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_agent_agentGrpc_agent_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 14,
|
||||
NumMessages: 16,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
@ -6,6 +6,7 @@ service Agent {
|
||||
rpc PrivateAccess(PrivateAccessRequest) returns (PrivateAccessReply) {}
|
||||
rpc PrivateShare(PrivateShareRequest) returns (PrivateShareReply) {}
|
||||
rpc PublicShare(PublicShareRequest) returns (PublicShareReply) {}
|
||||
rpc ReleaseAccess(ReleaseAccessRequest) returns (ReleaseAccessReply) {}
|
||||
rpc ReleaseShare(ReleaseShareRequest) returns (ReleaseShareReply) {}
|
||||
rpc Status(StatusRequest) returns (StatusReply) {}
|
||||
rpc Version(VersionRequest) returns (VersionReply) {}
|
||||
@ -58,6 +59,13 @@ message PublicShareRequest {
|
||||
repeated string accessGrants = 10;
|
||||
}
|
||||
|
||||
message ReleaseAccessRequest {
|
||||
string frontendToken = 1;
|
||||
}
|
||||
|
||||
message ReleaseAccessReply {
|
||||
}
|
||||
|
||||
message ReleaseShareRequest {
|
||||
string token = 1;
|
||||
}
|
||||
|
@ -22,6 +22,7 @@ const (
|
||||
Agent_PrivateAccess_FullMethodName = "/Agent/PrivateAccess"
|
||||
Agent_PrivateShare_FullMethodName = "/Agent/PrivateShare"
|
||||
Agent_PublicShare_FullMethodName = "/Agent/PublicShare"
|
||||
Agent_ReleaseAccess_FullMethodName = "/Agent/ReleaseAccess"
|
||||
Agent_ReleaseShare_FullMethodName = "/Agent/ReleaseShare"
|
||||
Agent_Status_FullMethodName = "/Agent/Status"
|
||||
Agent_Version_FullMethodName = "/Agent/Version"
|
||||
@ -34,6 +35,7 @@ type AgentClient interface {
|
||||
PrivateAccess(ctx context.Context, in *PrivateAccessRequest, opts ...grpc.CallOption) (*PrivateAccessReply, error)
|
||||
PrivateShare(ctx context.Context, in *PrivateShareRequest, opts ...grpc.CallOption) (*PrivateShareReply, error)
|
||||
PublicShare(ctx context.Context, in *PublicShareRequest, opts ...grpc.CallOption) (*PublicShareReply, error)
|
||||
ReleaseAccess(ctx context.Context, in *ReleaseAccessRequest, opts ...grpc.CallOption) (*ReleaseAccessReply, 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)
|
||||
@ -77,6 +79,16 @@ func (c *agentClient) PublicShare(ctx context.Context, in *PublicShareRequest, o
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *agentClient) ReleaseAccess(ctx context.Context, in *ReleaseAccessRequest, opts ...grpc.CallOption) (*ReleaseAccessReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ReleaseAccessReply)
|
||||
err := c.cc.Invoke(ctx, Agent_ReleaseAccess_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)
|
||||
@ -114,6 +126,7 @@ type AgentServer interface {
|
||||
PrivateAccess(context.Context, *PrivateAccessRequest) (*PrivateAccessReply, error)
|
||||
PrivateShare(context.Context, *PrivateShareRequest) (*PrivateShareReply, error)
|
||||
PublicShare(context.Context, *PublicShareRequest) (*PublicShareReply, error)
|
||||
ReleaseAccess(context.Context, *ReleaseAccessRequest) (*ReleaseAccessReply, error)
|
||||
ReleaseShare(context.Context, *ReleaseShareRequest) (*ReleaseShareReply, error)
|
||||
Status(context.Context, *StatusRequest) (*StatusReply, error)
|
||||
Version(context.Context, *VersionRequest) (*VersionReply, error)
|
||||
@ -136,6 +149,9 @@ func (UnimplementedAgentServer) PrivateShare(context.Context, *PrivateShareReque
|
||||
func (UnimplementedAgentServer) PublicShare(context.Context, *PublicShareRequest) (*PublicShareReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method PublicShare not implemented")
|
||||
}
|
||||
func (UnimplementedAgentServer) ReleaseAccess(context.Context, *ReleaseAccessRequest) (*ReleaseAccessReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ReleaseAccess not implemented")
|
||||
}
|
||||
func (UnimplementedAgentServer) ReleaseShare(context.Context, *ReleaseShareRequest) (*ReleaseShareReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ReleaseShare not implemented")
|
||||
}
|
||||
@ -220,6 +236,24 @@ func _Agent_PublicShare_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Agent_ReleaseAccess_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ReleaseAccessRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AgentServer).ReleaseAccess(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Agent_ReleaseAccess_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AgentServer).ReleaseAccess(ctx, req.(*ReleaseAccessRequest))
|
||||
}
|
||||
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 {
|
||||
@ -293,6 +327,10 @@ var Agent_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "PublicShare",
|
||||
Handler: _Agent_PublicShare_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ReleaseAccess",
|
||||
Handler: _Agent_ReleaseAccess_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ReleaseShare",
|
||||
Handler: _Agent_ReleaseShare_Handler,
|
||||
|
Loading…
Reference in New Issue
Block a user