errors

package
v0.0.0-...-96b211d Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: GPL-3.0 Imports: 6 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

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 requested action")
	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")
	ErrTooManyErrors         = errors.New("too many error occurred, operation is canceled")
	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")
	ErrParalyzed  = errors.New("cluster is paralyzed")
	ErrReadonly   = errors.New("cluster is readonly")
	ErrOffline    = errors.New("cluster is offline")
	ErrMaintain   = errors.New("cluster is in maintain mode")
	ErrRemote     = errors.New("remote call execution is failed")
)

Functions

func IsDialError

func IsDialError(err error) bool

func NewUploadError

func NewUploadError(message string) error

Types

type BulkError

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

BulkError struct is to 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) ContainsType

func (b *BulkError) ContainsType(err error) bool

func (*BulkError) Count

func (b *BulkError) Count() int

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
y or Y : Canonical URL