bfsp

package module
v0.0.0-...-3200f4c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const SaltString = "g8QqYqhXxwJj037KswzK3g"

Variables

View Source
var (
	FileType_name = map[int32]string{
		0: "IMAGE",
		1: "TEXT",
		2: "UNKNOWN",
		3: "BINARY",
	}
	FileType_value = map[string]int32{
		"IMAGE":   0,
		"TEXT":    1,
		"UNKNOWN": 2,
		"BINARY":  3,
	}
)

Enum value maps for FileType.

View Source
var File_bfsp_cli_proto protoreflect.FileDescriptor

Functions

func CompressEncryptChunkMetadata

func CompressEncryptChunkMetadata(chunkMetadata *ChunkMetadata, fileId string, masterKey MasterKey) ([]byte, error)

func ContextWithClient

func ContextWithClient(ctx context.Context, cli FileServerClient) context.Context

func ContextWithMasterKey

func ContextWithMasterKey(ctx context.Context, masterKey MasterKey) context.Context

func DeleteChunks

func DeleteChunks(cli FileServerClient, chunkIDs []string) error

func DeleteFileMetadata

func DeleteFileMetadata(cli FileServerClient, fileID string) error

func DownloadChunk

func DownloadChunk(cli FileServerClient, args DownloadChunkArgs, masterKey MasterKey) ([]byte, error)

func DownloadFile

func DownloadFile(ctx context.Context, fileMeta *FileMetadata, fileWriter io.Writer, token string) error

func EncodeViewFileInfo

func EncodeViewFileInfo(view *ViewFileInfo) (string, error)

func ListFileMetadata

func ListFileMetadata(cli FileServerClient, ids []string, masterKey MasterKey) (map[string]*FileMetadata, error)

func UpdateFileMetadata

func UpdateFileMetadata(cli FileServerClient, fileMeta *FileMetadata, masterKey MasterKey) error

func UploadChunk

func UploadChunk(cli FileServerClient, chunkMetadata *ChunkMetadata, fileUUIDStr string, encryptedCompressedChunkBytes EncryptedCompressedChunk, masterKey MasterKey) error

func UploadFile

func UploadFile(ctx context.Context, fileInfo *FileInfo, concurrencyLimit int) error

func UploadFileMetadata

func UploadFileMetadata(cli FileServerClient, fileMeta *FileMetadata, masterKey MasterKey) error

Types

type ChunkMetadata

type ChunkMetadata struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Hash   []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	Size   uint32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	Indice int64  `protobuf:"varint,4,opt,name=indice,proto3" json:"indice,omitempty"`
	Nonce  []byte `protobuf:"bytes,5,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

func (*ChunkMetadata) Descriptor deprecated

func (*ChunkMetadata) Descriptor() ([]byte, []int)

Deprecated: Use ChunkMetadata.ProtoReflect.Descriptor instead.

func (*ChunkMetadata) GetHash

func (x *ChunkMetadata) GetHash() []byte

func (*ChunkMetadata) GetId

func (x *ChunkMetadata) GetId() string

func (*ChunkMetadata) GetIndice

func (x *ChunkMetadata) GetIndice() int64

func (*ChunkMetadata) GetNonce

func (x *ChunkMetadata) GetNonce() []byte

func (*ChunkMetadata) GetSize

func (x *ChunkMetadata) GetSize() uint32

func (*ChunkMetadata) ProtoMessage

func (*ChunkMetadata) ProtoMessage()

func (*ChunkMetadata) ProtoReflect

func (x *ChunkMetadata) ProtoReflect() protoreflect.Message

func (*ChunkMetadata) Reset

func (x *ChunkMetadata) Reset()

func (*ChunkMetadata) String

func (x *ChunkMetadata) String() string

type ChunksUploadedQueryResp

type ChunksUploadedQueryResp struct {

	// Types that are assignable to Response:
	//
	//	*ChunksUploadedQueryResp_Chunks
	//	*ChunksUploadedQueryResp_Err
	Response isChunksUploadedQueryResp_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*ChunksUploadedQueryResp) Descriptor deprecated

func (*ChunksUploadedQueryResp) Descriptor() ([]byte, []int)

Deprecated: Use ChunksUploadedQueryResp.ProtoReflect.Descriptor instead.

func (*ChunksUploadedQueryResp) GetChunks

func (*ChunksUploadedQueryResp) GetErr

func (x *ChunksUploadedQueryResp) GetErr() string

func (*ChunksUploadedQueryResp) GetResponse

func (m *ChunksUploadedQueryResp) GetResponse() isChunksUploadedQueryResp_Response

func (*ChunksUploadedQueryResp) ProtoMessage

func (*ChunksUploadedQueryResp) ProtoMessage()

func (*ChunksUploadedQueryResp) ProtoReflect

func (x *ChunksUploadedQueryResp) ProtoReflect() protoreflect.Message

func (*ChunksUploadedQueryResp) Reset

func (x *ChunksUploadedQueryResp) Reset()

func (*ChunksUploadedQueryResp) String

func (x *ChunksUploadedQueryResp) String() string

type ChunksUploadedQueryResp_ChunkUploaded

type ChunksUploadedQueryResp_ChunkUploaded struct {
	ChunkId  []byte `protobuf:"bytes,1,opt,name=chunk_id,json=chunkId,proto3" json:"chunk_id,omitempty"`
	Uploaded bool   `protobuf:"varint,2,opt,name=uploaded,proto3" json:"uploaded,omitempty"`
	// contains filtered or unexported fields
}

func (*ChunksUploadedQueryResp_ChunkUploaded) Descriptor deprecated

func (*ChunksUploadedQueryResp_ChunkUploaded) Descriptor() ([]byte, []int)

Deprecated: Use ChunksUploadedQueryResp_ChunkUploaded.ProtoReflect.Descriptor instead.

func (*ChunksUploadedQueryResp_ChunkUploaded) GetChunkId

func (x *ChunksUploadedQueryResp_ChunkUploaded) GetChunkId() []byte

func (*ChunksUploadedQueryResp_ChunkUploaded) GetUploaded

func (*ChunksUploadedQueryResp_ChunkUploaded) ProtoMessage

func (*ChunksUploadedQueryResp_ChunkUploaded) ProtoMessage()

func (*ChunksUploadedQueryResp_ChunkUploaded) ProtoReflect

func (*ChunksUploadedQueryResp_ChunkUploaded) Reset

func (*ChunksUploadedQueryResp_ChunkUploaded) String

type ChunksUploadedQueryResp_Chunks

type ChunksUploadedQueryResp_Chunks struct {
	Chunks *ChunksUploadedQueryResp_ChunksUploaded `protobuf:"bytes,1,opt,name=chunks,proto3,oneof"`
}

type ChunksUploadedQueryResp_ChunksUploaded

type ChunksUploadedQueryResp_ChunksUploaded struct {
	Chunks []*ChunksUploadedQueryResp_ChunkUploaded `protobuf:"bytes,1,rep,name=chunks,proto3" json:"chunks,omitempty"`
	// contains filtered or unexported fields
}

func (*ChunksUploadedQueryResp_ChunksUploaded) Descriptor deprecated

func (*ChunksUploadedQueryResp_ChunksUploaded) Descriptor() ([]byte, []int)

Deprecated: Use ChunksUploadedQueryResp_ChunksUploaded.ProtoReflect.Descriptor instead.

func (*ChunksUploadedQueryResp_ChunksUploaded) GetChunks

func (*ChunksUploadedQueryResp_ChunksUploaded) ProtoMessage

func (*ChunksUploadedQueryResp_ChunksUploaded) ProtoReflect

func (*ChunksUploadedQueryResp_ChunksUploaded) Reset

func (*ChunksUploadedQueryResp_ChunksUploaded) String

type ChunksUploadedQueryResp_Err

type ChunksUploadedQueryResp_Err struct {
	Err string `protobuf:"bytes,2,opt,name=err,proto3,oneof"`
}

type DeleteChunksResp

type DeleteChunksResp struct {
	Err *string `protobuf:"bytes,1,opt,name=err,proto3,oneof" json:"err,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteChunksResp) Descriptor deprecated

