mockdriver

package
v0.0.0-...-5fe3b72 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnonymousObject

type AnonymousObject struct {
	mock.Mock
}

AnonymousObject is an autogenerated mock type for the AnonymousObject type

func (*AnonymousObject) Close

func (_m *AnonymousObject) Close() error

Close provides a mock function with given fields:

func (*AnonymousObject) Read

func (_m *AnonymousObject) Read(p []byte) (int, error)

Read provides a mock function with given fields: p

func (*AnonymousObject) ReadAt

func (_m *AnonymousObject) ReadAt(p []byte, off int64) (int, error)

ReadAt provides a mock function with given fields: p, off

func (*AnonymousObject) Seek

func (_m *AnonymousObject) Seek(offset int64, whence int) (int64, error)

Seek provides a mock function with given fields: offset, whence

func (*AnonymousObject) Size

func (_m *AnonymousObject) Size() int64

Size provides a mock function with given fields:

type CommitInfo

type CommitInfo struct {
	mock.Mock
}

CommitInfo is an autogenerated mock type for the CommitInfo type

func (*CommitInfo) ObjectURL

func (_m *CommitInfo) ObjectURL() string

ObjectURL provides a mock function with given fields:

type ComprehensiveDriver

type ComprehensiveDriver struct {
	mock.Mock
}

ComprehensiveDriver is an autogenerated mock type for the ComprehensiveDriver type

func (*ComprehensiveDriver) Create

Create provides a mock function with given fields: ctx, url

func (*ComprehensiveDriver) Lock

func (_m *ComprehensiveDriver) Lock(ctx context.Context, url string) (io.Closer, error)

Lock provides a mock function with given fields: ctx, url

func (*ComprehensiveDriver) Name

func (_m *ComprehensiveDriver) Name() string

Name provides a mock function with given fields:

func (*ComprehensiveDriver) Open

func (_m *ComprehensiveDriver) Open(ctx context.Context, url string, size int64) (driver.Object, error)

Open provides a mock function with given fields: ctx, url, size

func (*ComprehensiveDriver) RLock

func (_m *ComprehensiveDriver) RLock(ctx context.Context, url string) (io.Closer, error)

RLock provides a mock function with given fields: ctx, url

func (*ComprehensiveDriver) Readdir

func (_m *ComprehensiveDriver) Readdir(ctx context.Context, url string) ([]os.FileInfo, error)

Readdir provides a mock function with given fields: ctx, url

func (*ComprehensiveDriver) Remove

func (_m *ComprehensiveDriver) Remove(ctx context.Context, url string) error

Remove provides a mock function with given fields: ctx, url

func (*ComprehensiveDriver) Stat

func (_m *ComprehensiveDriver) Stat(ctx context.Context, url string) (os.FileInfo, error)

Stat provides a mock function with given fields: ctx, url

type Creator

type Creator struct {
	mock.Mock
}

Creator is an autogenerated mock type for the Creator type

func (*Creator) Create

func (_m *Creator) Create(ctx context.Context, url string) (driver.ObjectWriter, error)

Create provides a mock function with given fields: ctx, url

type Driver

type Driver struct {
	mock.Mock
}

Driver is an autogenerated mock type for the Driver type

func (*Driver) Name

func (_m *Driver) Name() string

Name provides a mock function with given fields:

func (*Driver) Open

func (_m *Driver) Open(ctx context.Context, url string, size int64) (driver.Object, error)

Open provides a mock function with given fields: ctx, url, size

func (*Driver) Stat

func (_m *Driver) Stat(ctx context.Context, url string) (os.FileInfo, error)

Stat provides a mock function with given fields: ctx, url

type FileInfo

type FileInfo struct {
	mock.Mock
}

FileInfo is an autogenerated mock type for the FileInfo type

func (*FileInfo) IsDir

func (_m *FileInfo) IsDir() bool

IsDir provides a mock function with given fields:

func (*FileInfo) ModTime

func (_m *FileInfo) ModTime() time.Time

ModTime provides a mock function with given fields:

func (*FileInfo) Mode

func (_m *FileInfo) Mode() os.FileMode

Mode provides a mock function with given fields:

func (*FileInfo) Name

func (_m *FileInfo) Name() string

Name provides a mock function with given fields:

func (*FileInfo) Size

func (_m *FileInfo) Size() int64

Size provides a mock function with given fields:

func (*FileInfo) Sys

func (_m *FileInfo) Sys() interface{}

Sys provides a mock function with given fields:

type Locker

type Locker struct {
	mock.Mock
}

Locker is an autogenerated mock type for the Locker type

func (*Locker) Lock

func (_m *Locker) Lock(ctx context.Context, url string) (io.Closer, error)

Lock provides a mock function with given fields: ctx, url

func (*Locker) RLock

func (_m *Locker) RLock(ctx context.Context, url string) (io.Closer, error)

RLock provides a mock function with given fields: ctx, url

type Object

type Object struct {
	mock.Mock
}

Object is an autogenerated mock type for the Object type

