Documentation ¶
Index ¶
- Variables
- type Blocks
- type File
- func (f *File) AddFileToPath(filePath, metaHexRef string) error
- func (f *File) AddToFileMap(filePath string, meta *m.FileMetaData)
- func (f *File) Cat(fileName string) error
- func (f *File) CopyToFile(podFile string, localDir string) error
- func (f *File) Download(podFile string) (io.ReadCloser, string, string, error)
- func (f *File) FileStat(podName, fileName, account string) (*FileStats, error)
- func (f *File) GetContentType(bufferReader *bufio.Reader) string
- func (f *File) GetFileReference(podFile string) ([]byte, string, error)
- func (f *File) GetFromFileMap(filePath string) *m.FileMetaData
- func (f *File) IsFileAlreadyPResent(fileWithPath string) bool
- func (f *File) ListFiles(directory string) []string
- func (f *File) LoadFileMeta(podName string, addr []byte) (int, error)
- func (f *File) RemoveFromFileMap(filePath string)
- func (f *File) Upload(fd io.Reader, fileName string, fileSize int64, blockSize uint32, ...) ([]byte, error)
- type FileBlock
- type FileINode
- type FileStats
- type Reader
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NoOfParallelWorkers = runtime.NumCPU() * 4
)
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func NewFile ¶
func NewFile(podName string, client blockstore.Client, fd *feed.API, acc *account.AccountInfo, logger logging.Logger) *File
func (*File) AddFileToPath ¶
func (*File) AddToFileMap ¶
func (f *File) AddToFileMap(filePath string, meta *m.FileMetaData)
func (*File) GetFileReference ¶
func (*File) GetFromFileMap ¶
func (f *File) GetFromFileMap(filePath string) *m.FileMetaData
func (*File) IsFileAlreadyPResent ¶
func (*File) RemoveFromFileMap ¶
type FileStats ¶
type FileStats struct { Account string `json:"account"` PodName string `json:"pod_name"` FilePath string `json:"file_path"` FileName string `json:"file_name"` FileSize string `json:"file_size"` BlockSize string `json:"block_size"` Compression string `json:"compression"` ContentType string `json:"content_type"` CreationTime string `json:"creation_time"` ModificationTime string `json:"modification_time"` AccessTime string `json:"access_time"` Blocks []Blocks }
Click to show internal directories.
Click to hide internal directories.