func (*DeleteChunksResp) Descriptor() ([]byte, []int)

Deprecated: Use DeleteChunksResp.ProtoReflect.Descriptor instead.

func (*DeleteChunksResp) GetErr

func (x *DeleteChunksResp) GetErr() string

func (*DeleteChunksResp) ProtoMessage

func (*DeleteChunksResp) ProtoMessage()

func (*DeleteChunksResp) ProtoReflect

func (x *DeleteChunksResp) ProtoReflect() protoreflect.Message

func (*DeleteChunksResp) Reset

func (x *DeleteChunksResp) Reset()

func (*DeleteChunksResp) String

func (x *DeleteChunksResp) String() string

type DeleteFileMetadataResp

type DeleteFileMetadataResp struct {
	Err *string `protobuf:"bytes,1,opt,name=err,proto3,oneof" json:"err,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteFileMetadataResp) Descriptor deprecated

func (*DeleteFileMetadataResp) Descriptor() ([]byte, []int)

Deprecated: Use DeleteFileMetadataResp.ProtoReflect.Descriptor instead.

func (*DeleteFileMetadataResp) GetErr

func (x *DeleteFileMetadataResp) GetErr() string

func (*DeleteFileMetadataResp) ProtoMessage

func (*DeleteFileMetadataResp) ProtoMessage()

func (*DeleteFileMetadataResp) ProtoReflect

func (x *DeleteFileMetadataResp) ProtoReflect() protoreflect.Message

func (*DeleteFileMetadataResp) Reset

func (x *DeleteFileMetadataResp) Reset()

func (*DeleteFileMetadataResp) String

func (x *DeleteFileMetadataResp) String() string

type DownloadChunkArgs

type DownloadChunkArgs struct {
	ChunkID string
	FileID  string
	Token   string
}

type DownloadChunkResp

type DownloadChunkResp struct {

	// Types that are assignable to Response:
	//
	//	*DownloadChunkResp_ChunkData_
	//	*DownloadChunkResp_Err
	Response isDownloadChunkResp_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*DownloadChunkResp) Descriptor deprecated

func (*DownloadChunkResp) Descriptor() ([]byte, []int)

Deprecated: Use DownloadChunkResp.ProtoReflect.Descriptor instead.

func (*DownloadChunkResp) GetChunkData

func (*DownloadChunkResp) GetErr

func (x *DownloadChunkResp) GetErr() string

func (*DownloadChunkResp) GetResponse

func (m *DownloadChunkResp) GetResponse() isDownloadChunkResp_Response

func (*DownloadChunkResp) ProtoMessage

func (*DownloadChunkResp) ProtoMessage()

func (*DownloadChunkResp) ProtoReflect

func (x *DownloadChunkResp) ProtoReflect() protoreflect.Message

func (*DownloadChunkResp) Reset

func (x *DownloadChunkResp) Reset()

func (*DownloadChunkResp) String

func (x *DownloadChunkResp) String() string

type DownloadChunkResp_ChunkData

type DownloadChunkResp_ChunkData struct {

	// Deprecated: Marked as deprecated in bfsp.proto.
	ChunkMetadata    *ChunkMetadata          `protobuf:"bytes,1,opt,name=chunk_metadata,json=chunkMetadata,proto3" json:"chunk_metadata,omitempty"`
	Chunk            []byte                  `protobuf:"bytes,2,opt,name=chunk,proto3" json:"chunk,omitempty"`
	EncChunkMetadata *EncryptedChunkMetadata `protobuf:"bytes,3,opt,name=enc_chunk_metadata,json=encChunkMetadata,proto3" json:"enc_chunk_metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*DownloadChunkResp_ChunkData) Descriptor deprecated

func (*DownloadChunkResp_ChunkData) Descriptor() ([]byte, []int)

Deprecated: Use DownloadChunkResp_ChunkData.ProtoReflect.Descriptor instead.

func (*DownloadChunkResp_ChunkData) GetChunk

func (x *DownloadChunkResp_ChunkData) GetChunk() []byte

func (*DownloadChunkResp_ChunkData) GetChunkMetadata deprecated

func (x *DownloadChunkResp_ChunkData) GetChunkMetadata() *ChunkMetadata

Deprecated: Marked as deprecated in bfsp.proto.

func (*DownloadChunkResp_ChunkData) GetEncChunkMetadata

func (x *DownloadChunkResp_ChunkData) GetEncChunkMetadata() *EncryptedChunkMetadata

func (*DownloadChunkResp_ChunkData) ProtoMessage

func (*DownloadChunkResp_ChunkData) ProtoMessage()

func (*DownloadChunkResp_ChunkData) ProtoReflect

func (*DownloadChunkResp_ChunkData) Reset

func (x *DownloadChunkResp_ChunkData) Reset()

func (*DownloadChunkResp_ChunkData) String

func (x *DownloadChunkResp_ChunkData) String() string

type DownloadChunkResp_ChunkData_

type DownloadChunkResp_ChunkData_ struct {
	ChunkData *DownloadChunkResp_ChunkData `protobuf:"bytes,1,opt,name=chunk_data,json=chunkData,proto3,oneof"`
}

type DownloadChunkResp_Err

type DownloadChunkResp_Err struct {
	Err string `protobuf:"bytes,2,opt,name=err,proto3,oneof"`
}

type DownloadFileMetadataResp

type DownloadFileMetadataResp struct {

	// Types that are assignable to Response:
	//
	//	*DownloadFileMetadataResp_EncryptedFileMetadata
	//	*DownloadFileMetadataResp_Err
	Response isDownloadFileMetadataResp_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*DownloadFileMetadataResp) Descriptor deprecated

func (*DownloadFileMetadataResp) Descriptor() ([]byte, []int)

Deprecated: Use DownloadFileMetadataResp.ProtoReflect.Descriptor instead.

func (*DownloadFileMetadataResp) GetEncryptedFileMetadata

func (x *DownloadFileMetadataResp) GetEncryptedFileMetadata() *EncryptedFileMetadata

func (*DownloadFileMetadataResp) GetErr

func (x *DownloadFileMetadataResp) GetErr() string

func (*DownloadFileMetadataResp) GetResponse

func (m *DownloadFileMetadataResp) GetResponse() isDownloadFileMetadataResp_Response

func (*DownloadFileMetadataResp) ProtoMessage

func (*DownloadFileMetadataResp) ProtoMessage()

func (*DownloadFileMetadataResp) ProtoReflect

func (x *DownloadFileMetadataResp) ProtoReflect() protoreflect.Message

func (*DownloadFileMetadataResp) Reset

func (x *DownloadFileMetadataResp) Reset()

func (*DownloadFileMetadataResp) String

func (x *DownloadFileMetadataResp) String() string

type DownloadFileMetadataResp_EncryptedFileMetadata

type DownloadFileMetadataResp_EncryptedFileMetadata struct {
	EncryptedFileMetadata *EncryptedFileMetadata `protobuf:"bytes,1,opt,name=encrypted_file_metadata,json=encryptedFileMetadata,proto3,oneof"`
}

type DownloadFileMetadataResp_Err

type DownloadFileMetadataResp_Err struct {
	Err string `protobuf:"bytes,2,opt,name=err,proto3,oneof"`
}

type EncryptedChunkMetadata

type EncryptedChunkMetadata struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	EncMetadata []byte `protobuf:"bytes,2,opt,name=enc_metadata,json=encMetadata,proto3" json:"enc_metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*EncryptedChunkMetadata) Descriptor deprecated

func (*EncryptedChunkMetadata) Descriptor() ([]byte, []int)

Deprecated: Use EncryptedChunkMetadata.ProtoReflect.Descriptor instead.

func (*EncryptedChunkMetadata) GetEncMetadata

func (x *EncryptedChunkMetadata) GetEncMetadata() []byte

func (*EncryptedChunkMetadata) GetId

func (x *EncryptedChunkMetadata) GetId() string

func (*EncryptedChunkMetadata) ProtoMessage

func (*EncryptedChunkMetadata) ProtoMessage()

func (*EncryptedChunkMetadata) ProtoReflect

func (x *EncryptedChunkMetadata) ProtoReflect() protoreflect.Message

func (*EncryptedChunkMetadata) Reset

func (x *EncryptedChunkMetadata) Reset()

func (*EncryptedChunkMetadata) String

func (x *EncryptedChunkMetadata) String() string

type EncryptedCompressedChunk

type EncryptedCompressedChunk struct {
	// contains filtered or unexported fields
}

func CompressEncryptChunk

func CompressEncryptChunk(chunkBytes []byte, chunkMetadata *ChunkMetadata, fileId string, masterKey MasterKey) (*EncryptedCompressedChunk, error)

type EncryptedFileMetadata

type EncryptedFileMetadata struct {
	Metadata []byte `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Id       string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*EncryptedFileMetadata) Descriptor deprecated

