carbon

package module
v0.0.0-...-07badf5 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0, MIT Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

💎 Carbon

Note: This repository has been integrated into the core car library. Use of this module is deprecated, and you should instead prefer car/v2/blockstore.

Carbon provides a blockstore interface with saved blocks stored to a car-compatible log. A Carbs index for the resulting file is tracked and can be saved as needed.

Note: Carbon does not support deletion.

License

Carbon is dual-licensed under Apache 2.0 and MIT terms:

Apache License, Version 2.0, (LICENSE or http://www.apache.org/licenses/LICENSE-2.0)
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

Documentation

Index

Constants

View Source
const IndexInsertion carbs.IndexCodec = 0x300010

IndexInsertion carbs IndexCodec identifier

Variables

This section is empty.

Functions

This section is empty.

Types

type Carbon deprecated

type Carbon interface {
	bs.Blockstore
	Checkpoint() error
	Finish() error
}

Deprecated: Prefer go-car/v2/blockstore.ReadWrite Carbon is a carbs-index-compatible blockstore supporting appending additional blocks

func New

func New(path string) (Carbon, error)

New creates a new Carbon blockstore

func NewWithRoots

func NewWithRoots(path string, roots []cid.Cid) (Carbon, error)

NewWithRoots creates a new Carbon blockstore with a provided set of root cids as the car roots

Jump to

Keyboard shortcuts

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