Documentation ¶
Index ¶
- func BlockInShard(shard *pfs.Shard, block *pfs.Block) bool
- func ByteRangeSize(byteRange *pfs.ByteRange) uint64
- func FileInShard(shard *pfs.Shard, file *pfs.File) bool
- func ReduceCommitInfos(commitInfos []*pfs.CommitInfo) []*pfs.CommitInfo
- func ReduceFileInfos(fileInfos []*pfs.FileInfo) []*pfs.FileInfo
- func ReduceRepoInfos(repoInfos []*pfs.RepoInfo) []*pfs.RepoInfo
- type ErrCommitNotFound
- type ErrFileNotFound
- type ErrParentCommitNotFound
- type ErrRepoNotFound
- type Hasher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteRangeSize ¶
func FileInShard ¶
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
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
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. |
Click to show internal directories.
Click to hide internal directories.