func (*EncryptedFileMetadata) Descriptor() ([]byte, []int)

Deprecated: Use EncryptedFileMetadata.ProtoReflect.Descriptor instead.

func (*EncryptedFileMetadata) GetId

func (x *EncryptedFileMetadata) GetId() string

func (*EncryptedFileMetadata) GetMetadata

func (x *EncryptedFileMetadata) GetMetadata() []byte

func (*EncryptedFileMetadata) ProtoMessage

func (*EncryptedFileMetadata) ProtoMessage()

func (*EncryptedFileMetadata) ProtoReflect

func (x *EncryptedFileMetadata) ProtoReflect() protoreflect.Message

func (*EncryptedFileMetadata) Reset

func (x *EncryptedFileMetadata) Reset()

func (*EncryptedFileMetadata) String

func (x *EncryptedFileMetadata) String() string

type FileInfo

type FileInfo struct {
	Name   string
	Reader io.Reader
}

type FileMetadata

type FileMetadata struct {
	Id               string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Chunks           map[uint64]string `` /* 154-byte string literal not displayed */
	FileName         string            `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	FileType         FileType          `protobuf:"varint,4,opt,name=file_type,json=fileType,proto3,enum=bfsp.cli.FileType" json:"file_type,omitempty"`
	FileSize         uint64            `protobuf:"varint,5,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"`
	Directory        []string          `protobuf:"bytes,6,rep,name=directory,proto3" json:"directory,omitempty"`
	CreateTime       int64             `protobuf:"varint,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	ModificationTime int64             `protobuf:"varint,8,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"`
	// contains filtered or unexported fields
}

func DownloadFileMetadata

func DownloadFileMetadata(cli FileServerClient, fileId string, masterKey MasterKey) (*FileMetadata, error)

func (*FileMetadata) Descriptor deprecated

func (*FileMetadata) Descriptor() ([]byte, []int)

Deprecated: Use FileMetadata.ProtoReflect.Descriptor instead.

func (*FileMetadata) GetChunks

func (x *FileMetadata) GetChunks() map[uint64]string

func (*FileMetadata) GetCreateTime

func (x *FileMetadata) GetCreateTime() int64

func (*FileMetadata) GetDirectory

func (x *FileMetadata) GetDirectory() []string

func (*FileMetadata) GetFileName

func (x *FileMetadata) GetFileName() string

func (*FileMetadata) GetFileSize

func (x *FileMetadata) GetFileSize() uint64

func (*FileMetadata) GetFileType

func (x *FileMetadata) GetFileType() FileType

func (*FileMetadata) GetId

func (x *FileMetadata) GetId() string

func (*FileMetadata) GetModificationTime

func (x *FileMetadata) GetModificationTime() int64

func (*FileMetadata) ProtoMessage

func (*FileMetadata) ProtoMessage()

func (*FileMetadata) ProtoReflect

func (x *FileMetadata) ProtoReflect() protoreflect.Message

func (*FileMetadata) Reset

func (x *FileMetadata) Reset()

func (*FileMetadata) String

func (x *FileMetadata) String() string

type FileServerClient

type FileServerClient interface {
	SendFileServerMessage(msg isFileServerMessage_Message, resp proto.Message) error
	// contains filtered or unexported methods
}

func ClientFromContext

func ClientFromContext(ctx context.Context) FileServerClient

func NewHTTPFileServerClient

func NewHTTPFileServerClient(token string, baseUrl string, https bool) (FileServerClient, error)

type FileServerMessage

type FileServerMessage struct {
	Auth *FileServerMessage_Authentication `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"`
	// Types that are assignable to Message:
	//
	//	*FileServerMessage_UploadChunk_
	//	*FileServerMessage_ChunksUploadedQuery_
	//	*FileServerMessage_DownloadChunkQuery_
	//	*FileServerMessage_DeleteChunksQuery_
	//	*FileServerMessage_UploadFileMetadata_
	//	*FileServerMessage_DownloadFileMetadataQuery_
	//	*FileServerMessage_ListFileMetadataQuery_
	//	*FileServerMessage_ListChunkMetadataQuery_
	//	*FileServerMessage_DeleteFileMetadataQuery_
	//	*FileServerMessage_GetUsageQuery_
	//	*FileServerMessage_SetMasterKey
	//	*FileServerMessage_GetMasterKey
	//	*FileServerMessage_UpdateFileMetadata_
	Message isFileServerMessage_Message `protobuf_oneof:"message"`
	// contains filtered or unexported fields
}

func (*FileServerMessage) Descriptor deprecated

func (*FileServerMessage) Descriptor() ([]byte, []int)

