Documentation ¶
Index ¶
- func BlockInShard(shard *pfs.Shard, file *pfs.File, 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 ErrCommitExists
- type ErrCommitFinished
- type ErrCommitNotFound
- type ErrFileNotFound
- type ErrParentCommitNotFound
- type ErrRepoNotFound
- type Hasher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockInShard ¶
BlockInShard returns true if the block is in the given shard.
func ByteRangeSize ¶
ByteRangeSize returns byteRange.Upper - byteRange.Lower.
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
ReduceCommitInfos combines commit info for each commit id, resolving writes and adding byte-sizes together as appropriate.
func ReduceFileInfos ¶
ReduceFileInfos combines file info for each file path, taking the latest modification time for each path and combining their children.
Types ¶
type ErrCommitExists ¶ added in v1.2.0
type ErrCommitExists struct {
// contains filtered or unexported fields
}
ErrCommitExists represents an error where the commit already exists.
func NewErrCommitExists ¶ added in v1.2.0
func NewErrCommitExists(repo string, commitID string) *ErrCommitExists
NewErrCommitExists creates a new ErrCommitExists.
type ErrCommitFinished ¶ added in v1.2.0
type ErrCommitFinished struct {
// contains filtered or unexported fields
}
ErrCommitFinished represents an error where the commit has been finished.
func NewErrCommitFinished ¶ added in v1.2.0
func NewErrCommitFinished(repo string, commitID string) *ErrCommitFinished
NewErrCommitFinished creates a new ErrCommitExists.
type ErrCommitNotFound ¶ added in v1.1.0
type ErrCommitNotFound struct {
// contains filtered or unexported fields
}
ErrCommitNotFound represents a commit-not-found error.
func NewErrCommitNotFound ¶ added in v1.1.0
func NewErrCommitNotFound(repo string, commitID string) *ErrCommitNotFound
NewErrCommitNotFound creates a new ErrCommitNotFound.
type ErrFileNotFound ¶
type ErrFileNotFound struct {
// contains filtered or unexported fields
}
ErrFileNotFound represents a file-not-found error.
func NewErrFileNotFound ¶ added in v1.1.0
func NewErrFileNotFound(file string, repo string, commitID string) *ErrFileNotFound
NewErrFileNotFound creates a new ErrFileNotFound.
type ErrParentCommitNotFound ¶ added in v1.1.0
type ErrParentCommitNotFound struct {
// contains filtered or unexported fields
}
ErrParentCommitNotFound represents a parent-commit-not-found error.
func NewErrParentCommitNotFound ¶ added in v1.1.0
func NewErrParentCommitNotFound(repo string, commitID string) *ErrParentCommitNotFound
NewErrParentCommitNotFound creates a new ErrParentCommitNotFound.
type ErrRepoNotFound ¶ added in v1.0.465
type ErrRepoNotFound struct {
// contains filtered or unexported fields
}
ErrRepoNotFound represents a repo-not-found error.
func NewErrRepoNotFound ¶ added in v1.1.0
func NewErrRepoNotFound(repo string) *ErrRepoNotFound
NewErrRepoNotFound creates a new ErrRepoNotFound.
Directories ¶
Path | Synopsis |
---|---|
persist
Package persist is a generated protocol buffer package.
|
Package persist is a generated protocol buffer package. |
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. |