errors

package
v9.1.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrResourceNotInitialized is error string to return when SDK resources are not yet initialized
	ErrResourceNotInitialized = fmt.Errorf("resource has not been initialized")
)

Functions

func IsAccessDenied

func IsAccessDenied(err error) bool

Types

type ErrCloudBackupServerBusy

type ErrCloudBackupServerBusy struct {
	// object ID for which server is busy
	ID string
}

ErrCloudBackupServerBusy indicates server being busy with too many requests

func (*ErrCloudBackupServerBusy) Error

func (e *ErrCloudBackupServerBusy) Error() string

type ErrExists

type ErrExists struct {
	// ID unique object identifier.
	ID string
	// Type of the object which already exists
	Type string
}

ErrExists type for objects already present

func (*ErrExists) Error

func (e *ErrExists) Error() string

type ErrNotFound

type ErrNotFound struct {
	// ID unique object identifier.
	ID string
	// Type of the object which wasn't found
	Type string
}

ErrNotFound error type for objects not found

func (*ErrNotFound) Error

func (e *ErrNotFound) Error() string

type ErrNotSupported

type ErrNotSupported struct{}

ErrNotSupported error type for APIs that are not supported

func (*ErrNotSupported) Error

func (e *ErrNotSupported) Error() string

type ErrStoragePoolResizeInProgress

type ErrStoragePoolResizeInProgress struct {
	// Pool is the affected pool
	Pool *api.StoragePool
}

ErrStoragePoolExpandInProgress error when an expand is already in progress on a storage pool

func (*ErrStoragePoolResizeInProgress) Error

Jump to

Keyboard shortcuts

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