catfs

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2018 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotEmpty      = errors.New("Cannot remove: Directory is not empty")
	ErrStageNotEmpty = errors.New("There are changes in the staging area. Use the --force")
	ErrNoChange      = errors.New("Nothing changed between the given versions")
	ErrAmbigiousRev  = errors.New("There is more than one rev with this prefix")
)
View Source
var (
	// ErrExists is returned if a node already exists at a path, but should not.
	ErrExists = errors.New("File exists")
	// ErrBadNode is returned when a wrong node type was passed to a method.
	ErrBadNode = errors.New("Cannot convert to concrete type. Broken input data?")
)

Functions

func IsErrNoSuchRef

func IsErrNoSuchRef(err error) bool

func IsNoSuchFileError

func IsNoSuchFileError(err error) bool

IsNoSuchFileError asserts that `err` means that the file could not be found

func NoSuchFile

func NoSuchFile(path string) error

NoSuchFile creates a new error that reports `path` as missing

Types

type ErrBadNodeType

type ErrBadNodeType int

func (ErrBadNodeType) Error

func (e ErrBadNodeType) Error() string

type ErrInvalidRefSpec

type ErrInvalidRefSpec struct {
	// contains filtered or unexported fields
}

func (ErrInvalidRefSpec) Error

func (e ErrInvalidRefSpec) Error() string

type ErrNoHashFound

type ErrNoHashFound struct {
	// contains filtered or unexported fields
}

func (ErrNoHashFound) Error

func (e ErrNoHashFound) Error() string

type ErrNoSuchRef

type ErrNoSuchRef string

func (ErrNoSuchRef) Error

func (e ErrNoSuchRef) Error() string

Jump to

Keyboard shortcuts

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