Documentation ¶
Index ¶
- type AnonymousObject
- type CommitInfo
- type ComprehensiveDriver
- func (_m *ComprehensiveDriver) Create(ctx context.Context, url string) (driver.ObjectWriter, error)
- func (_m *ComprehensiveDriver) Lock(ctx context.Context, url string) (io.Closer, error)
- func (_m *ComprehensiveDriver) Name() string
- func (_m *ComprehensiveDriver) Open(ctx context.Context, url string, size int64) (driver.Object, error)
- func (_m *ComprehensiveDriver) RLock(ctx context.Context, url string) (io.Closer, error)
- func (_m *ComprehensiveDriver) Readdir(ctx context.Context, url string) ([]os.FileInfo, error)
- func (_m *ComprehensiveDriver) Remove(ctx context.Context, url string) error
- func (_m *ComprehensiveDriver) Stat(ctx context.Context, url string) (os.FileInfo, error)
- type Creator
- type Driver
- type FileInfo
- type Locker
- type Object
- type ObjectWriter
- type Readdirer
- type Remover
- type Visitor
- type VisitorConcurrency
- type VisitorPredicate
- type VisitorTraversal
- type XattrObject
- func (_m *XattrObject) Close() error
- func (_m *XattrObject) GetXattr(name string) ([]byte, error)
- func (_m *XattrObject) Read(p []byte) (int, error)
- func (_m *XattrObject) ReadAt(p []byte, off int64) (int, error)
- func (_m *XattrObject) Seek(offset int64, whence int) (int64, error)
- func (_m *XattrObject) Size() int64
- func (_m *XattrObject) URL() string
- type XattrObjectWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnonymousObject ¶
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 ¶
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 ¶
ComprehensiveDriver is an autogenerated mock type for the ComprehensiveDriver type
func (*ComprehensiveDriver) Create ¶
func (_m *ComprehensiveDriver) Create(ctx context.Context, url string) (driver.ObjectWriter, error)
Create 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
type Driver ¶
Driver is an autogenerated mock type for the Driver type
type FileInfo ¶
FileInfo is an autogenerated mock type for the FileInfo type
type Locker ¶
Locker is an autogenerated mock type for the Locker type
type Object ¶
Object is an autogenerated mock type for the Object type
type ObjectWriter ¶
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:
type VisitorConcurrency ¶
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 ¶
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 ¶
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 ¶
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 ¶
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: