diskpacked

package
v0.0.0-...-c8ec3b5 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2016 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package diskpacked registers the "diskpacked" blobserver storage type, storing blobs packed together into monolithic data files with an index listing the sizes and offsets of the little blobs within the large files.

Example low-level config:

"/storage/": {
    "handler": "storage-diskpacked",
    "handlerArgs": {
       "path": "/var/camlistore/blobs"
     }
},

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDir

func IsDir(dir string) (bool, error)

IsDir reports whether dir is a diskpacked directory.

func New

func New(dir string) (blobserver.Storage, error)

New returns a diskpacked storage implementation, adding blobs to the provided directory. It doesn't delete any existing blob pack files.

func Reindex

func Reindex(root string, overwrite bool, indexConf jsonconfig.Obj) (err error)

Reindex rewrites the index files of the diskpacked .pack files

Types

This section is empty.

Jump to

Keyboard shortcuts

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