pfs

package
v1.9.0-1ff617394086e2a... Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteRangeSize

func ByteRangeSize(byteRange *pfs.ByteRange) uint64

ByteRangeSize returns byteRange.Upper - byteRange.Lower.

func IsBranchNotFoundErr added in v1.9.0

func IsBranchNotFoundErr(err error) bool

IsBranchNotFoundErr returns true if 'err' is an error message about a branch not being found

func IsCommitDeletedErr added in v1.7.0

func IsCommitDeletedErr(err error) bool

IsCommitDeletedErr returns true if 'err' has an error message that matches ErrCommitDeleted

func IsCommitFinishedErr added in v1.7.8

func IsCommitFinishedErr(err error) bool

IsCommitFinishedErr returns true of 'err' has an error message that matches ErrCommitFinished

func IsCommitNotFoundErr added in v1.7.0

func IsCommitNotFoundErr(err error) bool

IsCommitNotFoundErr returns true if 'err' has an error message that matches ErrCommitNotFound

func IsFileNotFoundErr added in v1.9.0

func IsFileNotFoundErr(err error) bool

IsFileNotFoundErr returns true if 'err' is an error message about a PFS file not being found

func IsRepoNotFoundErr added in v1.9.0

func IsRepoNotFoundErr(err error) bool

IsRepoNotFoundErr returns true if 'err' is an error message about a repo not being found

Types

type ErrCommitDeleted added in v1.7.0

type ErrCommitDeleted struct {
	Commit *pfs.Commit
}

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

type ErrCommitExists struct {
	Commit *pfs.Commit
}

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

type ErrCommitFinished struct {
	Commit *pfs.Commit
}

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

type ErrCommitNotFound struct {
	Commit *pfs.Commit
}

ErrCommitNotFound represents a commit-not-found error.

func (ErrCommitNotFound) Error added in v1.3.19

func (e ErrCommitNotFound) Error() string

type ErrFileNotFound

type ErrFileNotFound struct {
	File *pfs.File
}

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

type ErrNoHead struct {
	Branch *pfs.Branch
}

ErrNoHead represents an error encountered because a branch has no head (e.g. inspectCommit(master) when 'master' has no commits)

func (ErrNoHead) Error added in v1.7.0

func (e ErrNoHead) Error() string

type ErrParentCommitNotFound added in v1.1.0

type ErrParentCommitNotFound struct {
	Commit *pfs.Commit
}

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

type ErrRepoExists struct {
	Repo *pfs.Repo
}

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

type ErrRepoNotFound struct {
	Repo *pfs.Repo
}

ErrRepoNotFound represents a repo-not-found error.

func (ErrRepoNotFound) Error added in v1.3.19

func (e ErrRepoNotFound) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL