mock

package
v0.0.0-...-703489d Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MethodNewStorageBucket    = Method("NewStorageBucket")
	MethodDeleteStorageBucket = Method("NewDeleteStorageBucket")
	MethodListChildrenFiles   = Method("ListChildrenFiles")
	MethodListDirectChildren  = Method("ListDirectChildren")
	MethodAttrObject          = Method("AttrObject")
	MethodCopyObject          = Method("CopyObject")
	MethodReadObject          = Method("ReadObject")
	MethodWriteObject         = Method("WriteObject")
	MethodDeleteObject        = Method("DeleteObject")
	MethodDownload            = Method("Download")
	MethodUpload              = Method("Upload")
)

Functions

func NewBucketExistError

func NewBucketExistError(bkt string) *bucketExistError

func NewClientMocker

func NewClientMocker() *clientMocker

func NewNoBucketError

func NewNoBucketError(bkt string) *noBucketError

func NewNoObjectError

func NewNoObjectError(bkt, obj, path string) *noObjectError

func NewNotEmptyBucketError

func NewNotEmptyBucketError(bkt string) *notEmptyBucketError

Types

type Method

type Method string

type ReturnError

type ReturnError struct {
	NumCall uint8
	Err     error
}

Error map to return custom errors for specific methods

Jump to

Keyboard shortcuts

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