Documentation ¶
Overview ¶
Package fileserver is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func FileDownload_ProcessDownloadStream(w io.Writer, recv func() (*DownloadFileResponse, error)) (sha256Checksum string, err error)
- func RegisterFileServerHandler(ctx context.Context, mux *runtime.ServeMux, conn grpc.ClientConnInterface) error
- func RegisterFileServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FileServerClient) error
- func RegisterFileServerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterFileServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FileServerServer) error
- func RegisterFileServerServer(s grpc.ServiceRegistrar, srv FileServerServer)
- type CleanTombstonesRequest
- type CleanTombstonesResponse
- func (*CleanTombstonesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CleanTombstonesResponse) GetTombstonesCleaned() int32
- func (*CleanTombstonesResponse) ProtoMessage()
- func (x *CleanTombstonesResponse) ProtoReflect() protoreflect.Message
- func (x *CleanTombstonesResponse) Reset()
- func (x *CleanTombstonesResponse) String() string
- type DeleteFileRequest
- func (*DeleteFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFileRequest) GetId() string
- func (x *DeleteFileRequest) GetPermanent() bool
- func (*DeleteFileRequest) ProtoMessage()
- func (x *DeleteFileRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteFileRequest) Reset()
- func (x *DeleteFileRequest) String() string
- type DeleteFileResponse
- type DownloadFileRequest
- func (*DownloadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadFileRequest) GetId() string
- func (*DownloadFileRequest) ProtoMessage()
- func (x *DownloadFileRequest) ProtoReflect() protoreflect.Message
- func (x *DownloadFileRequest) Reset()
- func (x *DownloadFileRequest) String() string
- type DownloadFileResponse
- func (*DownloadFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadFileResponse) GetChunkData() []byte
- func (*DownloadFileResponse) ProtoMessage()
- func (x *DownloadFileResponse) ProtoReflect() protoreflect.Message
- func (x *DownloadFileResponse) Reset()
- func (x *DownloadFileResponse) String() string
- type FileServerClient
- type FileServerServer
- type FileServer_DownloadFileClient
- type FileServer_DownloadFileServer
- type FileServer_UploadFileClient
- type FileServer_UploadFileServer
- type Filter
- type FilterBooleanOperator
- type FilterOperator
- type Filters
- type GetFileRequest
- func (*GetFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFileRequest) GetId() string
- func (m *GetFileRequest) GetIdLookup() isGetFileRequest_IdLookup
- func (x *GetFileRequest) GetKey() *v1.FileKey
- func (*GetFileRequest) ProtoMessage()
- func (x *GetFileRequest) ProtoReflect() protoreflect.Message
- func (x *GetFileRequest) Reset()
- func (x *GetFileRequest) String() string
- type GetFileRequest_Id
- type GetFileRequest_Key
- type GetFileResponse
- type ListFileMetadataRequest
- func (*ListFileMetadataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListFileMetadataRequest) GetFilterBy() []*ListFileMetadataRequest_ListFileFilter
- func (x *ListFileMetadataRequest) GetIncludeDeletedFiles() bool
- func (x *ListFileMetadataRequest) GetSortBy() []*ListFileMetadataRequest_ListFileSort
- func (*ListFileMetadataRequest) ProtoMessage()
- func (x *ListFileMetadataRequest) ProtoReflect() protoreflect.Message
- func (x *ListFileMetadataRequest) Reset()
- func (x *ListFileMetadataRequest) String() string
- type ListFileMetadataRequest_ListFileFilter
- func (*ListFileMetadataRequest_ListFileFilter) Descriptor() ([]byte, []int)deprecated
- func (x *ListFileMetadataRequest_ListFileFilter) GetKey() string
- func (x *ListFileMetadataRequest_ListFileFilter) GetOperator() ListFileMetadataRequest_ListFileFilter_Comparison
- func (x *ListFileMetadataRequest_ListFileFilter) GetValue() string
- func (*ListFileMetadataRequest_ListFileFilter) ProtoMessage()
- func (x *ListFileMetadataRequest_ListFileFilter) ProtoReflect() protoreflect.Message
- func (x *ListFileMetadataRequest_ListFileFilter) Reset()
- func (x *ListFileMetadataRequest_ListFileFilter) String() string
- type ListFileMetadataRequest_ListFileFilter_Comparison
- func (ListFileMetadataRequest_ListFileFilter_Comparison) Descriptor() protoreflect.EnumDescriptor
- func (x ListFileMetadataRequest_ListFileFilter_Comparison) Enum() *ListFileMetadataRequest_ListFileFilter_Comparison
- func (ListFileMetadataRequest_ListFileFilter_Comparison) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListFileMetadataRequest_ListFileFilter_Comparison) Number() protoreflect.EnumNumber
- func (x ListFileMetadataRequest_ListFileFilter_Comparison) String() string
- func (ListFileMetadataRequest_ListFileFilter_Comparison) Type() protoreflect.EnumType
- type ListFileMetadataRequest_ListFileSort
- func (*ListFileMetadataRequest_ListFileSort) Descriptor() ([]byte, []int)deprecated
- func (x *ListFileMetadataRequest_ListFileSort) GetKey() string
- func (x *ListFileMetadataRequest_ListFileSort) GetSortOrder() ListFileMetadataRequest_ListFileSort_SortOrder
- func (*ListFileMetadataRequest_ListFileSort) ProtoMessage()
- func (x *ListFileMetadataRequest_ListFileSort) ProtoReflect() protoreflect.Message
- func (x *ListFileMetadataRequest_ListFileSort) Reset()
- func (x *ListFileMetadataRequest_ListFileSort) String() string
- type ListFileMetadataRequest_ListFileSort_SortOrder
- func (ListFileMetadataRequest_ListFileSort_SortOrder) Descriptor() protoreflect.EnumDescriptor
- func (x ListFileMetadataRequest_ListFileSort_SortOrder) Enum() *ListFileMetadataRequest_ListFileSort_SortOrder
- func (ListFileMetadataRequest_ListFileSort_SortOrder) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListFileMetadataRequest_ListFileSort_SortOrder) Number() protoreflect.EnumNumber
- func (x ListFileMetadataRequest_ListFileSort_SortOrder) String() string
- func (ListFileMetadataRequest_ListFileSort_SortOrder) Type() protoreflect.EnumType
- type ListFileMetadataResponse
- func (*ListFileMetadataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListFileMetadataResponse) GetResults() *v1.FileInfo
- func (*ListFileMetadataResponse) ProtoMessage()
- func (x *ListFileMetadataResponse) ProtoReflect() protoreflect.Message
- func (x *ListFileMetadataResponse) Reset()
- func (x *ListFileMetadataResponse) String() string
- type ListFilesRequest
- func (*ListFilesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListFilesRequest) GetFilter() string
- func (x *ListFilesRequest) GetIncludeDeleted() bool
- func (x *ListFilesRequest) GetOrderBy() string
- func (x *ListFilesRequest) GetPageSize() int32
- func (x *ListFilesRequest) GetPageToken() string
- func (*ListFilesRequest) ProtoMessage()
- func (x *ListFilesRequest) ProtoReflect() protoreflect.Message
- func (x *ListFilesRequest) Reset()
- func (x *ListFilesRequest) String() string
- type ListFilesResponse
- func (*ListFilesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListFilesResponse) GetFiles() []*v1.FileInfo
- func (x *ListFilesResponse) GetNextPageToken() string
- func (x *ListFilesResponse) GetPageSize() int32
- func (*ListFilesResponse) ProtoMessage()
- func (x *ListFilesResponse) ProtoReflect() protoreflect.Message
- func (x *ListFilesResponse) Reset()
- func (x *ListFilesResponse) String() string
- type UnimplementedFileServerServer
- func (UnimplementedFileServerServer) CleanTombstones(context.Context, *CleanTombstonesRequest) (*CleanTombstonesResponse, error)
- func (UnimplementedFileServerServer) DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileResponse, error)
- func (UnimplementedFileServerServer) DownloadFile(*DownloadFileRequest, FileServer_DownloadFileServer) error
- func (UnimplementedFileServerServer) GetFile(context.Context, *GetFileRequest) (*GetFileResponse, error)
- func (UnimplementedFileServerServer) ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error)
- func (UnimplementedFileServerServer) UpdateFileMetadata(context.Context, *UpdateFileMetadataRequest) (*UpdateFileMetadataResponse, error)
- func (UnimplementedFileServerServer) UploadFile(FileServer_UploadFileServer) error
- type UnsafeFileServerServer
- type UpdateFileMetadataRequest
- func (*UpdateFileMetadataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateFileMetadataRequest) GetId() string
- func (x *UpdateFileMetadataRequest) GetMetadata() map[string]string
- func (*UpdateFileMetadataRequest) ProtoMessage()
- func (x *UpdateFileMetadataRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateFileMetadataRequest) Reset()
- func (x *UpdateFileMetadataRequest) String() string
- type UpdateFileMetadataResponse
- func (*UpdateFileMetadataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateFileMetadataResponse) GetFile() *v1.FileInfo
- func (*UpdateFileMetadataResponse) ProtoMessage()
- func (x *UpdateFileMetadataResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateFileMetadataResponse) Reset()
- func (x *UpdateFileMetadataResponse) String() string
- type UploadFileRequest
- func (*UploadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileRequest) GetChunkData() []byte
- func (m *UploadFileRequest) GetData() isUploadFileRequest_Data
- func (x *UploadFileRequest) GetInfo() *v1.FileInfo
- func (*UploadFileRequest) ProtoMessage()
- func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
- func (x *UploadFileRequest) Reset()
- func (x *UploadFileRequest) String() string
- type UploadFileRequest_ChunkData
- type UploadFileRequest_Info
- type UploadFileResponse
- func (*UploadFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileResponse) GetId() string
- func (x *UploadFileResponse) GetSize() uint32
- func (*UploadFileResponse) ProtoMessage()
- func (x *UploadFileResponse) ProtoReflect() protoreflect.Message
- func (x *UploadFileResponse) Reset()
- func (x *UploadFileResponse) String() string
Constants ¶
const ( FileServer_ListFiles_FullMethodName = "/dataservice.v1.fileserver.FileServer/ListFiles" FileServer_GetFile_FullMethodName = "/dataservice.v1.fileserver.FileServer/GetFile" FileServer_UploadFile_FullMethodName = "/dataservice.v1.fileserver.FileServer/UploadFile" FileServer_UpdateFileMetadata_FullMethodName = "/dataservice.v1.fileserver.FileServer/UpdateFileMetadata" FileServer_DownloadFile_FullMethodName = "/dataservice.v1.fileserver.FileServer/DownloadFile" FileServer_DeleteFile_FullMethodName = "/dataservice.v1.fileserver.FileServer/DeleteFile" FileServer_CleanTombstones_FullMethodName = "/dataservice.v1.fileserver.FileServer/CleanTombstones" )
const ErrFilterBadFormat = errors.Sentinel("incorrect filter should follow the form '[arg] [op] [arg] ([boolop] [arg] [op] [arg])...'")
Variables ¶
var ( ListFileMetadataRequest_ListFileFilter_Comparison_name = map[int32]string{ 0: "EQUAL", 1: "LESS_THAN", 2: "GREATER_THAN", 3: "CONTAINS", } ListFileMetadataRequest_ListFileFilter_Comparison_value = map[string]int32{ "EQUAL": 0, "LESS_THAN": 1, "GREATER_THAN": 2, "CONTAINS": 3, } )
Enum value maps for ListFileMetadataRequest_ListFileFilter_Comparison.
var ( ListFileMetadataRequest_ListFileSort_SortOrder_name = map[int32]string{ 0: "ASC", 1: "DESC", } ListFileMetadataRequest_ListFileSort_SortOrder_value = map[string]int32{ "ASC": 0, "DESC": 1, } )
Enum value maps for ListFileMetadataRequest_ListFileSort_SortOrder.
var (
ErrParseFailure = errors.Sentinel("filter parse failure")
)
var FileServer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "dataservice.v1.fileserver.FileServer", HandlerType: (*FileServerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListFiles", Handler: _FileServer_ListFiles_Handler, }, { MethodName: "GetFile", Handler: _FileServer_GetFile_Handler, }, { MethodName: "UpdateFileMetadata", Handler: _FileServer_UpdateFileMetadata_Handler, }, { MethodName: "DeleteFile", Handler: _FileServer_DeleteFile_Handler, }, { MethodName: "CleanTombstones", Handler: _FileServer_CleanTombstones_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "UploadFile", Handler: _FileServer_UploadFile_Handler, ClientStreams: true, }, { StreamName: "DownloadFile", Handler: _FileServer_DownloadFile_Handler, ServerStreams: true, }, }, Metadata: "dataservice/v1/fileserver/fileserver.proto", }
FileServer_ServiceDesc is the grpc.ServiceDesc for FileServer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_dataservice_v1_fileserver_fileserver_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFileServerHandler ¶
func RegisterFileServerHandler(ctx context.Context, mux *runtime.ServeMux, conn grpc.ClientConnInterface) error
RegisterFileServerHandler registers the http handlers for service FileServer to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterFileServerHandlerClient ¶
func RegisterFileServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FileServerClient) error
RegisterFileServerHandlerClient registers the http handlers for service FileServer to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FileServerClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FileServerClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FileServerClient" to call the correct interceptors.
func RegisterFileServerHandlerFromEndpoint ¶
func RegisterFileServerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterFileServerHandlerFromEndpoint is same as RegisterFileServerHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterFileServerHandlerServer ¶
func RegisterFileServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FileServerServer) error
RegisterFileServerHandlerServer registers the http handlers for service FileServer to "mux". UnaryRPC :call FileServerServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterFileServerHandlerFromEndpoint instead.
func RegisterFileServerServer ¶
func RegisterFileServerServer(s grpc.ServiceRegistrar, srv FileServerServer)
Types ¶
type CleanTombstonesRequest ¶
type CleanTombstonesRequest struct {
// contains filtered or unexported fields
}
func (*CleanTombstonesRequest) Descriptor
deprecated
func (*CleanTombstonesRequest) Descriptor() ([]byte, []int)
Deprecated: Use CleanTombstonesRequest.ProtoReflect.Descriptor instead.
func (*CleanTombstonesRequest) ProtoMessage ¶
func (*CleanTombstonesRequest) ProtoMessage()
func (*CleanTombstonesRequest) ProtoReflect ¶
func (x *CleanTombstonesRequest) ProtoReflect() protoreflect.Message
func (*CleanTombstonesRequest) Reset ¶
func (x *CleanTombstonesRequest) Reset()
func (*CleanTombstonesRequest) String ¶
func (x *CleanTombstonesRequest) String() string
type CleanTombstonesResponse ¶
type CleanTombstonesResponse struct { TombstonesCleaned int32 `protobuf:"varint,1,opt,name=tombstones_cleaned,json=tombstonesCleaned,proto3" json:"tombstones_cleaned,omitempty"` // contains filtered or unexported fields }
func (*CleanTombstonesResponse) Descriptor
deprecated
func (*CleanTombstonesResponse) Descriptor() ([]byte, []int)
Deprecated: Use CleanTombstonesResponse.ProtoReflect.Descriptor instead.
func (*CleanTombstonesResponse) GetTombstonesCleaned ¶
func (x *CleanTombstonesResponse) GetTombstonesCleaned() int32
func (*CleanTombstonesResponse) ProtoMessage ¶
func (*CleanTombstonesResponse) ProtoMessage()
func (*CleanTombstonesResponse) ProtoReflect ¶
func (x *CleanTombstonesResponse) ProtoReflect() protoreflect.Message
func (*CleanTombstonesResponse) Reset ¶
func (x *CleanTombstonesResponse) Reset()
func (*CleanTombstonesResponse) String ¶
func (x *CleanTombstonesResponse) String() string
type DeleteFileRequest ¶
type DeleteFileRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Permanent bool `protobuf:"varint,2,opt,name=permanent,proto3" json:"permanent,omitempty"` // contains filtered or unexported fields }
func (*DeleteFileRequest) Descriptor
deprecated
func (*DeleteFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFileRequest.ProtoReflect.Descriptor instead.
func (*DeleteFileRequest) GetId ¶
func (x *DeleteFileRequest) GetId() string
func (*DeleteFileRequest) GetPermanent ¶
func (x *DeleteFileRequest) GetPermanent() bool
func (*DeleteFileRequest) ProtoMessage ¶
func (*DeleteFileRequest) ProtoMessage()
func (*DeleteFileRequest) ProtoReflect ¶
func (x *DeleteFileRequest) ProtoReflect() protoreflect.Message
func (*DeleteFileRequest) Reset ¶
func (x *DeleteFileRequest) Reset()
func (*DeleteFileRequest) String ¶
func (x *DeleteFileRequest) String() string
type DeleteFileResponse ¶
type DeleteFileResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteFileResponse) Descriptor
deprecated
func (*DeleteFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFileResponse.ProtoReflect.Descriptor instead.
func (*DeleteFileResponse) GetId ¶
func (x *DeleteFileResponse) GetId() string
func (*DeleteFileResponse) ProtoMessage ¶
func (*DeleteFileResponse) ProtoMessage()
func (*DeleteFileResponse) ProtoReflect ¶
func (x *DeleteFileResponse) ProtoReflect() protoreflect.Message
func (*DeleteFileResponse) Reset ¶
func (x *DeleteFileResponse) Reset()
func (*DeleteFileResponse) String ¶
func (x *DeleteFileResponse) String() string
type DownloadFileRequest ¶
type DownloadFileRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DownloadFileRequest) Descriptor
deprecated
func (*DownloadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DownloadFileRequest.ProtoReflect.Descriptor instead.
func (*DownloadFileRequest) GetId ¶
func (x *DownloadFileRequest) GetId() string
func (*DownloadFileRequest) ProtoMessage ¶
func (*DownloadFileRequest) ProtoMessage()
func (*DownloadFileRequest) ProtoReflect ¶
func (x *DownloadFileRequest) ProtoReflect() protoreflect.Message
func (*DownloadFileRequest) Reset ¶
func (x *DownloadFileRequest) Reset()
func (*DownloadFileRequest) String ¶
func (x *DownloadFileRequest) String() string
type DownloadFileResponse ¶
type DownloadFileResponse struct { ChunkData []byte `protobuf:"bytes,2,opt,name=chunk_data,json=chunkData,proto3" json:"chunk_data,omitempty"` // contains filtered or unexported fields }
func (*DownloadFileResponse) Descriptor
deprecated
func (*DownloadFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use DownloadFileResponse.ProtoReflect.Descriptor instead.
func (*DownloadFileResponse) GetChunkData ¶
func (x *DownloadFileResponse) GetChunkData() []byte
func (*DownloadFileResponse) ProtoMessage ¶
func (*DownloadFileResponse) ProtoMessage()
func (*DownloadFileResponse) ProtoReflect ¶
func (x *DownloadFileResponse) ProtoReflect() protoreflect.Message
func (*DownloadFileResponse) Reset ¶
func (x *DownloadFileResponse) Reset()
func (*DownloadFileResponse) String ¶
func (x *DownloadFileResponse) String() string
type FileServerClient ¶
type FileServerClient interface { // Lists files. ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) GetFile(ctx context.Context, in *GetFileRequest, opts ...grpc.CallOption) (*GetFileResponse, error) UploadFile(ctx context.Context, opts ...grpc.CallOption) (FileServer_UploadFileClient, error) UpdateFileMetadata(ctx context.Context, in *UpdateFileMetadataRequest, opts ...grpc.CallOption) (*UpdateFileMetadataResponse, error) DownloadFile(ctx context.Context, in *DownloadFileRequest, opts ...grpc.CallOption) (FileServer_DownloadFileClient, error) DeleteFile(ctx context.Context, in *DeleteFileRequest, opts ...grpc.CallOption) (*DeleteFileResponse, error) CleanTombstones(ctx context.Context, in *CleanTombstonesRequest, opts ...grpc.CallOption) (*CleanTombstonesResponse, error) }
FileServerClient is the client API for FileServer 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 NewFileServerClient ¶
func NewFileServerClient(cc grpc.ClientConnInterface) FileServerClient
type FileServerServer ¶
type FileServerServer interface { // Lists files. ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error) GetFile(context.Context, *GetFileRequest) (*GetFileResponse, error) UploadFile(FileServer_UploadFileServer) error UpdateFileMetadata(context.Context, *UpdateFileMetadataRequest) (*UpdateFileMetadataResponse, error) DownloadFile(*DownloadFileRequest, FileServer_DownloadFileServer) error DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileResponse, error) CleanTombstones(context.Context, *CleanTombstonesRequest) (*CleanTombstonesResponse, error) // contains filtered or unexported methods }
FileServerServer is the server API for FileServer service. All implementations must embed UnimplementedFileServerServer for forward compatibility
type FileServer_DownloadFileClient ¶
type FileServer_DownloadFileClient interface { Recv() (*DownloadFileResponse, error) grpc.ClientStream }
type FileServer_DownloadFileServer ¶
type FileServer_DownloadFileServer interface { Send(*DownloadFileResponse) error grpc.ServerStream }
type FileServer_UploadFileClient ¶
type FileServer_UploadFileClient interface { Send(*UploadFileRequest) error CloseAndRecv() (*UploadFileResponse, error) grpc.ClientStream }
type FileServer_UploadFileServer ¶
type FileServer_UploadFileServer interface { SendAndClose(*UploadFileResponse) error Recv() (*UploadFileRequest, error) grpc.ServerStream }
type Filter ¶
type Filter struct { Left string Operator FilterOperator Right string NextFilterOperator FilterBooleanOperator }
func (*Filter) MarshalText ¶
type FilterBooleanOperator ¶
type FilterBooleanOperator string
const ( FilterAnd FilterBooleanOperator = "&&" FilterOr FilterBooleanOperator = "||" )
type FilterOperator ¶
type FilterOperator string
a==b,a>b,a<b ==,>=,<=,!==
const ( FilterEqual FilterOperator = "==" FilterNotEqual FilterOperator = "!=" FilterGreaterThan FilterOperator = ">" FilterGreaterThanEqual FilterOperator = ">=" FilterLessThan FilterOperator = "<" FilterLessThanEqual FilterOperator = "<=" )
func (FilterOperator) String ¶
func (f FilterOperator) String() string
type Filters ¶
type Filters []*Filter
func ParseFilters ¶
func (Filters) MarshalText ¶
func (*Filters) UnmarshalText ¶
type GetFileRequest ¶
type GetFileRequest struct { // Types that are assignable to IdLookup: // // *GetFileRequest_Id // *GetFileRequest_Key IdLookup isGetFileRequest_IdLookup `protobuf_oneof:"id_lookup"` // contains filtered or unexported fields }
func (*GetFileRequest) Descriptor
deprecated
func (*GetFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFileRequest.ProtoReflect.Descriptor instead.
func (*GetFileRequest) GetId ¶
func (x *GetFileRequest) GetId() string
func (*GetFileRequest) GetIdLookup ¶
func (m *GetFileRequest) GetIdLookup() isGetFileRequest_IdLookup
func (*GetFileRequest) GetKey ¶
func (x *GetFileRequest) GetKey() *v1.FileKey
func (*GetFileRequest) ProtoMessage ¶
func (*GetFileRequest) ProtoMessage()
func (*GetFileRequest) ProtoReflect ¶
func (x *GetFileRequest) ProtoReflect() protoreflect.Message
func (*GetFileRequest) Reset ¶
func (x *GetFileRequest) Reset()
func (*GetFileRequest) String ¶
func (x *GetFileRequest) String() string
type GetFileRequest_Id ¶
type GetFileRequest_Id struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof"`
}
type GetFileRequest_Key ¶
type GetFileResponse ¶
type GetFileResponse struct { Info *v1.FileInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*GetFileResponse) Descriptor
deprecated
func (*GetFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFileResponse.ProtoReflect.Descriptor instead.
func (*GetFileResponse) GetInfo ¶
func (x *GetFileResponse) GetInfo() *v1.FileInfo
func (*GetFileResponse) ProtoMessage ¶
func (*GetFileResponse) ProtoMessage()
func (*GetFileResponse) ProtoReflect ¶
func (x *GetFileResponse) ProtoReflect() protoreflect.Message
func (*GetFileResponse) Reset ¶
func (x *GetFileResponse) Reset()
func (*GetFileResponse) String ¶
func (x *GetFileResponse) String() string
type ListFileMetadataRequest ¶
type ListFileMetadataRequest struct { FilterBy []*ListFileMetadataRequest_ListFileFilter `protobuf:"bytes,1,rep,name=filter_by,json=filterBy,proto3" json:"filter_by,omitempty"` SortBy []*ListFileMetadataRequest_ListFileSort `protobuf:"bytes,2,rep,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` IncludeDeletedFiles bool `protobuf:"varint,3,opt,name=include_deleted_files,json=includeDeletedFiles,proto3" json:"include_deleted_files,omitempty"` // contains filtered or unexported fields }
func (*ListFileMetadataRequest) Descriptor
deprecated
func (*ListFileMetadataRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListFileMetadataRequest.ProtoReflect.Descriptor instead.
func (*ListFileMetadataRequest) GetFilterBy ¶
func (x *ListFileMetadataRequest) GetFilterBy() []*ListFileMetadataRequest_ListFileFilter
func (*ListFileMetadataRequest) GetIncludeDeletedFiles ¶
func (x *ListFileMetadataRequest) GetIncludeDeletedFiles() bool
func (*ListFileMetadataRequest) GetSortBy ¶
func (x *ListFileMetadataRequest) GetSortBy() []*ListFileMetadataRequest_ListFileSort
func (*ListFileMetadataRequest) ProtoMessage ¶
func (*ListFileMetadataRequest) ProtoMessage()
func (*ListFileMetadataRequest) ProtoReflect ¶
func (x *ListFileMetadataRequest) ProtoReflect() protoreflect.Message
func (*ListFileMetadataRequest) Reset ¶
func (x *ListFileMetadataRequest) Reset()
func (*ListFileMetadataRequest) String ¶
func (x *ListFileMetadataRequest) String() string
type ListFileMetadataRequest_ListFileFilter ¶
type ListFileMetadataRequest_ListFileFilter struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Operator ListFileMetadataRequest_ListFileFilter_Comparison `` /* 151-byte string literal not displayed */ Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ListFileMetadataRequest_ListFileFilter) Descriptor
deprecated
func (*ListFileMetadataRequest_ListFileFilter) Descriptor() ([]byte, []int)
Deprecated: Use ListFileMetadataRequest_ListFileFilter.ProtoReflect.Descriptor instead.
func (*ListFileMetadataRequest_ListFileFilter) GetKey ¶
func (x *ListFileMetadataRequest_ListFileFilter) GetKey() string
func (*ListFileMetadataRequest_ListFileFilter) GetOperator ¶
func (x *ListFileMetadataRequest_ListFileFilter) GetOperator() ListFileMetadataRequest_ListFileFilter_Comparison
func (*ListFileMetadataRequest_ListFileFilter) GetValue ¶
func (x *ListFileMetadataRequest_ListFileFilter) GetValue() string
func (*ListFileMetadataRequest_ListFileFilter) ProtoMessage ¶
func (*ListFileMetadataRequest_ListFileFilter) ProtoMessage()
func (*ListFileMetadataRequest_ListFileFilter) ProtoReflect ¶
func (x *ListFileMetadataRequest_ListFileFilter) ProtoReflect() protoreflect.Message
func (*ListFileMetadataRequest_ListFileFilter) Reset ¶
func (x *ListFileMetadataRequest_ListFileFilter) Reset()
func (*ListFileMetadataRequest_ListFileFilter) String ¶
func (x *ListFileMetadataRequest_ListFileFilter) String() string
type ListFileMetadataRequest_ListFileFilter_Comparison ¶
type ListFileMetadataRequest_ListFileFilter_Comparison int32
const ( ListFileMetadataRequest_ListFileFilter_EQUAL ListFileMetadataRequest_ListFileFilter_Comparison = 0 ListFileMetadataRequest_ListFileFilter_LESS_THAN ListFileMetadataRequest_ListFileFilter_Comparison = 1 ListFileMetadataRequest_ListFileFilter_GREATER_THAN ListFileMetadataRequest_ListFileFilter_Comparison = 2 ListFileMetadataRequest_ListFileFilter_CONTAINS ListFileMetadataRequest_ListFileFilter_Comparison = 3 )
func (ListFileMetadataRequest_ListFileFilter_Comparison) Descriptor ¶
func (ListFileMetadataRequest_ListFileFilter_Comparison) Descriptor() protoreflect.EnumDescriptor
func (ListFileMetadataRequest_ListFileFilter_Comparison) EnumDescriptor
deprecated
func (ListFileMetadataRequest_ListFileFilter_Comparison) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListFileMetadataRequest_ListFileFilter_Comparison.Descriptor instead.
func (ListFileMetadataRequest_ListFileFilter_Comparison) Number ¶
func (x ListFileMetadataRequest_ListFileFilter_Comparison) Number() protoreflect.EnumNumber
func (ListFileMetadataRequest_ListFileFilter_Comparison) String ¶
func (x ListFileMetadataRequest_ListFileFilter_Comparison) String() string
type ListFileMetadataRequest_ListFileSort ¶
type ListFileMetadataRequest_ListFileSort struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` SortOrder ListFileMetadataRequest_ListFileSort_SortOrder `` /* 167-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ListFileMetadataRequest_ListFileSort) Descriptor
deprecated
func (*ListFileMetadataRequest_ListFileSort) Descriptor() ([]byte, []int)
Deprecated: Use ListFileMetadataRequest_ListFileSort.ProtoReflect.Descriptor instead.
func (*ListFileMetadataRequest_ListFileSort) GetKey ¶
func (x *ListFileMetadataRequest_ListFileSort) GetKey() string
func (*ListFileMetadataRequest_ListFileSort) GetSortOrder ¶
func (x *ListFileMetadataRequest_ListFileSort) GetSortOrder() ListFileMetadataRequest_ListFileSort_SortOrder
func (*ListFileMetadataRequest_ListFileSort) ProtoMessage ¶
func (*ListFileMetadataRequest_ListFileSort) ProtoMessage()
func (*ListFileMetadataRequest_ListFileSort) ProtoReflect ¶
func (x *ListFileMetadataRequest_ListFileSort) ProtoReflect() protoreflect.Message
func (*ListFileMetadataRequest_ListFileSort) Reset ¶
func (x *ListFileMetadataRequest_ListFileSort) Reset()
func (*ListFileMetadataRequest_ListFileSort) String ¶
func (x *ListFileMetadataRequest_ListFileSort) String() string
type ListFileMetadataRequest_ListFileSort_SortOrder ¶
type ListFileMetadataRequest_ListFileSort_SortOrder int32
const ( ListFileMetadataRequest_ListFileSort_ASC ListFileMetadataRequest_ListFileSort_SortOrder = 0 ListFileMetadataRequest_ListFileSort_DESC ListFileMetadataRequest_ListFileSort_SortOrder = 1 )
func (ListFileMetadataRequest_ListFileSort_SortOrder) Descriptor ¶
func (ListFileMetadataRequest_ListFileSort_SortOrder) Descriptor() protoreflect.EnumDescriptor
func (ListFileMetadataRequest_ListFileSort_SortOrder) EnumDescriptor
deprecated
func (ListFileMetadataRequest_ListFileSort_SortOrder) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListFileMetadataRequest_ListFileSort_SortOrder.Descriptor instead.
func (ListFileMetadataRequest_ListFileSort_SortOrder) Number ¶
func (x ListFileMetadataRequest_ListFileSort_SortOrder) Number() protoreflect.EnumNumber
func (ListFileMetadataRequest_ListFileSort_SortOrder) String ¶
func (x ListFileMetadataRequest_ListFileSort_SortOrder) String() string
type ListFileMetadataResponse ¶
type ListFileMetadataResponse struct { Results *v1.FileInfo `protobuf:"bytes,1,opt,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListFileMetadataResponse) Descriptor
deprecated
func (*ListFileMetadataResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListFileMetadataResponse.ProtoReflect.Descriptor instead.
func (*ListFileMetadataResponse) GetResults ¶
func (x *ListFileMetadataResponse) GetResults() *v1.FileInfo
func (*ListFileMetadataResponse) ProtoMessage ¶
func (*ListFileMetadataResponse) ProtoMessage()
func (*ListFileMetadataResponse) ProtoReflect ¶
func (x *ListFileMetadataResponse) ProtoReflect() protoreflect.Message
func (*ListFileMetadataResponse) Reset ¶
func (x *ListFileMetadataResponse) Reset()
func (*ListFileMetadataResponse) String ¶
func (x *ListFileMetadataResponse) String() string
type ListFilesRequest ¶
type ListFilesRequest struct { // The maximum number of items to return. PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The next_page_token value returned from a previous List request, if any. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` IncludeDeleted bool `protobuf:"varint,5,opt,name=include_deleted,json=includeDeleted,proto3" json:"include_deleted,omitempty"` // contains filtered or unexported fields }
func (*ListFilesRequest) Descriptor
deprecated
func (*ListFilesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListFilesRequest.ProtoReflect.Descriptor instead.
func (*ListFilesRequest) GetFilter ¶
func (x *ListFilesRequest) GetFilter() string
func (*ListFilesRequest) GetIncludeDeleted ¶
func (x *ListFilesRequest) GetIncludeDeleted() bool
func (*ListFilesRequest) GetOrderBy ¶
func (x *ListFilesRequest) GetOrderBy() string
func (*ListFilesRequest) GetPageSize ¶
func (x *ListFilesRequest) GetPageSize() int32
func (*ListFilesRequest) GetPageToken ¶
func (x *ListFilesRequest) GetPageToken() string
func (*ListFilesRequest) ProtoMessage ¶
func (*ListFilesRequest) ProtoMessage()
func (*ListFilesRequest) ProtoReflect ¶
func (x *ListFilesRequest) ProtoReflect() protoreflect.Message
func (*ListFilesRequest) Reset ¶
func (x *ListFilesRequest) Reset()
func (*ListFilesRequest) String ¶
func (x *ListFilesRequest) String() string
type ListFilesResponse ¶
type ListFilesResponse struct { // The field name should match the noun "files" in the method name. There // will be a maximum number of items returned based on the page_size field // in the request. Files []*v1.FileInfo `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` // Token to retrieve the next page of results, or empty if there are no // more results in the list. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // The maximum number of items to return. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListFilesResponse) Descriptor
deprecated
func (*ListFilesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListFilesResponse.ProtoReflect.Descriptor instead.
func (*ListFilesResponse) GetFiles ¶
func (x *ListFilesResponse) GetFiles() []*v1.FileInfo
func (*ListFilesResponse) GetNextPageToken ¶
func (x *ListFilesResponse) GetNextPageToken() string
func (*ListFilesResponse) GetPageSize ¶
func (x *ListFilesResponse) GetPageSize() int32
func (*ListFilesResponse) ProtoMessage ¶
func (*ListFilesResponse) ProtoMessage()
func (*ListFilesResponse) ProtoReflect ¶
func (x *ListFilesResponse) ProtoReflect() protoreflect.Message
func (*ListFilesResponse) Reset ¶
func (x *ListFilesResponse) Reset()
func (*ListFilesResponse) String ¶
func (x *ListFilesResponse) String() string
type UnimplementedFileServerServer ¶
type UnimplementedFileServerServer struct { }
UnimplementedFileServerServer must be embedded to have forward compatible implementations.
func (UnimplementedFileServerServer) CleanTombstones ¶
func (UnimplementedFileServerServer) CleanTombstones(context.Context, *CleanTombstonesRequest) (*CleanTombstonesResponse, error)
func (UnimplementedFileServerServer) DeleteFile ¶
func (UnimplementedFileServerServer) DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileResponse, error)
func (UnimplementedFileServerServer) DownloadFile ¶
func (UnimplementedFileServerServer) DownloadFile(*DownloadFileRequest, FileServer_DownloadFileServer) error
func (UnimplementedFileServerServer) GetFile ¶
func (UnimplementedFileServerServer) GetFile(context.Context, *GetFileRequest) (*GetFileResponse, error)
func (UnimplementedFileServerServer) ListFiles ¶
func (UnimplementedFileServerServer) ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error)
func (UnimplementedFileServerServer) UpdateFileMetadata ¶
func (UnimplementedFileServerServer) UpdateFileMetadata(context.Context, *UpdateFileMetadataRequest) (*UpdateFileMetadataResponse, error)
func (UnimplementedFileServerServer) UploadFile ¶
func (UnimplementedFileServerServer) UploadFile(FileServer_UploadFileServer) error
type UnsafeFileServerServer ¶
type UnsafeFileServerServer interface {
// contains filtered or unexported methods
}
UnsafeFileServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FileServerServer will result in compilation errors.
type UpdateFileMetadataRequest ¶
type UpdateFileMetadataRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UpdateFileMetadataRequest) Descriptor
deprecated
func (*UpdateFileMetadataRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateFileMetadataRequest.ProtoReflect.Descriptor instead.
func (*UpdateFileMetadataRequest) GetId ¶
func (x *UpdateFileMetadataRequest) GetId() string
func (*UpdateFileMetadataRequest) GetMetadata ¶
func (x *UpdateFileMetadataRequest) GetMetadata() map[string]string
func (*UpdateFileMetadataRequest) ProtoMessage ¶
func (*UpdateFileMetadataRequest) ProtoMessage()
func (*UpdateFileMetadataRequest) ProtoReflect ¶
func (x *UpdateFileMetadataRequest) ProtoReflect() protoreflect.Message
func (*UpdateFileMetadataRequest) Reset ¶
func (x *UpdateFileMetadataRequest) Reset()
func (*UpdateFileMetadataRequest) String ¶
func (x *UpdateFileMetadataRequest) String() string
type UpdateFileMetadataResponse ¶
type UpdateFileMetadataResponse struct { File *v1.FileInfo `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // contains filtered or unexported fields }
func (*UpdateFileMetadataResponse) Descriptor
deprecated
func (*UpdateFileMetadataResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateFileMetadataResponse.ProtoReflect.Descriptor instead.
func (*UpdateFileMetadataResponse) GetFile ¶
func (x *UpdateFileMetadataResponse) GetFile() *v1.FileInfo
func (*UpdateFileMetadataResponse) ProtoMessage ¶
func (*UpdateFileMetadataResponse) ProtoMessage()
func (*UpdateFileMetadataResponse) ProtoReflect ¶
func (x *UpdateFileMetadataResponse) ProtoReflect() protoreflect.Message
func (*UpdateFileMetadataResponse) Reset ¶
func (x *UpdateFileMetadataResponse) Reset()
func (*UpdateFileMetadataResponse) String ¶
func (x *UpdateFileMetadataResponse) String() string
type UploadFileRequest ¶
type UploadFileRequest struct { // Types that are assignable to Data: // // *UploadFileRequest_Info // *UploadFileRequest_ChunkData Data isUploadFileRequest_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
streams a file identified by
func (*UploadFileRequest) Descriptor
deprecated
func (*UploadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileRequest.ProtoReflect.Descriptor instead.
func (*UploadFileRequest) GetChunkData ¶
func (x *UploadFileRequest) GetChunkData() []byte
func (*UploadFileRequest) GetData ¶
func (m *UploadFileRequest) GetData() isUploadFileRequest_Data
func (*UploadFileRequest) GetInfo ¶
func (x *UploadFileRequest) GetInfo() *v1.FileInfo
func (*UploadFileRequest) ProtoMessage ¶
func (*UploadFileRequest) ProtoMessage()
func (*UploadFileRequest) ProtoReflect ¶
func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
func (*UploadFileRequest) Reset ¶
func (x *UploadFileRequest) Reset()
func (*UploadFileRequest) String ¶
func (x *UploadFileRequest) String() string
type UploadFileRequest_ChunkData ¶
type UploadFileRequest_ChunkData struct {
ChunkData []byte `protobuf:"bytes,2,opt,name=chunk_data,json=chunkData,proto3,oneof"`
}
type UploadFileRequest_Info ¶
type UploadFileResponse ¶
type UploadFileResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*UploadFileResponse) Descriptor
deprecated
func (*UploadFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileResponse.ProtoReflect.Descriptor instead.
func (*UploadFileResponse) GetId ¶
func (x *UploadFileResponse) GetId() string
func (*UploadFileResponse) GetSize ¶
func (x *UploadFileResponse) GetSize() uint32
func (*UploadFileResponse) ProtoMessage ¶
func (*UploadFileResponse) ProtoMessage()
func (*UploadFileResponse) ProtoReflect ¶
func (x *UploadFileResponse) ProtoReflect() protoreflect.Message
func (*UploadFileResponse) Reset ¶
func (x *UploadFileResponse) Reset()
func (*UploadFileResponse) String ¶
func (x *UploadFileResponse) String() string