Documentation ¶
Index ¶
- type MockBucket
- func (m *MockBucket) DeleteObject(key string, options ...oss.Option) error
- func (m *MockBucket) GetObject(key string, options ...oss.Option) (io.ReadCloser, error)
- func (m *MockBucket) IsObjectExist(key string, options ...oss.Option) (bool, error)
- func (m *MockBucket) PutObject(key string, reader io.Reader, options ...oss.Option) error
- func (m *MockBucket) PutSymlink(symObjectKey string, targetObjectKey string, options ...oss.Option) error
- type StubIn
- type StubOut
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBucket ¶
MockBucket mock bucket
func (*MockBucket) DeleteObject ¶
func (m *MockBucket) DeleteObject(key string, options ...oss.Option) error
DeleteObject mock DeleteObject
func (*MockBucket) GetObject ¶
func (m *MockBucket) GetObject(key string, options ...oss.Option) (io.ReadCloser, error)
GetObject mock GetObject
func (*MockBucket) IsObjectExist ¶
IsObjectExist mock IsObjectExist
func (*MockBucket) PutSymlink ¶
func (m *MockBucket) PutSymlink(symObjectKey string, targetObjectKey string, options ...oss.Option) error
PutSymlink mock PutSymlink
type StubIn ¶
type StubIn struct { GetObjectReturn io.ReadCloser GetObjectReturnErr error PutObjectReturnErr error DeleteObjectReturnErr error IsObjectExistReturn bool IsObjectExistReturnErr error PutSymlinkReturnErr error }
StubIn mock calling source
type StubOut ¶
type StubOut struct { GetObjectCallTimes int GetObjectCallKey []string GetObjectCallOptions [][]oss.Option PutObjectCallTimes int PutObjectCallKey []string PutObjectCallReader []io.Reader PutObjectCallOptions [][]oss.Option DeleteObjectCallTimes int DeleteObjectCallKey []string DeleteObjectCallOptions [][]oss.Option IsObjectExistCallTimes int IsObjectExistCallKey []string IsObjectExistCallOptions [][]oss.Option PutSymlinkCallTimes int PutSymlinkCallSymKey []string PutSymlinkCallTargetKey []string PutSymlinkCallOptions [][]oss.Option }
StubOut mock calling output
Click to show internal directories.
Click to hide internal directories.