Documentation ¶
Index ¶
- func ByteRangeSize(byteRange *pfs.ByteRange) uint64
- func IsCommitDeletedErr(err error) bool
- func IsCommitNotFoundErr(err error) bool
- type ErrCommitDeleted
- type ErrCommitExists
- type ErrCommitFinished
- type ErrCommitNotFound
- type ErrFileNotFound
- type ErrNoHead
- type ErrParentCommitNotFound
- type ErrRepoExists
- type ErrRepoNotFound
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteRangeSize ¶
ByteRangeSize returns byteRange.Upper - byteRange.Lower.
func IsCommitDeletedErr ¶ added in v1.7.0
IsCommitDeletedErr returns true if 'err' has an error message that matches ErrCommitDeleted
func IsCommitNotFoundErr ¶ added in v1.7.0
IsCommitNotFoundErr returns true if 'err' has an error message that matches ErrCommitNotFound
Types ¶
type ErrCommitDeleted ¶ added in v1.7.0
ErrCommitDeleted represents an error where the commit has been deleted (e.g. from InspectCommit)
func (ErrCommitDeleted) Error ¶ added in v1.7.0
func (e ErrCommitDeleted) Error() string
type ErrCommitExists ¶ added in v1.2.0
ErrCommitExists represents an error where the commit already exists.
func (ErrCommitExists) Error ¶ added in v1.3.19
func (e ErrCommitExists) Error() string
type ErrCommitFinished ¶ added in v1.2.0
ErrCommitFinished represents an error where the commit has been finished (e.g from PutFile or DeleteFile)
func (ErrCommitFinished) Error ¶ added in v1.3.19
func (e ErrCommitFinished) Error() string
type ErrCommitNotFound ¶
ErrCommitNotFound represents a commit-not-found error.
func (ErrCommitNotFound) Error ¶ added in v1.3.19
func (e ErrCommitNotFound) Error() string
type ErrFileNotFound ¶
ErrFileNotFound represents a file-not-found error.
func (ErrFileNotFound) Error ¶ added in v1.3.19
func (e ErrFileNotFound) Error() string
type ErrNoHead ¶ added in v1.7.0
ErrNoHead represents an error encountered because a branch has no head (e.g. inspectCommit(master) when 'master' has no commits)
type ErrParentCommitNotFound ¶
ErrParentCommitNotFound represents a parent-commit-not-found error.
func (ErrParentCommitNotFound) Error ¶ added in v1.3.19
func (e ErrParentCommitNotFound) Error() string
type ErrRepoExists ¶ added in v1.3.19
ErrRepoExists represents a repo-exists error.
func (ErrRepoExists) Error ¶ added in v1.3.19
func (e ErrRepoExists) Error() string
type ErrRepoNotFound ¶
ErrRepoNotFound represents a repo-not-found error.
func (ErrRepoNotFound) Error ¶ added in v1.3.19
func (e ErrRepoNotFound) Error() string