Documentation ¶
Index ¶
- func ByteRangeSize(byteRange *pfs.ByteRange) uint64
- func IsBranchNotFoundErr(err error) bool
- func IsCommitDeletedErr(err error) bool
- func IsCommitFinishedErr(err error) bool
- func IsCommitNotFoundErr(err error) bool
- func IsFileNotFoundErr(err error) bool
- func IsRepoNotFoundErr(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 IsBranchNotFoundErr ¶ added in v1.9.0
IsBranchNotFoundErr returns true if 'err' is an error message about a branch not being found
func IsCommitDeletedErr ¶ added in v1.7.0
IsCommitDeletedErr returns true if 'err' has an error message that matches ErrCommitDeleted
func IsCommitFinishedErr ¶ added in v1.7.8
IsCommitFinishedErr returns true of 'err' has an error message that matches ErrCommitFinished
func IsCommitNotFoundErr ¶ added in v1.7.0
IsCommitNotFoundErr returns true if 'err' has an error message that matches ErrCommitNotFound
func IsFileNotFoundErr ¶ added in v1.9.0
IsFileNotFoundErr returns true if 'err' is an error message about a PFS file not being found
func IsRepoNotFoundErr ¶ added in v1.9.0
IsRepoNotFoundErr returns true if 'err' is an error message about a repo not being found
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 ¶ added in v1.1.0
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 ¶ added in v1.1.0
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 ¶ added in v1.0.465
ErrRepoNotFound represents a repo-not-found error.
func (ErrRepoNotFound) Error ¶ added in v1.3.19
func (e ErrRepoNotFound) Error() string