Documentation
¶
Index ¶
- type BlobStorage
- func (_m *BlobStorage) AddRetention(r *model.RetentionEntry) error
- func (_m *BlobStorage) CheckBlob(id string) (*model.CheckInfo, error)
- func (_m *BlobStorage) Close() error
- func (_m *BlobStorage) DeleteBlob(id string) error
- func (_m *BlobStorage) DeleteRetention(id string) error
- func (_m *BlobStorage) EXPECT() *BlobStorage_Expecter
- func (_m *BlobStorage) GetAllRetentions(callback func(model.RetentionEntry) bool) error
- func (_m *BlobStorage) GetBlobDescription(id string) (*model.BlobDescription, error)
- func (_m *BlobStorage) GetBlobs(callback func(string) bool) error
- func (_m *BlobStorage) GetLastError() error
- func (_m *BlobStorage) GetRetention(id string) (model.RetentionEntry, error)
- func (_m *BlobStorage) GetTenant() string
- func (_m *BlobStorage) HasBlob(id string) (bool, error)
- func (_m *BlobStorage) Init() error
- func (_m *BlobStorage) ResetRetention(id string) error
- func (_m *BlobStorage) RetrieveBlob(id string, w io.Writer) error
- func (_m *BlobStorage) SearchBlobs(query string, callback func(string) bool) error
- func (_m *BlobStorage) StoreBlob(b *model.BlobDescription, r io.Reader) (string, error)
- func (_m *BlobStorage) UpdateBlobDescription(id string, b *model.BlobDescription) error
- type BlobStorage_AddRetention_Call
- type BlobStorage_CheckBlob_Call
- type BlobStorage_Close_Call
- type BlobStorage_DeleteBlob_Call
- type BlobStorage_DeleteRetention_Call
- type BlobStorage_Expecter
- func (_e *BlobStorage_Expecter) AddRetention(r interface{}) *BlobStorage_AddRetention_Call
- func (_e *BlobStorage_Expecter) CheckBlob(id interface{}) *BlobStorage_CheckBlob_Call
- func (_e *BlobStorage_Expecter) Close() *BlobStorage_Close_Call
- func (_e *BlobStorage_Expecter) DeleteBlob(id interface{}) *BlobStorage_DeleteBlob_Call
- func (_e *BlobStorage_Expecter) DeleteRetention(id interface{}) *BlobStorage_DeleteRetention_Call
- func (_e *BlobStorage_Expecter) GetAllRetentions(callback interface{}) *BlobStorage_GetAllRetentions_Call
- func (_e *BlobStorage_Expecter) GetBlobDescription(id interface{}) *BlobStorage_GetBlobDescription_Call
- func (_e *BlobStorage_Expecter) GetBlobs(callback interface{}) *BlobStorage_GetBlobs_Call
- func (_e *BlobStorage_Expecter) GetLastError() *BlobStorage_GetLastError_Call
- func (_e *BlobStorage_Expecter) GetRetention(id interface{}) *BlobStorage_GetRetention_Call
- func (_e *BlobStorage_Expecter) GetTenant() *BlobStorage_GetTenant_Call
- func (_e *BlobStorage_Expecter) HasBlob(id interface{}) *BlobStorage_HasBlob_Call
- func (_e *BlobStorage_Expecter) Init() *BlobStorage_Init_Call
- func (_e *BlobStorage_Expecter) ResetRetention(id interface{}) *BlobStorage_ResetRetention_Call
- func (_e *BlobStorage_Expecter) RetrieveBlob(id interface{}, w interface{}) *BlobStorage_RetrieveBlob_Call
- func (_e *BlobStorage_Expecter) SearchBlobs(query interface{}, callback interface{}) *BlobStorage_SearchBlobs_Call
- func (_e *BlobStorage_Expecter) StoreBlob(b interface{}, r interface{}) *BlobStorage_StoreBlob_Call
- func (_e *BlobStorage_Expecter) UpdateBlobDescription(id interface{}, b interface{}) *BlobStorage_UpdateBlobDescription_Call
- type BlobStorage_GetAllRetentions_Call
- type BlobStorage_GetBlobDescription_Call
- type BlobStorage_GetBlobs_Call
- type BlobStorage_GetLastError_Call
- type BlobStorage_GetRetention_Call
- type BlobStorage_GetTenant_Call
- type BlobStorage_HasBlob_Call
- type BlobStorage_Init_Call
- type BlobStorage_ResetRetention_Call
- type BlobStorage_RetrieveBlob_Call
- type BlobStorage_SearchBlobs_Call
- type BlobStorage_StoreBlob_Call
- type BlobStorage_UpdateBlobDescription_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobStorage ¶
BlobStorage is an autogenerated mock type for the BlobStorage type
func NewBlobStorage ¶
func NewBlobStorage(t mockConstructorTestingTNewBlobStorage) *BlobStorage
NewBlobStorage creates a new instance of BlobStorage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BlobStorage) AddRetention ¶
func (_m *BlobStorage) AddRetention(r *model.RetentionEntry) error
AddRetention provides a mock function with given fields: r
func (*BlobStorage) CheckBlob ¶
func (_m *BlobStorage) CheckBlob(id string) (*model.CheckInfo, error)
CheckBlob provides a mock function with given fields: id
func (*BlobStorage) Close ¶
func (_m *BlobStorage) Close() error
Close provides a mock function with given fields:
func (*BlobStorage) DeleteBlob ¶
func (_m *BlobStorage) DeleteBlob(id string) error
DeleteBlob provides a mock function with given fields: id
func (*BlobStorage) DeleteRetention ¶
func (_m *BlobStorage) DeleteRetention(id string) error
DeleteRetention provides a mock function with given fields: id
func (*BlobStorage) EXPECT ¶
func (_m *BlobStorage) EXPECT() *BlobStorage_Expecter
func (*BlobStorage) GetAllRetentions ¶
func (_m *BlobStorage) GetAllRetentions(callback func(model.RetentionEntry) bool) error
GetAllRetentions provides a mock function with given fields: callback
func (*BlobStorage) GetBlobDescription ¶
func (_m *BlobStorage) GetBlobDescription(id string) (*model.BlobDescription, error)
GetBlobDescription provides a mock function with given fields: id
func (*BlobStorage) GetBlobs ¶
func (_m *BlobStorage) GetBlobs(callback func(string) bool) error
GetBlobs provides a mock function with given fields: callback
func (*BlobStorage) GetLastError ¶
func (_m *BlobStorage) GetLastError() error
GetLastError provides a mock function with given fields:
func (*BlobStorage) GetRetention ¶
func (_m *BlobStorage) GetRetention(id string) (model.RetentionEntry, error)
GetRetention provides a mock function with given fields: id
func (*BlobStorage) GetTenant ¶
func (_m *BlobStorage) GetTenant() string
GetTenant provides a mock function with given fields:
func (*BlobStorage) HasBlob ¶
func (_m *BlobStorage) HasBlob(id string) (bool, error)
HasBlob provides a mock function with given fields: id
func (*BlobStorage) Init ¶
func (_m *BlobStorage) Init() error
Init provides a mock function with given fields:
func (*BlobStorage) ResetRetention ¶
func (_m *BlobStorage) ResetRetention(id string) error
ResetRetention provides a mock function with given fields: id
func (*BlobStorage) RetrieveBlob ¶
func (_m *BlobStorage) RetrieveBlob(id string, w io.Writer) error
RetrieveBlob provides a mock function with given fields: id, w
func (*BlobStorage) SearchBlobs ¶
func (_m *BlobStorage) SearchBlobs(query string, callback func(string) bool) error
SearchBlobs provides a mock function with given fields: query, callback
func (*BlobStorage) StoreBlob ¶
func (_m *BlobStorage) StoreBlob(b *model.BlobDescription, r io.Reader) (string, error)
StoreBlob provides a mock function with given fields: b, r
func (*BlobStorage) UpdateBlobDescription ¶
func (_m *BlobStorage) UpdateBlobDescription(id string, b *model.BlobDescription) error
UpdateBlobDescription provides a mock function with given fields: id, b
type BlobStorage_AddRetention_Call ¶
BlobStorage_AddRetention_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddRetention'
func (*BlobStorage_AddRetention_Call) Return ¶
func (_c *BlobStorage_AddRetention_Call) Return(_a0 error) *BlobStorage_AddRetention_Call
func (*BlobStorage_AddRetention_Call) Run ¶
func (_c *BlobStorage_AddRetention_Call) Run(run func(r *model.RetentionEntry)) *BlobStorage_AddRetention_Call
type BlobStorage_CheckBlob_Call ¶
BlobStorage_CheckBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckBlob'
func (*BlobStorage_CheckBlob_Call) Return ¶
func (_c *BlobStorage_CheckBlob_Call) Return(_a0 *model.CheckInfo, _a1 error) *BlobStorage_CheckBlob_Call
func (*BlobStorage_CheckBlob_Call) Run ¶
func (_c *BlobStorage_CheckBlob_Call) Run(run func(id string)) *BlobStorage_CheckBlob_Call
type BlobStorage_Close_Call ¶
BlobStorage_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*BlobStorage_Close_Call) Return ¶
func (_c *BlobStorage_Close_Call) Return(_a0 error) *BlobStorage_Close_Call
func (*BlobStorage_Close_Call) Run ¶
func (_c *BlobStorage_Close_Call) Run(run func()) *BlobStorage_Close_Call
type BlobStorage_DeleteBlob_Call ¶
BlobStorage_DeleteBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBlob'
func (*BlobStorage_DeleteBlob_Call) Return ¶
func (_c *BlobStorage_DeleteBlob_Call) Return(_a0 error) *BlobStorage_DeleteBlob_Call
func (*BlobStorage_DeleteBlob_Call) Run ¶
func (_c *BlobStorage_DeleteBlob_Call) Run(run func(id string)) *BlobStorage_DeleteBlob_Call
type BlobStorage_DeleteRetention_Call ¶
BlobStorage_DeleteRetention_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteRetention'
func (*BlobStorage_DeleteRetention_Call) Return ¶
func (_c *BlobStorage_DeleteRetention_Call) Return(_a0 error) *BlobStorage_DeleteRetention_Call
func (*BlobStorage_DeleteRetention_Call) Run ¶
func (_c *BlobStorage_DeleteRetention_Call) Run(run func(id string)) *BlobStorage_DeleteRetention_Call
type BlobStorage_Expecter ¶
type BlobStorage_Expecter struct {
// contains filtered or unexported fields
}
func (*BlobStorage_Expecter) AddRetention ¶
func (_e *BlobStorage_Expecter) AddRetention(r interface{}) *BlobStorage_AddRetention_Call
AddRetention is a helper method to define mock.On call
- r *model.RetentionEntry
func (*BlobStorage_Expecter) CheckBlob ¶
func (_e *BlobStorage_Expecter) CheckBlob(id interface{}) *BlobStorage_CheckBlob_Call
CheckBlob is a helper method to define mock.On call
- id string
func (*BlobStorage_Expecter) Close ¶
func (_e *BlobStorage_Expecter) Close() *BlobStorage_Close_Call
Close is a helper method to define mock.On call
func (*BlobStorage_Expecter) DeleteBlob ¶
func (_e *BlobStorage_Expecter) DeleteBlob(id interface{}) *BlobStorage_DeleteBlob_Call
DeleteBlob is a helper method to define mock.On call
- id string
func (*BlobStorage_Expecter) DeleteRetention ¶
func (_e *BlobStorage_Expecter) DeleteRetention(id interface{}) *BlobStorage_DeleteRetention_Call
DeleteRetention is a helper method to define mock.On call
- id string
func (*BlobStorage_Expecter) GetAllRetentions ¶
func (_e *BlobStorage_Expecter) GetAllRetentions(callback interface{}) *BlobStorage_GetAllRetentions_Call
GetAllRetentions is a helper method to define mock.On call
- callback func(model.RetentionEntry) bool
func (*BlobStorage_Expecter) GetBlobDescription ¶
func (_e *BlobStorage_Expecter) GetBlobDescription(id interface{}) *BlobStorage_GetBlobDescription_Call
GetBlobDescription is a helper method to define mock.On call
- id string
func (*BlobStorage_Expecter) GetBlobs ¶
func (_e *BlobStorage_Expecter) GetBlobs(callback interface{}) *BlobStorage_GetBlobs_Call
GetBlobs is a helper method to define mock.On call
- callback func(string) bool
func (*BlobStorage_Expecter) GetLastError ¶
func (_e *BlobStorage_Expecter) GetLastError() *BlobStorage_GetLastError_Call
GetLastError is a helper method to define mock.On call
func (*BlobStorage_Expecter) GetRetention ¶
func (_e *BlobStorage_Expecter) GetRetention(id interface{}) *BlobStorage_GetRetention_Call
GetRetention is a helper method to define mock.On call
- id string
func (*BlobStorage_Expecter) GetTenant ¶
func (_e *BlobStorage_Expecter) GetTenant() *BlobStorage_GetTenant_Call
GetTenant is a helper method to define mock.On call
func (*BlobStorage_Expecter) HasBlob ¶
func (_e *BlobStorage_Expecter) HasBlob(id interface{}) *BlobStorage_HasBlob_Call
HasBlob is a helper method to define mock.On call
- id string
func (*BlobStorage_Expecter) Init ¶
func (_e *BlobStorage_Expecter) Init() *BlobStorage_Init_Call
Init is a helper method to define mock.On call
func (*BlobStorage_Expecter) ResetRetention ¶
func (_e *BlobStorage_Expecter) ResetRetention(id interface{}) *BlobStorage_ResetRetention_Call
ResetRetention is a helper method to define mock.On call
- id string
func (*BlobStorage_Expecter) RetrieveBlob ¶
func (_e *BlobStorage_Expecter) RetrieveBlob(id interface{}, w interface{}) *BlobStorage_RetrieveBlob_Call
RetrieveBlob is a helper method to define mock.On call
- id string
- w io.Writer
func (*BlobStorage_Expecter) SearchBlobs ¶
func (_e *BlobStorage_Expecter) SearchBlobs(query interface{}, callback interface{}) *BlobStorage_SearchBlobs_Call
SearchBlobs is a helper method to define mock.On call
- query string
- callback func(string) bool
func (*BlobStorage_Expecter) StoreBlob ¶
func (_e *BlobStorage_Expecter) StoreBlob(b interface{}, r interface{}) *BlobStorage_StoreBlob_Call
StoreBlob is a helper method to define mock.On call
- b *model.BlobDescription
- r io.Reader
func (*BlobStorage_Expecter) UpdateBlobDescription ¶
func (_e *BlobStorage_Expecter) UpdateBlobDescription(id interface{}, b interface{}) *BlobStorage_UpdateBlobDescription_Call
UpdateBlobDescription is a helper method to define mock.On call
- id string
- b *model.BlobDescription
type BlobStorage_GetAllRetentions_Call ¶
BlobStorage_GetAllRetentions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllRetentions'
func (*BlobStorage_GetAllRetentions_Call) Return ¶
func (_c *BlobStorage_GetAllRetentions_Call) Return(_a0 error) *BlobStorage_GetAllRetentions_Call
func (*BlobStorage_GetAllRetentions_Call) Run ¶
func (_c *BlobStorage_GetAllRetentions_Call) Run(run func(callback func(model.RetentionEntry) bool)) *BlobStorage_GetAllRetentions_Call
type BlobStorage_GetBlobDescription_Call ¶
BlobStorage_GetBlobDescription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlobDescription'
func (*BlobStorage_GetBlobDescription_Call) Return ¶
func (_c *BlobStorage_GetBlobDescription_Call) Return(_a0 *model.BlobDescription, _a1 error) *BlobStorage_GetBlobDescription_Call
func (*BlobStorage_GetBlobDescription_Call) Run ¶
func (_c *BlobStorage_GetBlobDescription_Call) Run(run func(id string)) *BlobStorage_GetBlobDescription_Call
type BlobStorage_GetBlobs_Call ¶
BlobStorage_GetBlobs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlobs'
func (*BlobStorage_GetBlobs_Call) Return ¶
func (_c *BlobStorage_GetBlobs_Call) Return(_a0 error) *BlobStorage_GetBlobs_Call
func (*BlobStorage_GetBlobs_Call) Run ¶
func (_c *BlobStorage_GetBlobs_Call) Run(run func(callback func(string) bool)) *BlobStorage_GetBlobs_Call
type BlobStorage_GetLastError_Call ¶
BlobStorage_GetLastError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastError'
func (*BlobStorage_GetLastError_Call) Return ¶
func (_c *BlobStorage_GetLastError_Call) Return(_a0 error) *BlobStorage_GetLastError_Call
func (*BlobStorage_GetLastError_Call) Run ¶
func (_c *BlobStorage_GetLastError_Call) Run(run func()) *BlobStorage_GetLastError_Call
type BlobStorage_GetRetention_Call ¶
BlobStorage_GetRetention_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRetention'
func (*BlobStorage_GetRetention_Call) Return ¶
func (_c *BlobStorage_GetRetention_Call) Return(_a0 model.RetentionEntry, _a1 error) *BlobStorage_GetRetention_Call
func (*BlobStorage_GetRetention_Call) Run ¶
func (_c *BlobStorage_GetRetention_Call) Run(run func(id string)) *BlobStorage_GetRetention_Call
type BlobStorage_GetTenant_Call ¶
BlobStorage_GetTenant_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTenant'
func (*BlobStorage_GetTenant_Call) Return ¶
func (_c *BlobStorage_GetTenant_Call) Return(_a0 string) *BlobStorage_GetTenant_Call
func (*BlobStorage_GetTenant_Call) Run ¶
func (_c *BlobStorage_GetTenant_Call) Run(run func()) *BlobStorage_GetTenant_Call
type BlobStorage_HasBlob_Call ¶
BlobStorage_HasBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasBlob'
func (*BlobStorage_HasBlob_Call) Return ¶
func (_c *BlobStorage_HasBlob_Call) Return(_a0 bool, _a1 error) *BlobStorage_HasBlob_Call
func (*BlobStorage_HasBlob_Call) Run ¶
func (_c *BlobStorage_HasBlob_Call) Run(run func(id string)) *BlobStorage_HasBlob_Call
type BlobStorage_Init_Call ¶
BlobStorage_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
func (*BlobStorage_Init_Call) Return ¶
func (_c *BlobStorage_Init_Call) Return(_a0 error) *BlobStorage_Init_Call
func (*BlobStorage_Init_Call) Run ¶
func (_c *BlobStorage_Init_Call) Run(run func()) *BlobStorage_Init_Call
type BlobStorage_ResetRetention_Call ¶
BlobStorage_ResetRetention_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResetRetention'
func (*BlobStorage_ResetRetention_Call) Return ¶
func (_c *BlobStorage_ResetRetention_Call) Return(_a0 error) *BlobStorage_ResetRetention_Call
func (*BlobStorage_ResetRetention_Call) Run ¶
func (_c *BlobStorage_ResetRetention_Call) Run(run func(id string)) *BlobStorage_ResetRetention_Call
type BlobStorage_RetrieveBlob_Call ¶
BlobStorage_RetrieveBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveBlob'
func (*BlobStorage_RetrieveBlob_Call) Return ¶
func (_c *BlobStorage_RetrieveBlob_Call) Return(_a0 error) *BlobStorage_RetrieveBlob_Call
func (*BlobStorage_RetrieveBlob_Call) Run ¶
func (_c *BlobStorage_RetrieveBlob_Call) Run(run func(id string, w io.Writer)) *BlobStorage_RetrieveBlob_Call
type BlobStorage_SearchBlobs_Call ¶
BlobStorage_SearchBlobs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchBlobs'
func (*BlobStorage_SearchBlobs_Call) Return ¶
func (_c *BlobStorage_SearchBlobs_Call) Return(_a0 error) *BlobStorage_SearchBlobs_Call
func (*BlobStorage_SearchBlobs_Call) Run ¶
func (_c *BlobStorage_SearchBlobs_Call) Run(run func(query string, callback func(string) bool)) *BlobStorage_SearchBlobs_Call
type BlobStorage_StoreBlob_Call ¶
BlobStorage_StoreBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreBlob'
func (*BlobStorage_StoreBlob_Call) Return ¶
func (_c *BlobStorage_StoreBlob_Call) Return(_a0 string, _a1 error) *BlobStorage_StoreBlob_Call
func (*BlobStorage_StoreBlob_Call) Run ¶
func (_c *BlobStorage_StoreBlob_Call) Run(run func(b *model.BlobDescription, r io.Reader)) *BlobStorage_StoreBlob_Call
type BlobStorage_UpdateBlobDescription_Call ¶
BlobStorage_UpdateBlobDescription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateBlobDescription'
func (*BlobStorage_UpdateBlobDescription_Call) Return ¶
func (_c *BlobStorage_UpdateBlobDescription_Call) Return(_a0 error) *BlobStorage_UpdateBlobDescription_Call
func (*BlobStorage_UpdateBlobDescription_Call) Run ¶
func (_c *BlobStorage_UpdateBlobDescription_Call) Run(run func(id string, b *model.BlobDescription)) *BlobStorage_UpdateBlobDescription_Call