usage

package
v1.33.3 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockService

type MockService struct {
	mock.Mock
}

MockService is an autogenerated mock type for the Service type

func NewMockService

func NewMockService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockService

NewMockService creates a new instance of MockService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockService) EXPECT

func (_m *MockService) EXPECT() *MockService_Expecter

func (*MockService) SetJitterInterval added in v1.32.1

func (_m *MockService) SetJitterInterval(interval time.Duration)

SetJitterInterval provides a mock function with given fields: interval

func (*MockService) Usage

func (_m *MockService) Usage(ctx context.Context, exactObjectCount bool) (*types.Report, error)

Usage provides a mock function with given fields: ctx, exactObjectCount

type MockService_Expecter

type MockService_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockService_Expecter) SetJitterInterval added in v1.32.1

func (_e *MockService_Expecter) SetJitterInterval(interval interface{}) *MockService_SetJitterInterval_Call

SetJitterInterval is a helper method to define mock.On call

  • interval time.Duration

func (*MockService_Expecter) Usage

func (_e *MockService_Expecter) Usage(ctx interface{}, exactObjectCount interface{}) *MockService_Usage_Call

Usage is a helper method to define mock.On call

  • ctx context.Context
  • exactObjectCount bool

type MockService_SetJitterInterval_Call added in v1.32.1

type MockService_SetJitterInterval_Call struct {
	*mock.Call
}

MockService_SetJitterInterval_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetJitterInterval'

func (*MockService_SetJitterInterval_Call) Return added in v1.32.1

func (*MockService_SetJitterInterval_Call) Run added in v1.32.1

func (*MockService_SetJitterInterval_Call) RunAndReturn added in v1.32.1

type MockService_Usage_Call

type MockService_Usage_Call struct {
	*mock.Call
}

MockService_Usage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Usage'

func (*MockService_Usage_Call) Return

func (*MockService_Usage_Call) Run

func (_c *MockService_Usage_Call) Run(run func(ctx context.Context, exactObjectCount bool)) *MockService_Usage_Call

func (*MockService_Usage_Call) RunAndReturn

type Service

type Service interface {
	SetJitterInterval(interval time.Duration)
	Usage(ctx context.Context, exactObjectCount bool) (*types.Report, error)
}

func NewService

func NewService(schemaManager schema.SchemaGetter, db *db.DB, backups backup.BackupBackendProvider, logger logrus.FieldLogger) Service

db db.IndexGetter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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