Deprecated: Use FileServerMessage.ProtoReflect.Descriptor instead.

func (*FileServerMessage) GetAuth

func (*FileServerMessage) GetChunksUploadedQuery

func (x *FileServerMessage) GetChunksUploadedQuery() *FileServerMessage_ChunksUploadedQuery

func (*FileServerMessage) GetDeleteChunksQuery

func (x *FileServerMessage) GetDeleteChunksQuery() *FileServerMessage_DeleteChunksQuery

func (*FileServerMessage) GetDeleteFileMetadataQuery

func (x *FileServerMessage) GetDeleteFileMetadataQuery() *FileServerMessage_DeleteFileMetadataQuery

func (*FileServerMessage) GetDownloadChunkQuery

func (x *FileServerMessage) GetDownloadChunkQuery() *FileServerMessage_DownloadChunkQuery

func (*FileServerMessage) GetDownloadFileMetadataQuery

func (x *FileServerMessage) GetDownloadFileMetadataQuery() *FileServerMessage_DownloadFileMetadataQuery

func (*FileServerMessage) GetGetMasterKey

func (*FileServerMessage) GetGetUsageQuery

func (x *FileServerMessage) GetGetUsageQuery() *FileServerMessage_GetUsageQuery

func (*FileServerMessage) GetListChunkMetadataQuery

func (x *FileServerMessage) GetListChunkMetadataQuery() *FileServerMessage_ListChunkMetadataQuery

func (*FileServerMessage) GetListFileMetadataQuery

func (x *FileServerMessage) GetListFileMetadataQuery() *FileServerMessage_ListFileMetadataQuery

func (*FileServerMessage) GetMessage

func (m *FileServerMessage) GetMessage() isFileServerMessage_Message

func (*FileServerMessage) GetSetMasterKey

func (*FileServerMessage) GetUpdateFileMetadata

func (x *FileServerMessage) GetUpdateFileMetadata() *FileServerMessage_UpdateFileMetadata

func (*FileServerMessage) GetUploadChunk

func (x *FileServerMessage) GetUploadChunk() *FileServerMessage_UploadChunk

func (*FileServerMessage) GetUploadFileMetadata

func (x *FileServerMessage) GetUploadFileMetadata() *FileServerMessage_UploadFileMetadata

func (*FileServerMessage) ProtoMessage

func (*FileServerMessage) ProtoMessage()

func (*FileServerMessage) ProtoReflect

func (x *FileServerMessage) ProtoReflect() protoreflect.Message

func (*FileServerMessage) Reset

func (x *FileServerMessage) Reset()

func (*FileServerMessage) String

func (x *FileServerMessage) String() string

type FileServerMessage_Authentication

type FileServerMessage_Authentication struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*FileServerMessage_Authentication) Descriptor deprecated

func (*FileServerMessage_Authentication) Descriptor() ([]byte, []int)

Deprecated: Use FileServerMessage_Authentication.ProtoReflect.Descriptor instead.

func (*FileServerMessage_Authentication) GetToken

func (*FileServerMessage_Authentication) ProtoMessage

func (*FileServerMessage_Authentication) ProtoMessage()

func (*FileServerMessage_Authentication) ProtoReflect

func (*FileServerMessage_Authentication) Reset

func (*FileServerMessage_Authentication) String

type FileServerMessage_ChunksUploadedQuery

type FileServerMessage_ChunksUploadedQuery struct {
	ChunkIds []string `protobuf:"bytes,1,rep,name=chunk_ids,json=chunkIds,proto3" json:"chunk_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*FileServerMessage_ChunksUploadedQuery) Descriptor deprecated

func (*FileServerMessage_ChunksUploadedQuery) Descriptor() ([]byte, []int)

Deprecated: Use FileServerMessage_ChunksUploadedQuery.ProtoReflect.Descriptor instead.

func (*FileServerMessage_ChunksUploadedQuery) GetChunkIds

func (x *FileServerMessage_ChunksUploadedQuery) GetChunkIds() []string

func (*FileServerMessage_ChunksUploadedQuery) ProtoMessage

func (*FileServerMessage_ChunksUploadedQuery) ProtoMessage()

func (*FileServerMessage_ChunksUploadedQuery) ProtoReflect

func (*FileServerMessage_ChunksUploadedQuery) Reset

func (*FileServerMessage_ChunksUploadedQuery) String

type FileServerMessage_ChunksUploadedQuery_

type FileServerMessage_ChunksUploadedQuery_ struct {
	ChunksUploadedQuery *FileServerMessage_ChunksUploadedQuery `protobuf:"bytes,3,opt,name=chunks_uploaded_query,json=chunksUploadedQuery,proto3,oneof"`
}

type FileServerMessage_DeleteChunksQuery

type FileServerMessage_DeleteChunksQuery struct {
	ChunkIds []string `protobuf:"bytes,1,rep,name=chunk_ids,json=chunkIds,proto3" json:"chunk_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*FileServerMessage_DeleteChunksQuery) Descriptor deprecated

func (*FileServerMessage_DeleteChunksQuery) Descriptor() ([]byte, []int)

Deprecated: Use FileServerMessage_DeleteChunksQuery.ProtoReflect.Descriptor instead.

func (*FileServerMessage_DeleteChunksQuery) GetChunkIds

func (x *FileServerMessage_DeleteChunksQuery) GetChunkIds() []string

func (*FileServerMessage_DeleteChunksQuery) ProtoMessage

func (*FileServerMessage_DeleteChunksQuery) ProtoMessage()

func (*FileServerMessage_DeleteChunksQuery) ProtoReflect

func (*FileServerMessage_DeleteChunksQuery) Reset

func (*FileServerMessage_DeleteChunksQuery) String

type FileServerMessage_DeleteChunksQuery_

type FileServerMessage_DeleteChunksQuery_ struct {
	DeleteChunksQuery *FileServerMessage_DeleteChunksQuery `protobuf:"bytes,5,opt,name=delete_chunks_query,json=deleteChunksQuery,proto3,oneof"`
}

type FileServerMessage_DeleteFileMetadataQuery

type FileServerMessage_DeleteFileMetadataQuery struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*FileServerMessage_DeleteFileMetadataQuery) Descriptor deprecated

func (*FileServerMessage_DeleteFileMetadataQuery) Descriptor() ([]byte, []int)

Deprecated: Use FileServerMessage_DeleteFileMetadataQuery.ProtoReflect.Descriptor instead.

func (*FileServerMessage_DeleteFileMetadataQuery) GetId

func (*FileServerMessage_DeleteFileMetadataQuery) ProtoMessage

func (*FileServerMessage_DeleteFileMetadataQuery) ProtoReflect

func (*FileServerMessage_DeleteFileMetadataQuery) Reset

func (*FileServerMessage_DeleteFileMetadataQuery) String

type FileServerMessage_DeleteFileMetadataQuery_

type FileServerMessage_DeleteFileMetadataQuery_ struct {
	DeleteFileMetadataQuery *FileServerMessage_DeleteFileMetadataQuery `protobuf:"bytes,10,opt,name=delete_file_metadata_query,json=deleteFileMetadataQuery,proto3,oneof"`
}

type FileServerMessage_DownloadChunkQuery

