fileserver

package
v2.0.0-...-c7eed07 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Overview

Package fileserver is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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"
)
View Source
const ErrFilterBadFormat = errors.Sentinel("incorrect filter should follow the form '[arg] [op] [arg] ([boolop] [arg] [op] [arg])...'")

Variables

View Source
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.

View Source
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.

View Source
var (
	ErrParseFailure = errors.Sentinel("filter parse failure")
)
View Source
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)

View Source
var File_dataservice_v1_fileserver_fileserver_proto protoreflect.FileDescriptor

Functions

func FileDownload_ProcessDownloadStream

func FileDownload_ProcessDownloadStream(w io.Writer, recv func() (*DownloadFileResponse, error)) (sha256Checksum string, err error)

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

func (f *Filter) MarshalText() (text []byte, err error)

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 ParseFilters(in string) (Filters, error)

func (Filters) MarshalText

func (f Filters) MarshalText() (text []byte, err error)

func (*Filters) UnmarshalText

func (f *Filters) UnmarshalText(text []byte) error

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 GetFileRequest_Key struct {
	Key *v1.FileKey `protobuf:"bytes,2,opt,name=key,proto3,oneof"`
}

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 (*ListFileMetadataRequest) GetIncludeDeletedFiles

func (x *ListFileMetadataRequest) GetIncludeDeletedFiles() bool

func (*ListFileMetadataRequest) GetSortBy

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 (*ListFileMetadataRequest_ListFileFilter) GetOperator

func (*ListFileMetadataRequest_ListFileFilter) GetValue

func (*ListFileMetadataRequest_ListFileFilter) ProtoMessage

func (*ListFileMetadataRequest_ListFileFilter) ProtoReflect

func (*ListFileMetadataRequest_ListFileFilter) Reset

func (*ListFileMetadataRequest_ListFileFilter) 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) Enum

func (ListFileMetadataRequest_ListFileFilter_Comparison) EnumDescriptor deprecated

Deprecated: Use ListFileMetadataRequest_ListFileFilter_Comparison.Descriptor instead.

func (ListFileMetadataRequest_ListFileFilter_Comparison) Number

func (ListFileMetadataRequest_ListFileFilter_Comparison) String

func (ListFileMetadataRequest_ListFileFilter_Comparison) Type

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 (*ListFileMetadataRequest_ListFileSort) GetSortOrder

func (*ListFileMetadataRequest_ListFileSort) ProtoMessage

func (*ListFileMetadataRequest_ListFileSort) ProtoMessage()

func (*ListFileMetadataRequest_ListFileSort) ProtoReflect

func (*ListFileMetadataRequest_ListFileSort) Reset

func (*ListFileMetadataRequest_ListFileSort) 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) Enum

func (ListFileMetadataRequest_ListFileSort_SortOrder) EnumDescriptor deprecated

Deprecated: Use ListFileMetadataRequest_ListFileSort_SortOrder.Descriptor instead.

func (ListFileMetadataRequest_ListFileSort_SortOrder) Number

func (ListFileMetadataRequest_ListFileSort_SortOrder) String

func (ListFileMetadataRequest_ListFileSort_SortOrder) Type

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) DeleteFile

func (UnimplementedFileServerServer) DownloadFile

func (UnimplementedFileServerServer) GetFile

func (UnimplementedFileServerServer) ListFiles

func (UnimplementedFileServerServer) UploadFile

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 (*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 (*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 UploadFileRequest_Info struct {
	Info *v1.FileInfo `protobuf:"bytes,1,opt,name=info,proto3,oneof"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL