pfs

package
v1.0.1-RCX14 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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

FileInShard checks if a given file belongs in a given shard, using only the file's top-level path. That is, for a path like foo/bar/buzz, FileInShard only considers foo

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 ErrCommitNotFound

type ErrCommitNotFound struct {
	// contains filtered or unexported fields
}

func NewErrCommitNotFound

func NewErrCommitNotFound(repo string, commitID string) *ErrCommitNotFound

type ErrFileNotFound

type ErrFileNotFound struct {
	// contains filtered or unexported fields
}

func NewErrFileNotFound

func NewErrFileNotFound(file string, repo string, commitID string) *ErrFileNotFound

type ErrParentCommitNotFound

type ErrParentCommitNotFound struct {
	// contains filtered or unexported fields
}

func NewErrParentCommitNotFound

func NewErrParentCommitNotFound(repo string, commitID string) *ErrParentCommitNotFound

type ErrRepoNotFound

type ErrRepoNotFound struct {
	// contains filtered or unexported fields
}

func NewErrRepoNotFound

func NewErrRepoNotFound(repo string) *ErrRepoNotFound

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