func (*Object) Close

func (_m *Object) Close() error

Close provides a mock function with given fields:

func (*Object) Read

func (_m *Object) Read(p []byte) (int, error)

Read provides a mock function with given fields: p

func (*Object) ReadAt

func (_m *Object) ReadAt(p []byte, off int64) (int, error)

ReadAt provides a mock function with given fields: p, off

func (*Object) Seek

func (_m *Object) Seek(offset int64, whence int) (int64, error)

Seek provides a mock function with given fields: offset, whence

func (*Object) Size

func (_m *Object) Size() int64

Size provides a mock function with given fields:

func (*Object) URL

func (_m *Object) URL() string

URL provides a mock function with given fields:

type ObjectWriter

type ObjectWriter struct {
	mock.Mock
}

ObjectWriter is an autogenerated mock type for the ObjectWriter type

func (*ObjectWriter) Abort

func (_m *ObjectWriter) Abort()

Abort provides a mock function with given fields:

func (*ObjectWriter) Commit

func (_m *ObjectWriter) Commit() (driver.CommitInfo, error)

Commit provides a mock function with given fields:

func (*ObjectWriter) Write

func (_m *ObjectWriter) Write(p []byte) (int, error)

Write provides a mock function with given fields: p

type Readdirer

type Readdirer struct {
	mock.Mock
}

Readdirer is an autogenerated mock type for the Readdirer type

func (*Readdirer) Readdir

func (_m *Readdirer) Readdir(ctx context.Context, url string) ([]os.FileInfo, error)

Readdir provides a mock function with given fields: ctx, url

type Remover

type Remover struct {
	mock.Mock
}

Remover is an autogenerated mock type for the Remover type

func (*Remover) Remove

func (_m *Remover) Remove(ctx context.Context, url string) error

Remove provides a mock function with given fields: ctx, url

type Visitor

type Visitor struct {
	mock.Mock
}

Visitor is an autogenerated mock type for the Visitor type

func (*Visitor) VisitDir

func (_m *Visitor) VisitDir(baseURL string, files []os.FileInfo) error

VisitDir provides a mock function with given fields: baseURL, files

type VisitorConcurrency

type VisitorConcurrency struct {
	mock.Mock
}

VisitorConcurrency is an autogenerated mock type for the VisitorConcurrency type

func (*VisitorConcurrency) Concurrency

func (_m *VisitorConcurrency) Concurrency() int

Concurrency provides a mock function with given fields:

type VisitorPredicate

type VisitorPredicate struct {
	mock.Mock
}

VisitorPredicate is an autogenerated mock type for the VisitorPredicate type

func (*VisitorPredicate) ShouldVisitDir

func (_m *VisitorPredicate) ShouldVisitDir(url string) (bool, error)

ShouldVisitDir provides a mock function with given fields: url

type VisitorTraversal

type VisitorTraversal struct {
	mock.Mock
}

VisitorTraversal is an autogenerated mock type for the VisitorTraversal type

func (*VisitorTraversal) DepthFirst

func (_m *VisitorTraversal) DepthFirst() bool

DepthFirst provides a mock function with given fields:

type XattrObject

type XattrObject struct {
	mock.Mock
}

XattrObject is an autogenerated mock type for the XattrObject type

func (*XattrObject) Close

func (_m *XattrObject) Close() error

Close provides a mock function with given fields:

func (*XattrObject) GetXattr

func (_m *XattrObject) GetXattr(name string) ([]byte, error)

GetXattr provides a mock function with given fields: name

func (*XattrObject) Read

func (_m *XattrObject) Read(p []byte) (int, error)

Read provides a mock function with given fields: p

func (*XattrObject) ReadAt

func (_m *XattrObject) ReadAt(p []byte, off int64) (int, error)

ReadAt provides a mock function with given fields: p, off

func (*XattrObject) Seek

func (_m *XattrObject) Seek(offset int64, whence int) (int64, error)

Seek provides a mock function with given fields: offset, whence

func (*XattrObject) Size

func (_m *XattrObject) Size() int64

Size provides a mock function with given fields:

func (*XattrObject) URL

func (_m *XattrObject) URL() string

URL provides a mock function with given fields:

type XattrObjectWriter

type XattrObjectWriter struct {
	mock.Mock
}

XattrObjectWriter is an autogenerated mock type for the XattrObjectWriter type

func (*XattrObjectWriter) Abort

func (_m *XattrObjectWriter) Abort()

Abort provides a mock function with given fields:

func (*XattrObjectWriter) Commit

func (_m *XattrObjectWriter) Commit() (driver.CommitInfo, error)

Commit provides a mock function with given fields:

func (*XattrObjectWriter) SetXattr

func (_m *XattrObjectWriter) SetXattr(name string, value []byte) error

SetXattr provides a mock function with given fields: name, value

func (*XattrObjectWriter) Write

func (_m *XattrObjectWriter) Write(p []byte) (int, error)

Write provides a mock function with given fields: p

Jump to

Keyboard shortcuts

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