services

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCapabilityInsufficient means this service doesn't have this capability
	ErrCapabilityInsufficient = errors.New("capability insufficient")
	// ErrRestrictionDissatisfied means this operation doesn't meat service's restriction.
	ErrRestrictionDissatisfied = errors.New("restriction dissatisfied")

	// ErrObjectNotExist means the object to be operated is not exist.
	ErrObjectNotExist = errors.New("object not exist")
	// ErrPermissionDenied means this operation doesn't have enough permission.
	ErrPermissionDenied = errors.New("permission denied")
)

Functions

This section is empty.

Types

type InitError added in v0.9.0

type InitError struct {
	Type string
	Err  error

	Pairs []*types.Pair
}

InitError means this service init failed.

Only returned in New

func (*InitError) Error added in v0.9.0

func (e *InitError) Error() string

func (*InitError) Unwrap added in v0.9.0

func (e *InitError) Unwrap() error

Unwrap implements xerrors.Wrapper

type MetadataUnrecognizedError added in v0.9.0

type MetadataUnrecognizedError struct {
	Err error

	Key   string
	Value interface{}
}

MetadataUnrecognizedError means this operation meets unrecognized metadata.

func NewMetadataNotRecognizedError added in v0.9.0

func NewMetadataNotRecognizedError(key string, value interface{}) *MetadataUnrecognizedError

NewMetadataNotRecognizedError will create a new MetadataUnrecognizedError.

func (*MetadataUnrecognizedError) Error added in v0.9.0

func (e *MetadataUnrecognizedError) Error() string

func (*MetadataUnrecognizedError) Unwrap added in v0.9.0

func (e *MetadataUnrecognizedError) Unwrap() error

Unwrap implements xerrors.Wrapper

type PairConflictError added in v0.9.0

type PairConflictError struct {
	Err error

	Pairs []*types.Pair
}

PairConflictError means this operation has conflict pairs.

func NewPairConflictError added in v0.9.0

func NewPairConflictError(pairs ...*types.Pair) *PairConflictError

NewPairConflictError will create a new NewPairConflictError.

func (*PairConflictError) Error added in v0.9.0

func (e *PairConflictError) Error() string

func (*PairConflictError) Unwrap added in v0.9.0

func (e *PairConflictError) Unwrap() error

Unwrap implements xerrors.Wrapper

type PairRequiredError added in v0.9.0

type PairRequiredError struct {
	Err error

	Keys []string
}

PairRequiredError means this operation has required pair but missing.

func NewPairRequiredError added in v0.9.0

func NewPairRequiredError(keys ...string) *PairRequiredError

NewPairRequiredError will create a new PairRequiredError.

func (*PairRequiredError) Error added in v0.9.0

func (e *PairRequiredError) Error() string

func (*PairRequiredError) Unwrap added in v0.9.0

func (e *PairRequiredError) Unwrap() error

Unwrap implements xerrors.Wrapper

type PairUnsupportedError added in v0.9.0

type PairUnsupportedError struct {
	Err error

	Pair *types.Pair
}

PairUnsupportedError means this operation has unsupported pair.

func NewPairUnsupportedError added in v0.9.0

func NewPairUnsupportedError(pair *types.Pair) *PairUnsupportedError

NewPairUnsupportedError will create a new PairUnsupportedError.

func (*PairUnsupportedError) Error added in v0.9.0

func (e *PairUnsupportedError) Error() string

func (*PairUnsupportedError) Unwrap added in v0.9.0

func (e *PairUnsupportedError) Unwrap() error

Unwrap implements xerrors.Wrapper

type ServiceError

type ServiceError struct {
	Op  string
	Err error

	storage.Servicer
	Name string
}

ServiceError represent errors related to service.

Only returned in Servicer related operations

func (*ServiceError) Error

func (e *ServiceError) Error() string

func (*ServiceError) Unwrap

func (e *ServiceError) Unwrap() error

Unwrap implements xerrors.Wrapper

type StorageError

type StorageError struct {
	Op  string
	Err error

	storage.Storager
	Path []string
}

StorageError represent errors related to storage.

Only returned in Storager related operations

func (*StorageError) Error

func (e *StorageError) Error() string

func (*StorageError) Unwrap

func (e *StorageError) Unwrap() error

Unwrap implements xerrors.Wrapper

Directories

Path Synopsis
Package azblob provided support for Azure Storage containers and blobs objects (https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction) Code generated by go generate via internal/cmd/service; DO NOT EDIT.
Package azblob provided support for Azure Storage containers and blobs objects (https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction) Code generated by go generate via internal/cmd/service; DO NOT EDIT.
Package cos provided support for Tencent Cloud's Cloud Object Storage (https://intl.cloud.tencent.com/product/cos) Code generated by go generate via internal/cmd/service; DO NOT EDIT.
Package cos provided support for Tencent Cloud's Cloud Object Storage (https://intl.cloud.tencent.com/product/cos) Code generated by go generate via internal/cmd/service; DO NOT EDIT.
Package dropbox provides support for Dropbox (https://www.dropbox.com/).
Package dropbox provides support for Dropbox (https://www.dropbox.com/).
Package fs provided support for local file system.
Package fs provided support for local file system.
Package gcs provided support for Google Cloud Storage (https://cloud.google.com/storage/) Code generated by go generate via internal/cmd/service; DO NOT EDIT.
Package gcs provided support for Google Cloud Storage (https://cloud.google.com/storage/) Code generated by go generate via internal/cmd/service; DO NOT EDIT.
Package kodo provided support for qiniu kodo object storage (https://www.qiniu.com/en/products/kodo) Code generated by go generate via internal/cmd/service; DO NOT EDIT.
Package kodo provided support for qiniu kodo object storage (https://www.qiniu.com/en/products/kodo) Code generated by go generate via internal/cmd/service; DO NOT EDIT.
Package oss provided support for Aliyun Object Storage Service (https://cn.aliyun.com/product/oss) Code generated by go generate via internal/cmd/service; DO NOT EDIT.
Package oss provided support for Aliyun Object Storage Service (https://cn.aliyun.com/product/oss) Code generated by go generate via internal/cmd/service; DO NOT EDIT.
Package qingstor provided support for qingstor object storage (https://www.qingcloud.com/products/qingstor/) Code generated by go generate via internal/cmd/service; DO NOT EDIT.
Package qingstor provided support for qingstor object storage (https://www.qingcloud.com/products/qingstor/) Code generated by go generate via internal/cmd/service; DO NOT EDIT.
Package s3 provided support for AWS s3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/Welcome.html) Code generated by go generate via internal/cmd/service; DO NOT EDIT.
Package s3 provided support for AWS s3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/Welcome.html) Code generated by go generate via internal/cmd/service; DO NOT EDIT.
Package uss provided support for UPYUN Storage Service (https://www.upyun.com/products/file-storage) Code generated by go generate via internal/cmd/service; DO NOT EDIT.
Package uss provided support for UPYUN Storage Service (https://www.upyun.com/products/file-storage) Code generated by go generate via internal/cmd/service; DO NOT EDIT.

Jump to

Keyboard shortcuts

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