Versions in this module Expand all Collapse all v0 v0.1.4 Jan 27, 2021 v0.1.3 Jan 21, 2021 v0.1.2 Jan 7, 2021 v0.1.1 Dec 22, 2020 Changes in this version + type BlockFS struct + func (b *BlockFS) CompleteObjectUpload(u CompletedObjectUploadConfig) error + func (b *BlockFS) DeleteObjects(path ...string) error + func (b *BlockFS) GetDir(path string, recursive bool) (*[]FileStoreResultObject, error) + func (b *BlockFS) GetObject(path string) (io.ReadCloser, error) + func (b *BlockFS) InitializeObjectUpload(u UploadConfig) (UploadResult, error) + func (b *BlockFS) PutObject(path string, data []byte) (*FileOperationOutput, error) + func (b *BlockFS) Walk(path string, vistorFunction FileVisitFunction) error + func (b *BlockFS) WriteChunk(u UploadConfig) (UploadResult, error) + type BlockFSConfig struct + type CompletedObjectUploadConfig struct + ChunkUploadIds []string + ObjectPath string + UploadId string + type FileOperationOutput struct + Md5 string + type FileStore interface + CompleteObjectUpload func(CompletedObjectUploadConfig) error + DeleteObjects func(path ...string) error + GetDir func(string, bool) (*[]FileStoreResultObject, error) + GetObject func(string) (io.ReadCloser, error) + InitializeObjectUpload func(UploadConfig) (UploadResult, error) + PutObject func(string, []byte) (*FileOperationOutput, error) + Walk func(string, FileVisitFunction) error + WriteChunk func(UploadConfig) (UploadResult, error) + func NewFileStore(config interface{}) (FileStore, error) + type FileStoreResultObject struct + ID int + IsDir bool + Modified time.Time + ModifiedBy string + Name string + Path string + Size string + Type string + type FileVisitFunction func(path string, file os.FileInfo) error + type PATHTYPE int + const FILE + const FOLDER + type PathParts struct + Parts []string + func (pp PathParts) ToFilePath(additionalParts ...string) string + func (pp PathParts) ToPath(additionalParts ...string) string + type S3FS struct + func (s3fs *S3FS) CompleteObjectUpload(u CompletedObjectUploadConfig) error + func (s3fs *S3FS) DeleteObjects(path ...string) error + func (s3fs *S3FS) GetDir(path string, recursive bool) (*[]FileStoreResultObject, error) + func (s3fs *S3FS) GetObject(path string) (io.ReadCloser, error) + func (s3fs *S3FS) InitializeObjectUpload(u UploadConfig) (UploadResult, error) + func (s3fs *S3FS) Ping() error + func (s3fs *S3FS) PutObject(path string, data []byte) (*FileOperationOutput, error) + func (s3fs *S3FS) SetObjectPublic(path string) (string, error) + func (s3fs *S3FS) SharedAccessURL(path string, expiration time.Duration) (string, error) + func (s3fs *S3FS) Walk(path string, vistorFunction FileVisitFunction) error + func (s3fs *S3FS) WriteChunk(u UploadConfig) (UploadResult, error) + type S3FSConfig struct + S3Bucket string + S3Id string + S3Key string + S3Region string + type S3FileInfo struct + func (obj *S3FileInfo) IsDir() bool + func (obj *S3FileInfo) ModTime() time.Time + func (obj *S3FileInfo) Mode() os.FileMode + func (obj *S3FileInfo) Name() string + func (obj *S3FileInfo) Size() int64 + func (obj *S3FileInfo) Sys() interface{} + type UploadConfig struct + ChunkId int64 + Data []byte + ObjectPath string + UploadId string + type UploadResult struct + ID string + IsComplete bool + WriteSize int