type FileServerMessage_DownloadChunkQuery struct {
	ChunkId string `protobuf:"bytes,1,opt,name=chunk_id,json=chunkId,proto3" json:"chunk_id,omitempty"`
	// contains filtered or unexported fields
}

func (*FileServerMessage_DownloadChunkQuery) Descriptor deprecated

func (*FileServerMessage_DownloadChunkQuery) Descriptor() ([]byte, []int)

Deprecated: Use FileServerMessage_DownloadChunkQuery.ProtoReflect.Descriptor instead.

func (*FileServerMessage_DownloadChunkQuery) GetChunkId

func (*FileServerMessage_DownloadChunkQuery) ProtoMessage

func (*FileServerMessage_DownloadChunkQuery) ProtoMessage()

func (*FileServerMessage_DownloadChunkQuery) ProtoReflect

func (*FileServerMessage_DownloadChunkQuery) Reset

func (*FileServerMessage_DownloadChunkQuery) String

type FileServerMessage_DownloadChunkQuery_

type FileServerMessage_DownloadChunkQuery_ struct {
	DownloadChunkQuery *FileServerMessage_DownloadChunkQuery `protobuf:"bytes,4,opt,name=download_chunk_query,json=downloadChunkQuery,proto3,oneof"`
}

type FileServerMessage_DownloadFileMetadataQuery

type FileServerMessage_DownloadFileMetadataQuery struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*FileServerMessage_DownloadFileMetadataQuery) Descriptor deprecated

Deprecated: Use FileServerMessage_DownloadFileMetadataQuery.ProtoReflect.Descriptor instead.

func (*FileServerMessage_DownloadFileMetadataQuery) GetId

func (*FileServerMessage_DownloadFileMetadataQuery) ProtoMessage

func (*FileServerMessage_DownloadFileMetadataQuery) ProtoReflect

func (*FileServerMessage_DownloadFileMetadataQuery) Reset

func (*FileServerMessage_DownloadFileMetadataQuery) String

type FileServerMessage_DownloadFileMetadataQuery_

type FileServerMessage_DownloadFileMetadataQuery_ struct {
	DownloadFileMetadataQuery *FileServerMessage_DownloadFileMetadataQuery `protobuf:"bytes,7,opt,name=download_file_metadata_query,json=downloadFileMetadataQuery,proto3,oneof"`
}

type FileServerMessage_GetMasterEncryptionKey

type FileServerMessage_GetMasterEncryptionKey struct {
	// contains filtered or unexported fields
}

func (*FileServerMessage_GetMasterEncryptionKey) Descriptor deprecated

func (*FileServerMessage_GetMasterEncryptionKey) Descriptor() ([]byte, []int)

Deprecated: Use FileServerMessage_GetMasterEncryptionKey.ProtoReflect.Descriptor instead.

func (*FileServerMessage_GetMasterEncryptionKey) ProtoMessage

func (*FileServerMessage_GetMasterEncryptionKey) ProtoReflect

func (*FileServerMessage_GetMasterEncryptionKey) Reset

func (*FileServerMessage_GetMasterEncryptionKey) String

type FileServerMessage_GetMasterKey

type FileServerMessage_GetMasterKey struct {
	GetMasterKey *FileServerMessage_GetMasterEncryptionKey `protobuf:"bytes,13,opt,name=get_master_key,json=getMasterKey,proto3,oneof"`
}

type FileServerMessage_GetUsageQuery

type FileServerMessage_GetUsageQuery struct {
	// contains filtered or unexported fields
}

func (*FileServerMessage_GetUsageQuery) Descriptor deprecated

func (*FileServerMessage_GetUsageQuery) Descriptor() ([]byte, []int)

Deprecated: Use FileServerMessage_GetUsageQuery.ProtoReflect.Descriptor instead.

func (*FileServerMessage_GetUsageQuery) ProtoMessage

func (*FileServerMessage_GetUsageQuery) ProtoMessage()

func (*FileServerMessage_GetUsageQuery) ProtoReflect

func (*FileServerMessage_GetUsageQuery) Reset

func (*FileServerMessage_GetUsageQuery) String

type FileServerMessage_GetUsageQuery_

type FileServerMessage_GetUsageQuery_ struct {
	GetUsageQuery *FileServerMessage_GetUsageQuery `protobuf:"bytes,11,opt,name=get_usage_query,json=getUsageQuery,proto3,oneof"`
}

type FileServerMessage_ListChunkMetadataQuery

type FileServerMessage_ListChunkMetadataQuery struct {
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*FileServerMessage_ListChunkMetadataQuery) Descriptor deprecated

func (*FileServerMessage_ListChunkMetadataQuery) Descriptor() ([]byte, []int)

Deprecated: Use FileServerMessage_ListChunkMetadataQuery.ProtoReflect.Descriptor instead.

func (*FileServerMessage_ListChunkMetadataQuery) GetIds

func (*FileServerMessage_ListChunkMetadataQuery) ProtoMessage

func (*FileServerMessage_ListChunkMetadataQuery) ProtoReflect

func (*FileServerMessage_ListChunkMetadataQuery) Reset

func (*FileServerMessage_ListChunkMetadataQuery) String

type FileServerMessage_ListChunkMetadataQuery_

type FileServerMessage_ListChunkMetadataQuery_ struct {
	ListChunkMetadataQuery *FileServerMessage_ListChunkMetadataQuery `protobuf:"bytes,9,opt,name=list_chunk_metadata_query,json=listChunkMetadataQuery,proto3,oneof"`
}

type FileServerMessage_ListFileMetadataQuery

type FileServerMessage_ListFileMetadataQuery struct {
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*FileServerMessage_ListFileMetadataQuery) Descriptor deprecated

func (*FileServerMessage_ListFileMetadataQuery) Descriptor() ([]byte, []int)

Deprecated: Use FileServerMessage_ListFileMetadataQuery.ProtoReflect.Descriptor instead.

func (*FileServerMessage_ListFileMetadataQuery) GetIds

func (*FileServerMessage_ListFileMetadataQuery) ProtoMessage

func (*FileServerMessage_ListFileMetadataQuery) ProtoReflect

func (*FileServerMessage_ListFileMetadataQuery) Reset

func (*FileServerMessage_ListFileMetadataQuery) String

type FileServerMessage_ListFileMetadataQuery_

type FileServerMessage_ListFileMetadataQuery_ struct {
	ListFileMetadataQuery *FileServerMessage_ListFileMetadataQuery `protobuf:"bytes,8,opt,name=list_file_metadata_query,json=listFileMetadataQuery,proto3,oneof"`
}

type FileServerMessage_SetMasterEncryptionKey

type FileServerMessage_SetMasterEncryptionKey struct {
	EncryptedKey []byte `protobuf:"bytes,1,opt,name=encrypted_key,json=encryptedKey,proto3" json:"encrypted_key,omitempty"`
	// contains filtered or unexported fields
}

func (*FileServerMessage_SetMasterEncryptionKey) Descriptor deprecated

func (*FileServerMessage_SetMasterEncryptionKey) Descriptor() ([]byte, []int)

Deprecated: Use FileServerMessage_SetMasterEncryptionKey.ProtoReflect.Descriptor instead.

