pfs

package
v1.0.395 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFileNotFound = errors.New("file not found")

Functions

func BlockInShard

func BlockInShard(shard *pfs.Shard, block *pfs.Block) bool

func ByteRangeSize

func ByteRangeSize(byteRange *pfs.ByteRange) uint64

func FileInShard

func FileInShard(shard *pfs.Shard, file *pfs.File) bool

func ReduceCommitInfos

func ReduceCommitInfos(commitInfos []*pfs.CommitInfo) []*pfs.CommitInfo

func ReduceFileInfos

func ReduceFileInfos(fileInfos []*pfs.FileInfo) []*pfs.FileInfo

func ReduceRepoInfos

func ReduceRepoInfos(repoInfos []*pfs.RepoInfo) []*pfs.RepoInfo

Types

type Hasher

type Hasher struct {
	FileModulus  uint64
	BlockModulus uint64
}

func NewHasher

func NewHasher(fileModulus uint64, blockModulus uint64) *Hasher

func (*Hasher) HashBlock

func (s *Hasher) HashBlock(block *pfs.Block) uint64

func (*Hasher) HashFile

func (s *Hasher) HashFile(file *pfs.File) uint64

Directories

Path Synopsis
Package drive provides the definitions for the low-level pfs storage drivers.
Package drive provides the definitions for the low-level pfs storage drivers.
Package fuse is a generated protocol buffer package.
Package fuse is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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