Home Download Docs Code Community
import "perkeep/pkg/blobserver/diskpacked"
Overview
Index

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

func CtxSetVerbose(ctx context.Context, verbose bool) context.Context
func IsDir(dir string) (bool, error)
func New(dir string) (blobserver.Storage, error)
func Reindex(ctx context.Context, root string, overwrite bool, indexConf jsonconfig.Obj) (err error)

Package files

dele.go diskpacked.go punch_linux.go reindex.go

func CtxSetVerbose

func CtxSetVerbose(ctx context.Context, verbose bool) context.Context

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(ctx context.Context, root string, overwrite bool, indexConf jsonconfig.Obj) (err error)

Reindex rewrites the index files of the diskpacked .pack files

Website layout inspired by memcached.
Content by the authors.