Documentation ¶
Index ¶
- Variables
- func RegisterPatchServer(s grpc.ServiceRegistrar, srv PatchServer)
- type APP
- type ApplyInfo
- func (*ApplyInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyInfo) GetApp() *APP
- func (x *ApplyInfo) GetData() []*FILE
- func (x *ApplyInfo) GetVerified() bool
- func (*ApplyInfo) ProtoMessage()
- func (x *ApplyInfo) ProtoReflect() protoreflect.Message
- func (x *ApplyInfo) Reset()
- func (x *ApplyInfo) String() string
- type ApplyReq
- type ApplyResp
- type CmdReq
- type CmdResp
- type DownloadInfo
- func (*DownloadInfo) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadInfo) GetMessage() string
- func (x *DownloadInfo) GetName() string
- func (*DownloadInfo) ProtoMessage()
- func (x *DownloadInfo) ProtoReflect() protoreflect.Message
- func (x *DownloadInfo) Reset()
- func (x *DownloadInfo) String() string
- type DownloadReq
- type DownloadResp
- func (*DownloadResp) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadResp) GetChunkData() []byte
- func (m *DownloadResp) GetData() isDownloadResp_Data
- func (x *DownloadResp) GetFile() *DownloadInfo
- func (*DownloadResp) ProtoMessage()
- func (x *DownloadResp) ProtoReflect() protoreflect.Message
- func (x *DownloadResp) Reset()
- func (x *DownloadResp) String() string
- type DownloadResp_ChunkData
- type DownloadResp_File
- type ExtractReq
- type ExtractResp
- func (*ExtractResp) Descriptor() ([]byte, []int)deprecated
- func (x *ExtractResp) GetData() []*FILE
- func (x *ExtractResp) GetPath() string
- func (x *ExtractResp) GetVerified() bool
- func (*ExtractResp) ProtoMessage()
- func (x *ExtractResp) ProtoReflect() protoreflect.Message
- func (x *ExtractResp) Reset()
- func (x *ExtractResp) String() string
- type FILE
- func (*FILE) Descriptor() ([]byte, []int)deprecated
- func (x *FILE) GetIsdir() bool
- func (x *FILE) GetName() string
- func (x *FILE) GetPath() string
- func (x *FILE) GetSize() int64
- func (x *FILE) GetTime() *timestamppb.Timestamp
- func (*FILE) ProtoMessage()
- func (x *FILE) ProtoReflect() protoreflect.Message
- func (x *FILE) Reset()
- func (x *FILE) String() string
- type FileInfo
- func (*FileInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FileInfo) GetFileExt() string
- func (x *FileInfo) GetFileInfo() *FILE
- func (x *FileInfo) GetFileName() string
- func (*FileInfo) ProtoMessage()
- func (x *FileInfo) ProtoReflect() protoreflect.Message
- func (x *FileInfo) Reset()
- func (x *FileInfo) String() string
- type ListUploadedReq
- type ListUploadedResp
- type PatchClient
- type PatchServer
- type Patch_ApplyClient
- type Patch_ApplyServer
- type Patch_DownloadClient
- type Patch_DownloadServer
- type Patch_UploadClient
- type Patch_UploadServer
- type Patch_VerifyClient
- type Patch_VerifyServer
- type PingReq
- type PingResp
- type RightsInfo
- type RightsReq
- type RightsResp
- type UnimplementedPatchServer
- func (UnimplementedPatchServer) Apply(*ApplyReq, Patch_ApplyServer) error
- func (UnimplementedPatchServer) Checks(context.Context, *RightsReq) (*RightsResp, error)
- func (UnimplementedPatchServer) Download(*DownloadReq, Patch_DownloadServer) error
- func (UnimplementedPatchServer) Execute(context.Context, *CmdReq) (*CmdResp, error)
- func (UnimplementedPatchServer) Extract(context.Context, *ExtractReq) (*ExtractResp, error)
- func (UnimplementedPatchServer) ListUploaded(context.Context, *ListUploadedReq) (*ListUploadedResp, error)
- func (UnimplementedPatchServer) Ping(context.Context, *PingReq) (*PingResp, error)
- func (UnimplementedPatchServer) Upload(Patch_UploadServer) error
- func (UnimplementedPatchServer) Verify(*VerifyReq, Patch_VerifyServer) error
- type UnsafePatchServer
- type UploadReq
- func (*UploadReq) Descriptor() ([]byte, []int)deprecated
- func (x *UploadReq) GetChunkData() []byte
- func (m *UploadReq) GetData() isUploadReq_Data
- func (x *UploadReq) GetInfo() *FileInfo
- func (*UploadReq) ProtoMessage()
- func (x *UploadReq) ProtoReflect() protoreflect.Message
- func (x *UploadReq) Reset()
- func (x *UploadReq) String() string
- type UploadReq_ChunkData
- type UploadReq_Info
- type UploadResp
- type VerifyInfo
- func (*VerifyInfo) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyInfo) GetApp() *APP
- func (x *VerifyInfo) GetData() []*FILE
- func (x *VerifyInfo) GetVerified() bool
- func (*VerifyInfo) ProtoMessage()
- func (x *VerifyInfo) ProtoReflect() protoreflect.Message
- func (x *VerifyInfo) Reset()
- func (x *VerifyInfo) String() string
- type VerifyReq
- type VerifyResp
Constants ¶
This section is empty.
Variables ¶
var File_app_message_proto protoreflect.FileDescriptor
var File_apply_message_proto protoreflect.FileDescriptor
var File_check_message_proto protoreflect.FileDescriptor
var File_cmd_message_proto protoreflect.FileDescriptor
var File_download_message_proto protoreflect.FileDescriptor
var File_extract_message_proto protoreflect.FileDescriptor
var File_file_message_proto protoreflect.FileDescriptor
var File_patch_service_proto protoreflect.FileDescriptor
var File_ping_message_proto protoreflect.FileDescriptor
var File_upload_message_proto protoreflect.FileDescriptor
var File_verify_message_proto protoreflect.FileDescriptor
var Patch_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Patch", HandlerType: (*PatchServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _Patch_Ping_Handler, }, { MethodName: "Checks", Handler: _Patch_Checks_Handler, }, { MethodName: "Extract", Handler: _Patch_Extract_Handler, }, { MethodName: "Execute", Handler: _Patch_Execute_Handler, }, { MethodName: "ListUploaded", Handler: _Patch_ListUploaded_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Upload", Handler: _Patch_Upload_Handler, ClientStreams: true, }, { StreamName: "Apply", Handler: _Patch_Apply_Handler, ServerStreams: true, }, { StreamName: "Verify", Handler: _Patch_Verify_Handler, ServerStreams: true, }, { StreamName: "Download", Handler: _Patch_Download_Handler, ServerStreams: true, }, }, Metadata: "patch_service.proto", }
Patch_ServiceDesc is the grpc.ServiceDesc for Patch service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPatchServer ¶
func RegisterPatchServer(s grpc.ServiceRegistrar, srv PatchServer)
Types ¶
type APP ¶
type APP struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"` // contains filtered or unexported fields }
func (*APP) Descriptor
deprecated
func (*APP) GetService ¶
func (*APP) ProtoMessage ¶
func (*APP) ProtoMessage()
func (*APP) ProtoReflect ¶
func (x *APP) ProtoReflect() protoreflect.Message
type ApplyInfo ¶
type ApplyInfo struct { App *APP `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"` Verified bool `protobuf:"varint,2,opt,name=verified,proto3" json:"verified,omitempty"` Data []*FILE `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ApplyInfo) Descriptor
deprecated
func (*ApplyInfo) GetVerified ¶
func (*ApplyInfo) ProtoMessage ¶
func (*ApplyInfo) ProtoMessage()
func (*ApplyInfo) ProtoReflect ¶
func (x *ApplyInfo) ProtoReflect() protoreflect.Message
type ApplyReq ¶
type ApplyReq struct { Applications []*APP `protobuf:"bytes,1,rep,name=applications,proto3" json:"applications,omitempty"` // contains filtered or unexported fields }
func (*ApplyReq) Descriptor
deprecated
func (*ApplyReq) GetApplications ¶
func (*ApplyReq) ProtoMessage ¶
func (*ApplyReq) ProtoMessage()
func (*ApplyReq) ProtoReflect ¶
func (x *ApplyReq) ProtoReflect() protoreflect.Message
type ApplyResp ¶
type ApplyResp struct { Applications []*ApplyInfo `protobuf:"bytes,1,rep,name=applications,proto3" json:"applications,omitempty"` // contains filtered or unexported fields }
func (*ApplyResp) Descriptor
deprecated
func (*ApplyResp) GetApplications ¶
func (*ApplyResp) ProtoMessage ¶
func (*ApplyResp) ProtoMessage()
func (*ApplyResp) ProtoReflect ¶
func (x *ApplyResp) ProtoReflect() protoreflect.Message
type CmdReq ¶
type CmdReq struct { Cmd string `protobuf:"bytes,1,opt,name=cmd,proto3" json:"cmd,omitempty"` Pass string `protobuf:"bytes,2,opt,name=pass,proto3" json:"pass,omitempty"` // contains filtered or unexported fields }
func (*CmdReq) Descriptor
deprecated
func (*CmdReq) ProtoMessage ¶
func (*CmdReq) ProtoMessage()
func (*CmdReq) ProtoReflect ¶
func (x *CmdReq) ProtoReflect() protoreflect.Message
type CmdResp ¶
type CmdResp struct { Out []byte `protobuf:"bytes,1,opt,name=out,proto3" json:"out,omitempty"` Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"` // contains filtered or unexported fields }
func (*CmdResp) Descriptor
deprecated
func (*CmdResp) ProtoMessage ¶
func (*CmdResp) ProtoMessage()
func (*CmdResp) ProtoReflect ¶
func (x *CmdResp) ProtoReflect() protoreflect.Message
type DownloadInfo ¶ added in v0.2.1
type DownloadInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*DownloadInfo) Descriptor
deprecated
added in
v0.2.1
func (*DownloadInfo) Descriptor() ([]byte, []int)
Deprecated: Use DownloadInfo.ProtoReflect.Descriptor instead.
func (*DownloadInfo) GetMessage ¶ added in v0.2.1
func (x *DownloadInfo) GetMessage() string
func (*DownloadInfo) GetName ¶ added in v0.2.1
func (x *DownloadInfo) GetName() string
func (*DownloadInfo) ProtoMessage ¶ added in v0.2.1
func (*DownloadInfo) ProtoMessage()
func (*DownloadInfo) ProtoReflect ¶ added in v0.2.1
func (x *DownloadInfo) ProtoReflect() protoreflect.Message
func (*DownloadInfo) Reset ¶ added in v0.2.1
func (x *DownloadInfo) Reset()
func (*DownloadInfo) String ¶ added in v0.2.1
func (x *DownloadInfo) String() string
type DownloadReq ¶ added in v0.2.1
type DownloadReq struct { FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // contains filtered or unexported fields }
func (*DownloadReq) Descriptor
deprecated
added in
v0.2.1
func (*DownloadReq) Descriptor() ([]byte, []int)
Deprecated: Use DownloadReq.ProtoReflect.Descriptor instead.
func (*DownloadReq) GetFileName ¶ added in v0.2.1
func (x *DownloadReq) GetFileName() string
func (*DownloadReq) ProtoMessage ¶ added in v0.2.1
func (*DownloadReq) ProtoMessage()
func (*DownloadReq) ProtoReflect ¶ added in v0.2.1
func (x *DownloadReq) ProtoReflect() protoreflect.Message
func (*DownloadReq) Reset ¶ added in v0.2.1
func (x *DownloadReq) Reset()
func (*DownloadReq) String ¶ added in v0.2.1
func (x *DownloadReq) String() string
type DownloadResp ¶ added in v0.2.1
type DownloadResp struct { // Types that are assignable to Data: // *DownloadResp_File // *DownloadResp_ChunkData Data isDownloadResp_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
func (*DownloadResp) Descriptor
deprecated
added in
v0.2.1
func (*DownloadResp) Descriptor() ([]byte, []int)
Deprecated: Use DownloadResp.ProtoReflect.Descriptor instead.
func (*DownloadResp) GetChunkData ¶ added in v0.2.1
func (x *DownloadResp) GetChunkData() []byte
func (*DownloadResp) GetData ¶ added in v0.2.1
func (m *DownloadResp) GetData() isDownloadResp_Data
func (*DownloadResp) GetFile ¶ added in v0.2.1
func (x *DownloadResp) GetFile() *DownloadInfo
func (*DownloadResp) ProtoMessage ¶ added in v0.2.1
func (*DownloadResp) ProtoMessage()
func (*DownloadResp) ProtoReflect ¶ added in v0.2.1
func (x *DownloadResp) ProtoReflect() protoreflect.Message
func (*DownloadResp) Reset ¶ added in v0.2.1
func (x *DownloadResp) Reset()
func (*DownloadResp) String ¶ added in v0.2.1
func (x *DownloadResp) String() string
type DownloadResp_ChunkData ¶ added in v0.2.1
type DownloadResp_ChunkData struct {
ChunkData []byte `protobuf:"bytes,2,opt,name=chunk_data,json=chunkData,proto3,oneof"`
}
type DownloadResp_File ¶ added in v0.2.1
type DownloadResp_File struct {
File *DownloadInfo `protobuf:"bytes,1,opt,name=file,proto3,oneof"`
}
type ExtractReq ¶
type ExtractReq struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ExtractReq) Descriptor
deprecated
func (*ExtractReq) Descriptor() ([]byte, []int)
Deprecated: Use ExtractReq.ProtoReflect.Descriptor instead.
func (*ExtractReq) GetName ¶
func (x *ExtractReq) GetName() string
func (*ExtractReq) GetPath ¶
func (x *ExtractReq) GetPath() string
func (*ExtractReq) ProtoMessage ¶
func (*ExtractReq) ProtoMessage()
func (*ExtractReq) ProtoReflect ¶
func (x *ExtractReq) ProtoReflect() protoreflect.Message
func (*ExtractReq) Reset ¶
func (x *ExtractReq) Reset()
func (*ExtractReq) String ¶
func (x *ExtractReq) String() string
type ExtractResp ¶
type ExtractResp struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Verified bool `protobuf:"varint,2,opt,name=verified,proto3" json:"verified,omitempty"` Data []*FILE `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ExtractResp) Descriptor
deprecated
func (*ExtractResp) Descriptor() ([]byte, []int)
Deprecated: Use ExtractResp.ProtoReflect.Descriptor instead.
func (*ExtractResp) GetData ¶
func (x *ExtractResp) GetData() []*FILE
func (*ExtractResp) GetPath ¶
func (x *ExtractResp) GetPath() string
func (*ExtractResp) GetVerified ¶
func (x *ExtractResp) GetVerified() bool
func (*ExtractResp) ProtoMessage ¶
func (*ExtractResp) ProtoMessage()
func (*ExtractResp) ProtoReflect ¶
func (x *ExtractResp) ProtoReflect() protoreflect.Message
func (*ExtractResp) Reset ¶
func (x *ExtractResp) Reset()
func (*ExtractResp) String ¶
func (x *ExtractResp) String() string
type FILE ¶
type FILE struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` Isdir bool `protobuf:"varint,3,opt,name=isdir,proto3" json:"isdir,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*FILE) Descriptor
deprecated
func (*FILE) GetTime ¶
func (x *FILE) GetTime() *timestamppb.Timestamp
func (*FILE) ProtoMessage ¶
func (*FILE) ProtoMessage()
func (*FILE) ProtoReflect ¶
func (x *FILE) ProtoReflect() protoreflect.Message
type FileInfo ¶
type FileInfo struct { FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` FileExt string `protobuf:"bytes,2,opt,name=file_ext,json=fileExt,proto3" json:"file_ext,omitempty"` FileInfo *FILE `protobuf:"bytes,3,opt,name=file_info,json=fileInfo,proto3" json:"file_info,omitempty"` // contains filtered or unexported fields }
func (*FileInfo) Descriptor
deprecated
func (*FileInfo) GetFileExt ¶
func (*FileInfo) GetFileInfo ¶
func (*FileInfo) GetFileName ¶
func (*FileInfo) ProtoMessage ¶
func (*FileInfo) ProtoMessage()
func (*FileInfo) ProtoReflect ¶
func (x *FileInfo) ProtoReflect() protoreflect.Message
type ListUploadedReq ¶
type ListUploadedReq struct {
// contains filtered or unexported fields
}
func (*ListUploadedReq) Descriptor
deprecated
func (*ListUploadedReq) Descriptor() ([]byte, []int)
Deprecated: Use ListUploadedReq.ProtoReflect.Descriptor instead.
func (*ListUploadedReq) ProtoMessage ¶
func (*ListUploadedReq) ProtoMessage()
func (*ListUploadedReq) ProtoReflect ¶
func (x *ListUploadedReq) ProtoReflect() protoreflect.Message
func (*ListUploadedReq) Reset ¶
func (x *ListUploadedReq) Reset()
func (*ListUploadedReq) String ¶
func (x *ListUploadedReq) String() string
type ListUploadedResp ¶
type ListUploadedResp struct { Items []string `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*ListUploadedResp) Descriptor
deprecated
func (*ListUploadedResp) Descriptor() ([]byte, []int)
Deprecated: Use ListUploadedResp.ProtoReflect.Descriptor instead.
func (*ListUploadedResp) GetItems ¶
func (x *ListUploadedResp) GetItems() []string
func (*ListUploadedResp) ProtoMessage ¶
func (*ListUploadedResp) ProtoMessage()
func (*ListUploadedResp) ProtoReflect ¶
func (x *ListUploadedResp) ProtoReflect() protoreflect.Message
func (*ListUploadedResp) Reset ¶
func (x *ListUploadedResp) Reset()
func (*ListUploadedResp) String ¶
func (x *ListUploadedResp) String() string
type PatchClient ¶
type PatchClient interface { // unary rpc - ping status check Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PingResp, error) // unary rpc - read/write rights check Checks(ctx context.Context, in *RightsReq, opts ...grpc.CallOption) (*RightsResp, error) // client streaming rpc - file upload in chunks Upload(ctx context.Context, opts ...grpc.CallOption) (Patch_UploadClient, error) // unary rpc - extract file Extract(ctx context.Context, in *ExtractReq, opts ...grpc.CallOption) (*ExtractResp, error) // server streaming rpc - applying patch Apply(ctx context.Context, in *ApplyReq, opts ...grpc.CallOption) (Patch_ApplyClient, error) // server streaming rpc - verify patch Verify(ctx context.Context, in *VerifyReq, opts ...grpc.CallOption) (Patch_VerifyClient, error) // unary rpc - cmd Execute(ctx context.Context, in *CmdReq, opts ...grpc.CallOption) (*CmdResp, error) // unary rpc - cmd ListUploaded(ctx context.Context, in *ListUploadedReq, opts ...grpc.CallOption) (*ListUploadedResp, error) // server streaming rpc - download in chunks Download(ctx context.Context, in *DownloadReq, opts ...grpc.CallOption) (Patch_DownloadClient, error) }
PatchClient is the client API for Patch service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPatchClient ¶
func NewPatchClient(cc grpc.ClientConnInterface) PatchClient
type PatchServer ¶
type PatchServer interface { // unary rpc - ping status check Ping(context.Context, *PingReq) (*PingResp, error) // unary rpc - read/write rights check Checks(context.Context, *RightsReq) (*RightsResp, error) // client streaming rpc - file upload in chunks Upload(Patch_UploadServer) error // unary rpc - extract file Extract(context.Context, *ExtractReq) (*ExtractResp, error) // server streaming rpc - applying patch Apply(*ApplyReq, Patch_ApplyServer) error // server streaming rpc - verify patch Verify(*VerifyReq, Patch_VerifyServer) error // unary rpc - cmd Execute(context.Context, *CmdReq) (*CmdResp, error) // unary rpc - cmd ListUploaded(context.Context, *ListUploadedReq) (*ListUploadedResp, error) // server streaming rpc - download in chunks Download(*DownloadReq, Patch_DownloadServer) error // contains filtered or unexported methods }
PatchServer is the server API for Patch service. All implementations must embed UnimplementedPatchServer for forward compatibility
type Patch_ApplyClient ¶
type Patch_ApplyClient interface { Recv() (*ApplyResp, error) grpc.ClientStream }
type Patch_ApplyServer ¶
type Patch_ApplyServer interface { Send(*ApplyResp) error grpc.ServerStream }
type Patch_DownloadClient ¶ added in v0.2.1
type Patch_DownloadClient interface { Recv() (*DownloadResp, error) grpc.ClientStream }
type Patch_DownloadServer ¶ added in v0.2.1
type Patch_DownloadServer interface { Send(*DownloadResp) error grpc.ServerStream }
type Patch_UploadClient ¶
type Patch_UploadClient interface { Send(*UploadReq) error CloseAndRecv() (*UploadResp, error) grpc.ClientStream }
type Patch_UploadServer ¶
type Patch_UploadServer interface { SendAndClose(*UploadResp) error Recv() (*UploadReq, error) grpc.ServerStream }
type Patch_VerifyClient ¶
type Patch_VerifyClient interface { Recv() (*VerifyResp, error) grpc.ClientStream }
type Patch_VerifyServer ¶
type Patch_VerifyServer interface { Send(*VerifyResp) error grpc.ServerStream }
type PingReq ¶
type PingReq struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*PingReq) Descriptor
deprecated
func (*PingReq) ProtoMessage ¶
func (*PingReq) ProtoMessage()
func (*PingReq) ProtoReflect ¶
func (x *PingReq) ProtoReflect() protoreflect.Message
type PingResp ¶
type PingResp struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*PingResp) Descriptor
deprecated
func (*PingResp) ProtoMessage ¶
func (*PingResp) ProtoMessage()
func (*PingResp) ProtoReflect ¶
func (x *PingResp) ProtoReflect() protoreflect.Message
type RightsInfo ¶
type RightsInfo struct { App *APP `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"` Ok bool `protobuf:"varint,2,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*RightsInfo) Descriptor
deprecated
func (*RightsInfo) Descriptor() ([]byte, []int)
Deprecated: Use RightsInfo.ProtoReflect.Descriptor instead.
func (*RightsInfo) GetApp ¶
func (x *RightsInfo) GetApp() *APP
func (*RightsInfo) GetOk ¶
func (x *RightsInfo) GetOk() bool
func (*RightsInfo) ProtoMessage ¶
func (*RightsInfo) ProtoMessage()
func (*RightsInfo) ProtoReflect ¶
func (x *RightsInfo) ProtoReflect() protoreflect.Message
func (*RightsInfo) Reset ¶
func (x *RightsInfo) Reset()
func (*RightsInfo) String ¶
func (x *RightsInfo) String() string
type RightsReq ¶
type RightsReq struct { Applications []*APP `protobuf:"bytes,1,rep,name=applications,proto3" json:"applications,omitempty"` // contains filtered or unexported fields }
func (*RightsReq) Descriptor
deprecated
func (*RightsReq) GetApplications ¶
func (*RightsReq) ProtoMessage ¶
func (*RightsReq) ProtoMessage()
func (*RightsReq) ProtoReflect ¶
func (x *RightsReq) ProtoReflect() protoreflect.Message
type RightsResp ¶
type RightsResp struct { Applications []*RightsInfo `protobuf:"bytes,1,rep,name=applications,proto3" json:"applications,omitempty"` // contains filtered or unexported fields }
func (*RightsResp) Descriptor
deprecated
func (*RightsResp) Descriptor() ([]byte, []int)
Deprecated: Use RightsResp.ProtoReflect.Descriptor instead.
func (*RightsResp) GetApplications ¶
func (x *RightsResp) GetApplications() []*RightsInfo
func (*RightsResp) ProtoMessage ¶
func (*RightsResp) ProtoMessage()
func (*RightsResp) ProtoReflect ¶
func (x *RightsResp) ProtoReflect() protoreflect.Message
func (*RightsResp) Reset ¶
func (x *RightsResp) Reset()
func (*RightsResp) String ¶
func (x *RightsResp) String() string
type UnimplementedPatchServer ¶
type UnimplementedPatchServer struct { }
UnimplementedPatchServer must be embedded to have forward compatible implementations.
func (UnimplementedPatchServer) Apply ¶
func (UnimplementedPatchServer) Apply(*ApplyReq, Patch_ApplyServer) error
func (UnimplementedPatchServer) Checks ¶
func (UnimplementedPatchServer) Checks(context.Context, *RightsReq) (*RightsResp, error)
func (UnimplementedPatchServer) Download ¶ added in v0.2.1
func (UnimplementedPatchServer) Download(*DownloadReq, Patch_DownloadServer) error
func (UnimplementedPatchServer) Extract ¶
func (UnimplementedPatchServer) Extract(context.Context, *ExtractReq) (*ExtractResp, error)
func (UnimplementedPatchServer) ListUploaded ¶
func (UnimplementedPatchServer) ListUploaded(context.Context, *ListUploadedReq) (*ListUploadedResp, error)
func (UnimplementedPatchServer) Upload ¶
func (UnimplementedPatchServer) Upload(Patch_UploadServer) error
func (UnimplementedPatchServer) Verify ¶
func (UnimplementedPatchServer) Verify(*VerifyReq, Patch_VerifyServer) error
type UnsafePatchServer ¶
type UnsafePatchServer interface {
// contains filtered or unexported methods
}
UnsafePatchServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PatchServer will result in compilation errors.
type UploadReq ¶
type UploadReq struct { // Types that are assignable to Data: // *UploadReq_Info // *UploadReq_ChunkData Data isUploadReq_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
func (*UploadReq) Descriptor
deprecated
func (*UploadReq) GetChunkData ¶
func (*UploadReq) ProtoMessage ¶
func (*UploadReq) ProtoMessage()
func (*UploadReq) ProtoReflect ¶
func (x *UploadReq) ProtoReflect() protoreflect.Message
type UploadReq_ChunkData ¶
type UploadReq_ChunkData struct {
ChunkData []byte `protobuf:"bytes,2,opt,name=chunk_data,json=chunkData,proto3,oneof"`
}
type UploadReq_Info ¶
type UploadReq_Info struct {
Info *FileInfo `protobuf:"bytes,1,opt,name=info,proto3,oneof"`
}
type UploadResp ¶
type UploadResp struct { Info *FileInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*UploadResp) Descriptor
deprecated
func (*UploadResp) Descriptor() ([]byte, []int)
Deprecated: Use UploadResp.ProtoReflect.Descriptor instead.
func (*UploadResp) GetInfo ¶
func (x *UploadResp) GetInfo() *FileInfo
func (*UploadResp) ProtoMessage ¶
func (*UploadResp) ProtoMessage()
func (*UploadResp) ProtoReflect ¶
func (x *UploadResp) ProtoReflect() protoreflect.Message
func (*UploadResp) Reset ¶
func (x *UploadResp) Reset()
func (*UploadResp) String ¶
func (x *UploadResp) String() string
type VerifyInfo ¶
type VerifyInfo struct { App *APP `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"` Verified bool `protobuf:"varint,2,opt,name=verified,proto3" json:"verified,omitempty"` Data []*FILE `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*VerifyInfo) Descriptor
deprecated
func (*VerifyInfo) Descriptor() ([]byte, []int)
Deprecated: Use VerifyInfo.ProtoReflect.Descriptor instead.
func (*VerifyInfo) GetApp ¶
func (x *VerifyInfo) GetApp() *APP
func (*VerifyInfo) GetData ¶
func (x *VerifyInfo) GetData() []*FILE
func (*VerifyInfo) GetVerified ¶
func (x *VerifyInfo) GetVerified() bool
func (*VerifyInfo) ProtoMessage ¶
func (*VerifyInfo) ProtoMessage()
func (*VerifyInfo) ProtoReflect ¶
func (x *VerifyInfo) ProtoReflect() protoreflect.Message
func (*VerifyInfo) Reset ¶
func (x *VerifyInfo) Reset()
func (*VerifyInfo) String ¶
func (x *VerifyInfo) String() string
type VerifyReq ¶
type VerifyReq struct { Applications []*APP `protobuf:"bytes,1,rep,name=applications,proto3" json:"applications,omitempty"` // contains filtered or unexported fields }
func (*VerifyReq) Descriptor
deprecated
func (*VerifyReq) GetApplications ¶
func (*VerifyReq) ProtoMessage ¶
func (*VerifyReq) ProtoMessage()
func (*VerifyReq) ProtoReflect ¶
func (x *VerifyReq) ProtoReflect() protoreflect.Message
type VerifyResp ¶
type VerifyResp struct { Applications []*VerifyInfo `protobuf:"bytes,1,rep,name=applications,proto3" json:"applications,omitempty"` // contains filtered or unexported fields }
func (*VerifyResp) Descriptor
deprecated
func (*VerifyResp) Descriptor() ([]byte, []int)
Deprecated: Use VerifyResp.ProtoReflect.Descriptor instead.
func (*VerifyResp) GetApplications ¶
func (x *VerifyResp) GetApplications() []*VerifyInfo
func (*VerifyResp) ProtoMessage ¶
func (*VerifyResp) ProtoMessage()
func (*VerifyResp) ProtoReflect ¶
func (x *VerifyResp) ProtoReflect() protoreflect.Message
func (*VerifyResp) Reset ¶
func (x *VerifyResp) Reset()
func (*VerifyResp) String ¶
func (x *VerifyResp) String() string