func (*FileServerMessage_SetMasterEncryptionKey) GetEncryptedKey

func (x *FileServerMessage_SetMasterEncryptionKey) GetEncryptedKey() []byte

func (*FileServerMessage_SetMasterEncryptionKey) ProtoMessage

func (*FileServerMessage_SetMasterEncryptionKey) ProtoReflect

func (*FileServerMessage_SetMasterEncryptionKey) Reset

func (*FileServerMessage_SetMasterEncryptionKey) String

type FileServerMessage_SetMasterKey

type FileServerMessage_SetMasterKey struct {
	SetMasterKey *FileServerMessage_SetMasterEncryptionKey `protobuf:"bytes,12,opt,name=set_master_key,json=setMasterKey,proto3,oneof"`
}

type FileServerMessage_UpdateFileMetadata

type FileServerMessage_UpdateFileMetadata struct {
	EncryptedFileMetadata *EncryptedFileMetadata `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*FileServerMessage_UpdateFileMetadata) Descriptor deprecated

func (*FileServerMessage_UpdateFileMetadata) Descriptor() ([]byte, []int)

Deprecated: Use FileServerMessage_UpdateFileMetadata.ProtoReflect.Descriptor instead.

func (*FileServerMessage_UpdateFileMetadata) GetEncryptedFileMetadata

func (x *FileServerMessage_UpdateFileMetadata) GetEncryptedFileMetadata() *EncryptedFileMetadata

func (*FileServerMessage_UpdateFileMetadata) ProtoMessage

func (*FileServerMessage_UpdateFileMetadata) ProtoMessage()

func (*FileServerMessage_UpdateFileMetadata) ProtoReflect

func (*FileServerMessage_UpdateFileMetadata) Reset

func (*FileServerMessage_UpdateFileMetadata) String

type FileServerMessage_UpdateFileMetadata_

type FileServerMessage_UpdateFileMetadata_ struct {
	UpdateFileMetadata *FileServerMessage_UpdateFileMetadata `protobuf:"bytes,14,opt,name=update_file_metadata,json=updateFileMetadata,proto3,oneof"`
}

type FileServerMessage_UploadChunk

type FileServerMessage_UploadChunk struct {

	// Deprecated: Marked as deprecated in bfsp.proto.
	ChunkMetadata    *ChunkMetadata          `protobuf:"bytes,1,opt,name=chunk_metadata,json=chunkMetadata,proto3" json:"chunk_metadata,omitempty"`
	Chunk            []byte                  `protobuf:"bytes,2,opt,name=chunk,proto3" json:"chunk,omitempty"`
	EncChunkMetadata *EncryptedChunkMetadata `protobuf:"bytes,3,opt,name=enc_chunk_metadata,json=encChunkMetadata,proto3" json:"enc_chunk_metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*FileServerMessage_UploadChunk) Descriptor deprecated

func (*FileServerMessage_UploadChunk) Descriptor() ([]byte, []int)

Deprecated: Use FileServerMessage_UploadChunk.ProtoReflect.Descriptor instead.

func (*FileServerMessage_UploadChunk) GetChunk

func (x *FileServerMessage_UploadChunk) GetChunk() []byte

func (*FileServerMessage_UploadChunk) GetChunkMetadata deprecated

func (x *FileServerMessage_UploadChunk) GetChunkMetadata() *ChunkMetadata

Deprecated: Marked as deprecated in bfsp.proto.

func (*FileServerMessage_UploadChunk) GetEncChunkMetadata

func (x *FileServerMessage_UploadChunk) GetEncChunkMetadata() *EncryptedChunkMetadata

func (*FileServerMessage_UploadChunk) ProtoMessage

func (*FileServerMessage_UploadChunk) ProtoMessage()

func (*FileServerMessage_UploadChunk) ProtoReflect

func (*FileServerMessage_UploadChunk) Reset

func (x *FileServerMessage_UploadChunk) Reset()

func (*FileServerMessage_UploadChunk) String

type FileServerMessage_UploadChunk_

type FileServerMessage_UploadChunk_ struct {
	UploadChunk *FileServerMessage_UploadChunk `protobuf:"bytes,2,opt,name=upload_chunk,json=uploadChunk,proto3,oneof"`
}

type FileServerMessage_UploadFileMetadata

type FileServerMessage_UploadFileMetadata struct {
	EncryptedFileMetadata *EncryptedFileMetadata `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*FileServerMessage_UploadFileMetadata) Descriptor deprecated

func (*FileServerMessage_UploadFileMetadata) Descriptor() ([]byte, []int)

Deprecated: Use FileServerMessage_UploadFileMetadata.ProtoReflect.Descriptor instead.

func (*FileServerMessage_UploadFileMetadata) GetEncryptedFileMetadata

func (x *FileServerMessage_UploadFileMetadata) GetEncryptedFileMetadata() *EncryptedFileMetadata

func (*FileServerMessage_UploadFileMetadata) ProtoMessage

func (*FileServerMessage_UploadFileMetadata) ProtoMessage()

func (*FileServerMessage_UploadFileMetadata) ProtoReflect

func (*FileServerMessage_UploadFileMetadata) Reset

func (*FileServerMessage_UploadFileMetadata) String

type FileServerMessage_UploadFileMetadata_

type FileServerMessage_UploadFileMetadata_ struct {
	UploadFileMetadata *FileServerMessage_UploadFileMetadata `protobuf:"bytes,6,opt,name=upload_file_metadata,json=uploadFileMetadata,proto3,oneof"`
}

type FileType

type FileType int32
const (
	FileType_IMAGE   FileType = 0
	FileType_TEXT    FileType = 1
	FileType_UNKNOWN FileType = 2
	FileType_BINARY  FileType = 3
)

func (FileType) Descriptor

func (FileType) Descriptor() protoreflect.EnumDescriptor

func (FileType) Enum

func (x FileType) Enum() *FileType

func (FileType) EnumDescriptor deprecated

func (FileType) EnumDescriptor() ([]byte, []int)

Deprecated: Use FileType.Descriptor instead.

func (FileType) Number

func (x FileType) Number() protoreflect.EnumNumber

func (FileType) String

func (x FileType) String() string

func (FileType) Type

type GetMasterEncryptionKeyResp

type GetMasterEncryptionKeyResp struct {

	// Types that are assignable to Response:
	//
	//	*GetMasterEncryptionKeyResp_EncryptedKey
	//	*GetMasterEncryptionKeyResp_Err
	Response isGetMasterEncryptionKeyResp_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*GetMasterEncryptionKeyResp) Descriptor deprecated

func (*GetMasterEncryptionKeyResp) Descriptor() ([]byte, []int)

Deprecated: Use GetMasterEncryptionKeyResp.ProtoReflect.Descriptor instead.

func (*GetMasterEncryptionKeyResp) GetEncryptedKey

func (x *GetMasterEncryptionKeyResp) GetEncryptedKey() []byte

func (*GetMasterEncryptionKeyResp) GetErr

func (x *GetMasterEncryptionKeyResp) GetErr() string

func (*GetMasterEncryptionKeyResp) GetResponse

func (m *GetMasterEncryptionKeyResp) GetResponse() isGetMasterEncryptionKeyResp_Response

func (*GetMasterEncryptionKeyResp) ProtoMessage

func (*GetMasterEncryptionKeyResp) ProtoMessage()

func (*GetMasterEncryptionKeyResp) ProtoReflect

func (*GetMasterEncryptionKeyResp) Reset

func (x *GetMasterEncryptionKeyResp) Reset()

func (*GetMasterEncryptionKeyResp) String

func (x *GetMasterEncryptionKeyResp) String() string

type GetMasterEncryptionKeyResp_EncryptedKey

type GetMasterEncryptionKeyResp_EncryptedKey struct {
	EncryptedKey []byte `protobuf:"bytes,1,opt,name=encrypted_key,json=encryptedKey,proto3,oneof"`
}

type GetMasterEncryptionKeyResp_Err

type GetMasterEncryptionKeyResp_Err struct {
	Err string `protobuf:"bytes,2,opt,name=err,proto3,oneof"`
}

type GetUsageResp

type GetUsageResp struct {

	// Types that are assignable to Response:
	//
	//	*GetUsageResp_Usage_
	//	*GetUsageResp_Err
	Response isGetUsageResp_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*GetUsageResp) Descriptor deprecated

func (*GetUsageResp) Descriptor() ([]byte, []int)

Deprecated: Use GetUsageResp.ProtoReflect.Descriptor instead.

func (*GetUsageResp) GetErr

func (x *GetUsageResp) GetErr() string

func (*GetUsageResp) GetResponse

func (m *GetUsageResp) GetResponse() isGetUsageResp_Response

func (*GetUsageResp) GetUsage

func (x *GetUsageResp) GetUsage() *GetUsageResp_Usage

func (*GetUsageResp) ProtoMessage

func (*GetUsageResp) ProtoMessage()

func (*GetUsageResp) ProtoReflect

func (x *GetUsageResp) ProtoReflect() protoreflect.Message

func (*GetUsageResp) Reset

func (x *GetUsageResp) Reset()

func (*GetUsageResp) String

func (x *GetUsageResp) String() string

type GetUsageResp_Err

type GetUsageResp_Err struct {
	Err string `protobuf:"bytes,2,opt,name=err,proto3,oneof"`
}

type GetUsageResp_Usage

type GetUsageResp_Usage struct {
	TotalUsage uint64 `protobuf:"varint,1,opt,name=total_usage,json=totalUsage,proto3" json:"total_usage,omitempty"`
	StorageCap uint64 `protobuf:"varint,2,opt,name=storage_cap,json=storageCap,proto3" json:"storage_cap,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUsageResp_Usage) Descriptor deprecated

func (*GetUsageResp_Usage) Descriptor() ([]byte, []int)

Deprecated: Use GetUsageResp_Usage.ProtoReflect.Descriptor instead.

func (*GetUsageResp_Usage) GetStorageCap

func (x *GetUsageResp_Usage) GetStorageCap() uint64

func (*GetUsageResp_Usage) GetTotalUsage

func (x *GetUsageResp_Usage) GetTotalUsage() uint64

func (*GetUsageResp_Usage) ProtoMessage

func (*GetUsageResp_Usage) ProtoMessage()

func (*GetUsageResp_Usage) ProtoReflect

func (x *GetUsageResp_Usage) ProtoReflect() protoreflect.Message

func (*GetUsageResp_Usage) Reset

func (x *GetUsageResp_Usage) Reset()

func (*GetUsageResp_Usage) String

func (x *GetUsageResp_Usage) String() string

type GetUsageResp_Usage_

type GetUsageResp_Usage_ struct {
	Usage *GetUsageResp_Usage `protobuf:"bytes,1,opt,name=usage,proto3,oneof"`
}

type ListChunkMetadataResp

type ListChunkMetadataResp struct {

	// Types that are assignable to Response:
	//
	//	*ListChunkMetadataResp_Metadatas
	//	*ListChunkMetadataResp_Err
	Response isListChunkMetadataResp_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*ListChunkMetadataResp) Descriptor deprecated

func (*ListChunkMetadataResp) Descriptor() ([]byte, []int)

Deprecated: Use ListChunkMetadataResp.ProtoReflect.Descriptor instead.

func (*ListChunkMetadataResp) GetErr

func (x *ListChunkMetadataResp) GetErr() string

func (*ListChunkMetadataResp) GetMetadatas

func (*ListChunkMetadataResp) GetResponse

func (m *ListChunkMetadataResp) GetResponse() isListChunkMetadataResp_Response

func (*ListChunkMetadataResp) ProtoMessage

func (*ListChunkMetadataResp) ProtoMessage()

func (*ListChunkMetadataResp) ProtoReflect

func (x *ListChunkMetadataResp) ProtoReflect() protoreflect.Message

func (*ListChunkMetadataResp) Reset

func (x *ListChunkMetadataResp) Reset()

func (*ListChunkMetadataResp) String

func (x *ListChunkMetadataResp) String() string

type ListChunkMetadataResp_ChunkMetadatas

type ListChunkMetadataResp_ChunkMetadatas struct {
	Metadatas map[string]*ChunkMetadata `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListChunkMetadataResp_ChunkMetadatas) Descriptor deprecated

func (*ListChunkMetadataResp_ChunkMetadatas) Descriptor() ([]byte, []int)

Deprecated: Use ListChunkMetadataResp_ChunkMetadatas.ProtoReflect.Descriptor instead.

func (*ListChunkMetadataResp_ChunkMetadatas) GetMetadatas

func (*ListChunkMetadataResp_ChunkMetadatas) ProtoMessage

func (*ListChunkMetadataResp_ChunkMetadatas) ProtoMessage()

func (*ListChunkMetadataResp_ChunkMetadatas) ProtoReflect

func (*ListChunkMetadataResp_ChunkMetadatas) Reset

func (*ListChunkMetadataResp_ChunkMetadatas) String

type ListChunkMetadataResp_Err

type ListChunkMetadataResp_Err struct {
	Err string `protobuf:"bytes,2,opt,name=err,proto3,oneof"`
}

type ListChunkMetadataResp_Metadatas

type ListChunkMetadataResp_Metadatas struct {
	Metadatas *ListChunkMetadataResp_ChunkMetadatas `protobuf:"bytes,1,opt,name=metadatas,proto3,oneof"`
}

type ListFileMetadataResp

type ListFileMetadataResp struct {

	// Types that are assignable to Response:
	//
	//	*ListFileMetadataResp_Metadatas
	//	*ListFileMetadataResp_Err
	Response isListFileMetadataResp_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*ListFileMetadataResp) Descriptor deprecated

func (*ListFileMetadataResp) Descriptor() ([]byte, []int)

Deprecated: Use ListFileMetadataResp.ProtoReflect.Descriptor instead.

func (*ListFileMetadataResp) GetErr

func (x *ListFileMetadataResp) GetErr() string

func (*ListFileMetadataResp) GetMetadatas

func (*ListFileMetadataResp) GetResponse

func (m *ListFileMetadataResp) GetResponse() isListFileMetadataResp_Response

func (*ListFileMetadataResp) ProtoMessage

func (*ListFileMetadataResp) ProtoMessage()

func (*ListFileMetadataResp) ProtoReflect

func (x *ListFileMetadataResp) ProtoReflect() protoreflect.Message

func (*ListFileMetadataResp) Reset

func (x *ListFileMetadataResp) Reset()

func (*ListFileMetadataResp) String

func (x *ListFileMetadataResp) String() string

type ListFileMetadataResp_Err

type ListFileMetadataResp_Err struct {
	Err string `protobuf:"bytes,2,opt,name=err,proto3,oneof"`
}

type ListFileMetadataResp_FileMetadatas

type ListFileMetadataResp_FileMetadatas struct {
	Metadatas map[string]*EncryptedFileMetadata `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListFileMetadataResp_FileMetadatas) Descriptor deprecated

func (*ListFileMetadataResp_FileMetadatas) Descriptor() ([]byte, []int)

Deprecated: Use ListFileMetadataResp_FileMetadatas.ProtoReflect.Descriptor instead.

func (*ListFileMetadataResp_FileMetadatas) GetMetadatas

func (*ListFileMetadataResp_FileMetadatas) ProtoMessage

func (*ListFileMetadataResp_FileMetadatas) ProtoMessage()

func (*ListFileMetadataResp_FileMetadatas) ProtoReflect

func (*ListFileMetadataResp_FileMetadatas) Reset

func (*ListFileMetadataResp_FileMetadatas) String

type ListFileMetadataResp_Metadatas

type ListFileMetadataResp_Metadatas struct {
	Metadatas *ListFileMetadataResp_FileMetadatas `protobuf:"bytes,1,opt,name=metadatas,proto3,oneof"`
}

type MasterKey

type MasterKey []byte

func CreateMasterEncKey

func CreateMasterEncKey(password string) (MasterKey, error)

func MasterKeyFromContext

func MasterKeyFromContext(ctx context.Context) MasterKey

type SetMasterEncryptionKeyResp

type SetMasterEncryptionKeyResp struct {
	Err *string `protobuf:"bytes,1,opt,name=err,proto3,oneof" json:"err,omitempty"`
	// contains filtered or unexported fields
}

func (*SetMasterEncryptionKeyResp) Descriptor deprecated

func (*SetMasterEncryptionKeyResp) Descriptor() ([]byte, []int)

Deprecated: Use SetMasterEncryptionKeyResp.ProtoReflect.Descriptor instead.

func (*SetMasterEncryptionKeyResp) GetErr

func (x *SetMasterEncryptionKeyResp) GetErr() string

func (*SetMasterEncryptionKeyResp) ProtoMessage

func (*SetMasterEncryptionKeyResp) ProtoMessage()

func (*SetMasterEncryptionKeyResp) ProtoReflect

func (*SetMasterEncryptionKeyResp) Reset

func (x *SetMasterEncryptionKeyResp) Reset()

func (*SetMasterEncryptionKeyResp) String

func (x *SetMasterEncryptionKeyResp) String() string

type TokenInfo

type TokenInfo struct {
	Token     string
	MasterKey MasterKey
}

func GetToken

func GetToken(bigCentralURL string, dlToken string, rsaPrivKey *rsa.PrivateKey) (*TokenInfo, error)

type UpdateFileMetadataResp

type UpdateFileMetadataResp struct {
	Err *string `protobuf:"bytes,1,opt,name=err,proto3,oneof" json:"err,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateFileMetadataResp) Descriptor deprecated

func (*UpdateFileMetadataResp) Descriptor() ([]byte, []int)

Deprecated: Use UpdateFileMetadataResp.ProtoReflect.Descriptor instead.

func (*UpdateFileMetadataResp) GetErr

func (x *UpdateFileMetadataResp) GetErr() string

func (*UpdateFileMetadataResp) ProtoMessage

func (*UpdateFileMetadataResp) ProtoMessage()

func (*UpdateFileMetadataResp) ProtoReflect

func (x *UpdateFileMetadataResp) ProtoReflect() protoreflect.Message

func (*UpdateFileMetadataResp) Reset

func (x *UpdateFileMetadataResp) Reset()

func (*UpdateFileMetadataResp) String

func (x *UpdateFileMetadataResp) String() string

type UploadChunkResp

type UploadChunkResp struct {
	Err *string `protobuf:"bytes,1,opt,name=err,proto3,oneof" json:"err,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadChunkResp) Descriptor deprecated

func (*UploadChunkResp) Descriptor() ([]byte, []int)

Deprecated: Use UploadChunkResp.ProtoReflect.Descriptor instead.

func (*UploadChunkResp) GetErr

func (x *UploadChunkResp) GetErr() string

func (*UploadChunkResp) ProtoMessage

func (*UploadChunkResp) ProtoMessage()

func (*UploadChunkResp) ProtoReflect

func (x *UploadChunkResp) ProtoReflect() protoreflect.Message

func (*UploadChunkResp) Reset

func (x *UploadChunkResp) Reset()

func (*UploadChunkResp) String

func (x *UploadChunkResp) String() string

type UploadFileMetadataResp

type UploadFileMetadataResp struct {
	Err *string `protobuf:"bytes,1,opt,name=err,proto3,oneof" json:"err,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadFileMetadataResp) Descriptor deprecated

func (*UploadFileMetadataResp) Descriptor() ([]byte, []int)

Deprecated: Use UploadFileMetadataResp.ProtoReflect.Descriptor instead.

func (*UploadFileMetadataResp) GetErr

func (x *UploadFileMetadataResp) GetErr() string

func (*UploadFileMetadataResp) ProtoMessage

func (*UploadFileMetadataResp) ProtoMessage()

func (*UploadFileMetadataResp) ProtoReflect

func (x *UploadFileMetadataResp) ProtoReflect() protoreflect.Message

func (*UploadFileMetadataResp) Reset

func (x *UploadFileMetadataResp) Reset()

func (*UploadFileMetadataResp) String

func (x *UploadFileMetadataResp) String() string

type ViewFileInfo

type ViewFileInfo struct {
	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Token      string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	FileEncKey string `protobuf:"bytes,3,opt,name=file_enc_key,json=fileEncKey,proto3" json:"file_enc_key,omitempty"`
	// contains filtered or unexported fields
}

func DecodeViewFileInfoB64

func DecodeViewFileInfoB64(b64 string) (*ViewFileInfo, error)

func ShareFile

func ShareFile(fileMeta *FileMetadata, tokenStr string, masterKey MasterKey) (*ViewFileInfo, error)

func (*ViewFileInfo) Descriptor deprecated

func (*ViewFileInfo) Descriptor() ([]byte, []int)

Deprecated: Use ViewFileInfo.ProtoReflect.Descriptor instead.

func (*ViewFileInfo) GetFileEncKey

func (x *ViewFileInfo) GetFileEncKey() string

func (*ViewFileInfo) GetId

func (x *ViewFileInfo) GetId() string

func (*ViewFileInfo) GetToken

func (x *ViewFileInfo) GetToken() string

func (*ViewFileInfo) ProtoMessage

func (*ViewFileInfo) ProtoMessage()

func (*ViewFileInfo) ProtoReflect

func (x *ViewFileInfo) ProtoReflect() protoreflect.Message

func (*ViewFileInfo) Reset

func (x *ViewFileInfo) Reset()

func (*ViewFileInfo) String

func (x *ViewFileInfo) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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