kv

package
v0.0.0-...-41cac4f Latest Latest
Warning

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

Go to latest
Published: May 26, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const BLOB = "blob"
View Source
const COMMIT = "commit"
View Source
const PREFIX = "prefix"
View Source
const SNAPSHOT = "snapshot"
View Source
const TREE = "tree"

Variables

This section is empty.

Functions

func AddLevel0Cache

func AddLevel0Cache(hash string, size uint32) error

func AddLevel0Stage

func AddLevel0Stage(hash string, size uint32) error

func AddMultiToLevel1

func AddMultiToLevel1(keys, values [][]byte, objType string) error

func AddToLevel1

func AddToLevel1(key, value []byte, objType string) error

func AddToStage

func AddToStage(key string) error

func ClearStage

func ClearStage() error

func CommitIsParent

func CommitIsParent(key []byte) (bool, error)

func GetLevel0CacheSize

func GetLevel0CacheSize() (uint64, error)

func GetLevel0RandomListFromCache

func GetLevel0RandomListFromCache() ([]string, error)

func GetLevel0StageSize

func GetLevel0StageSize() (uint64, error)

func GetLevel1

func GetLevel1(key []byte) ([]byte, string, error)

Get object of any type, return value and type

func GetLevel1BlobsStats

func GetLevel1BlobsStats() (uint64, error)

func ListLevel1Blobs

func ListLevel1Blobs(query string) (<-chan []byte, error)

func ListLevel1Commits

func ListLevel1Commits(query string) (<-chan []byte, error)

func ListLevel1Prefixes

func ListLevel1Prefixes() (<-chan []byte, error)

func ListLevel1Snapshots

func ListLevel1Snapshots() (<-chan []byte, error)

func ListLevel1Trees

func ListLevel1Trees() (<-chan []byte, error)

func ListStage

func ListStage() (<-chan []byte, error)

func ListTopMostCommits

func ListTopMostCommits() (<-chan []byte, error)

func MarkCommitAsParent

func MarkCommitAsParent(key string) error

func MoveLevel0FromStageToCache

func MoveLevel0FromStageToCache(hash string) error

func OpenDatabase

func OpenDatabase() error

func RemoveLevel0FromCache

func RemoveLevel0FromCache(hash string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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