Version: v0.0.0-...-633e61e Latest Latest

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

Go to latest
Published: Jul 12, 2021 License: GPL-3.0 Imports: 3 Imported by: 0




This section is empty.


View Source
var (
	ErrQuit = errors.New("operation does not need to continue")

	ErrNoSpace               = errors.New("no space on clusters")
	ErrNoAvailableActionNode = errors.New("no available node for clusters")
	ErrCreate                = errors.New("not possible to create shadow on data node")
	ErrNotEmpty              = errors.New("path is not empty")
	ErrLock                  = errors.New("path/file is locked")
	ErrRepair                = errors.New("inconsistency detected, require repairing")
	ErrZombie                = errors.New("path/file is zombie")
	ErrZombieAlive           = errors.New("zombie file is still alive, try again to kill")
	ErrJoinConflict          = errors.New("joining source folders will have conflict in target")
	ErrSync                  = errors.New("syncing is failed")
	ErrSnapshot              = errors.New("snapshot operation is failed")

	ErrExists                       = errors.New("cluster is already exists")
	ErrPing                         = errors.New("node is not reachable")
	ErrJoin                         = errors.New("node joining to cluster is failed")
	ErrMode                         = errors.New("setting node mode is failed")
	ErrLastNode                     = errors.New("last node of the cluster can not be removed")
	ErrRegistered                   = errors.New("node already registered")
	ErrNoAvailableClusterNode       = errors.New("no available node on the cluster")
	ErrNotAvailableForClusterAction = errors.New("cluster is not available for cluster wide actions")
	ErrNoDiskSpace                  = errors.New("no available disk space for this operation")
	ErrNotFound                     = errors.New("cluster/node not found")

	ErrShowUsage  = errors.New("show usage")
	ErrProcessing = errors.New("another operation in progress")
	ErrFrozen     = errors.New("cluster is frozen")
	ErrRemote     = errors.New("remote call execution is failed")


func NewUploadError

func NewUploadError(message string) error


type BulkError

type BulkError struct {
	// contains filtered or unexported fields

BulkError struct is too keep multiple error that can be occurred in execution

func NewBulkError

func NewBulkError() *BulkError

NewBulkError creates empty BulkError struct definition

func (*BulkError) Add

func (b *BulkError) Add(err error)

Add adds error in list

func (*BulkError) Error

func (b *BulkError) Error() string

func (*BulkError) HasError

func (b *BulkError) HasError() bool

HasError checks if any error is added to the list

type UploadError

type UploadError struct {
	// contains filtered or unexported fields

func (*UploadError) Error

func (u *UploadError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL