diskpacked

package
v0.0.0-...-4ba1123 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 28 Imported by: 1

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 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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