mocks

package
v0.0.0-...-ca3ac9b Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobStorage

type BlobStorage struct {
	mock.Mock
}

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

type BlobStorage_AddRetention_Call struct {
	*mock.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 (*BlobStorage_AddRetention_Call) Run

type BlobStorage_CheckBlob_Call

type BlobStorage_CheckBlob_Call struct {
	*mock.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 (*BlobStorage_CheckBlob_Call) Run

type BlobStorage_Close_Call

type BlobStorage_Close_Call struct {
	*mock.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 (*BlobStorage_Close_Call) Run

func (_c *BlobStorage_Close_Call) Run(run func()) *BlobStorage_Close_Call

type BlobStorage_DeleteBlob_Call

type BlobStorage_DeleteBlob_Call struct {
	*mock.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 (*BlobStorage_DeleteBlob_Call) Run

type BlobStorage_DeleteRetention_Call

type BlobStorage_DeleteRetention_Call struct {
	*mock.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 (*BlobStorage_DeleteRetention_Call) Run

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

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

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

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

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

type BlobStorage_GetAllRetentions_Call struct {
	*mock.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 (*BlobStorage_GetAllRetentions_Call) Run

type BlobStorage_GetBlobDescription_Call

type BlobStorage_GetBlobDescription_Call struct {
	*mock.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 (*BlobStorage_GetBlobDescription_Call) Run

type BlobStorage_GetBlobs_Call

type BlobStorage_GetBlobs_Call struct {
	*mock.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 (*BlobStorage_GetBlobs_Call) Run

func (_c *BlobStorage_GetBlobs_Call) Run(run func(callback func(string) bool)) *BlobStorage_GetBlobs_Call

type BlobStorage_GetLastError_Call

type BlobStorage_GetLastError_Call struct {
	*mock.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 (*BlobStorage_GetLastError_Call) Run

type BlobStorage_GetRetention_Call

type BlobStorage_GetRetention_Call struct {
	*mock.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 (*BlobStorage_GetRetention_Call) Run

type BlobStorage_GetTenant_Call

type BlobStorage_GetTenant_Call struct {
	*mock.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 (*BlobStorage_GetTenant_Call) Run

type BlobStorage_HasBlob_Call

type BlobStorage_HasBlob_Call struct {
	*mock.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 (*BlobStorage_HasBlob_Call) Run

type BlobStorage_Init_Call

type BlobStorage_Init_Call struct {
	*mock.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 (*BlobStorage_Init_Call) Run

func (_c *BlobStorage_Init_Call) Run(run func()) *BlobStorage_Init_Call

type BlobStorage_ResetRetention_Call

type BlobStorage_ResetRetention_Call struct {
	*mock.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 (*BlobStorage_ResetRetention_Call) Run

type BlobStorage_RetrieveBlob_Call

type BlobStorage_RetrieveBlob_Call struct {
	*mock.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 (*BlobStorage_RetrieveBlob_Call) Run

type BlobStorage_SearchBlobs_Call

type BlobStorage_SearchBlobs_Call struct {
	*mock.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 (*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

type BlobStorage_StoreBlob_Call struct {
	*mock.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 (*BlobStorage_StoreBlob_Call) Run

type BlobStorage_UpdateBlobDescription_Call

type BlobStorage_UpdateBlobDescription_Call struct {
	*mock.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 (*BlobStorage_UpdateBlobDescription_Call) Run

Jump to

Keyboard shortcuts

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