pfs

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 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 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

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