file_upload_handler

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const GoVirtual = "govirtual"

Variables

This section is empty.

Functions

This section is empty.

Types

type FileUploadHandler

type FileUploadHandler struct {
	File *types.File
	// contains filtered or unexported fields
}

func NewFileUploadHandler

func NewFileUploadHandler(file *os.File, parentPath string, uuid string, savedKey []byte, savedIv []byte) (*FileUploadHandler, error)

func TrackFile

func TrackFile(file *os.File, parentPath string) (*FileUploadHandler, error)

func TrackVirtualFile

func TrackVirtualFile(bytes []byte, fileName string, parentPath string) (*FileUploadHandler, error)

func (*FileUploadHandler) GetEnc

func (f *FileUploadHandler) GetEnc() (key []byte, iv []byte)

func (*FileUploadHandler) GetForUpload

func (f *FileUploadHandler) GetForUpload(public bool) (*types.File, error)

func (*FileUploadHandler) GetFullMerkle

func (f *FileUploadHandler) GetFullMerkle() string

func (*FileUploadHandler) GetIds

func (f *FileUploadHandler) GetIds() (string, []string)

func (*FileUploadHandler) GetMerklePath

func (f *FileUploadHandler) GetMerklePath() string

func (*FileUploadHandler) GetMeta

func (f *FileUploadHandler) GetMeta() types.Details

func (*FileUploadHandler) GetUUID

func (f *FileUploadHandler) GetUUID() string

func (*FileUploadHandler) GetWhereAmI

func (f *FileUploadHandler) GetWhereAmI() string

func (*FileUploadHandler) GetWhoAmI

func (f *FileUploadHandler) GetWhoAmI() string

func (*FileUploadHandler) SetIds

func (f *FileUploadHandler) SetIds(cid string, fid []string)

func (*FileUploadHandler) SetUUID

func (f *FileUploadHandler) SetUUID(uuid string)

Jump to

Keyboard shortcuts

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