core

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package core provides all the basic functions for working with the split fs.

Index

Constants

View Source
const IndexName = "index.db2"

IndexName is the storageName of the db.

Variables

This section is empty.

Functions

func Clean

func Clean(vDB db.Db, service interf.Service, try bool, debugLvl uint8) error

Clean removes no longer referenced data from the storage. If the database does not contain any bundles, all bundles are ignored in storage (BundleMode=off). If the try flag is true, no data is deleted.

func Open

func Open(file db.VirtFile, vDb db.Db, service interf.Service, debugLvl uint8) (interf.ReaderAt, error)

Open returns a ReaderAt for the desired file. The data can be read directly in plain text. Smaller files are preferably read from a bundle.

func Upload

func Upload(rootPath string, vDB db.Db, dbKey []byte, service interf.Service, debugLvl uint8) error

Upload uploads all files that are defined in the database. If bundles are created (in db), they are also uploaded (@see db.BundlePrefix). Finally the database is also uploaded (@see IndexName).

Types

This section is empty.

Jump to

Keyboard shortcuts

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