Documentation
¶
Index ¶
- type BucketMock
- func (b *BucketMock) Chmod(ctx context.Context, name string, mode os.FileMode) error
- func (b *BucketMock) Copy(ctx context.Context, from bucketly.Item, to string, ...) error
- func (b *BucketMock) Copy2(ctx context.Context, from string, to string, opts ...bucketly.CopyOption) error
- func (b *BucketMock) CopyAll(ctx context.Context, from bucketly.Item, to string, ...) error
- func (b *BucketMock) CopyAll2(ctx context.Context, from string, to string, opts ...bucketly.CopyOption) error
- func (b *BucketMock) Exists(ctx context.Context, name string) (bool, error)
- func (b *BucketMock) Mkdir(ctx context.Context, name string, opts ...bucketly.WriteOption) error
- func (b *BucketMock) MkdirAll(ctx context.Context, name string, opts ...bucketly.WriteOption) error
- func (b *BucketMock) Name() string
- func (b *BucketMock) NewReader(ctx context.Context, name string) (io.ReadCloser, error)
- func (b *BucketMock) NewWriter(ctx context.Context, name string, opts ...bucketly.WriteOption) (io.WriteCloser, error)
- func (b *BucketMock) PathSeparator() rune
- func (b *BucketMock) Read(ctx context.Context, name string) ([]byte, error)
- func (b *BucketMock) Remove(ctx context.Context, name string) error
- func (b *BucketMock) RemoveAll(ctx context.Context, name string) error
- func (b *BucketMock) Rename(ctx context.Context, from string, to string, opts ...bucketly.CopyOption) error
- func (b *BucketMock) Stat(ctx context.Context, name string) (bucketly.Item, error)
- func (b *BucketMock) Write(ctx context.Context, name string, data []byte, opts ...bucketly.WriteOption) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketMock ¶
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) 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) 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
Click to show internal directories.
Click to hide internal directories.