mock

package
v0.0.0-...-bb5f746 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketMock

type BucketMock struct {
	mock.Mock
}

func (*BucketMock) Chmod

func (b *BucketMock) Chmod(ctx context.Context, name string, mode os.FileMode) error

func (*BucketMock) Copy

func (b *BucketMock) Copy(ctx context.Context, from bucketly.Item, to string, opts ...bucketly.CopyOption) error

func (*BucketMock) Copy2

func (b *BucketMock) Copy2(ctx context.Context, from string, to string, opts ...bucketly.CopyOption) error

func (*BucketMock) CopyAll

func (b *BucketMock) CopyAll(ctx context.Context, from bucketly.Item, to string, opts ...bucketly.CopyOption) error

func (*BucketMock) CopyAll2

func (b *BucketMock) CopyAll2(ctx context.Context, from string, to string, opts ...bucketly.CopyOption) error

func (*BucketMock) Exists

func (b *BucketMock) Exists(ctx context.Context, name string) (bool, error)

func (*BucketMock) Mkdir

func (b *BucketMock) Mkdir(ctx context.Context, name string, opts ...bucketly.WriteOption) error

func (*BucketMock) MkdirAll

func (b *BucketMock) MkdirAll(ctx context.Context, name string, opts ...bucketly.WriteOption) error

func (*BucketMock) Name

func (b *BucketMock) Name() string

func (*BucketMock) NewReader

func (b *BucketMock) NewReader(ctx context.Context, name string) (io.ReadCloser, error)

func (*BucketMock) NewWriter

func (b *BucketMock) NewWriter(ctx context.Context, name string, opts ...bucketly.WriteOption) (io.WriteCloser, error)

func (*BucketMock) PathSeparator

func (b *BucketMock) PathSeparator() rune

func (*BucketMock) Read

func (b *BucketMock) Read(ctx context.Context, name string) ([]byte, error)

func (*BucketMock) Remove

func (b *BucketMock) Remove(ctx context.Context, name string) error

func (*BucketMock) RemoveAll

func (b *BucketMock) RemoveAll(ctx context.Context, name string) error

func (*BucketMock) Rename

func (b *BucketMock) Rename(ctx context.Context, from string, to string, opts ...bucketly.CopyOption) error

func (*BucketMock) Stat

func (b *BucketMock) Stat(ctx context.Context, name string) (bucketly.Item, error)

func (*BucketMock) Write

func (b *BucketMock) Write(ctx context.Context, name string, data []byte, opts ...bucketly.WriteOption) (int, error)

Jump to

Keyboard shortcuts

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