internal

package
v1.15.4 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package internal is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPaginatedItems

func GetPaginatedItems[T any, R interface {
	GetItems() []T
	GetLinks() map[string]ldapi.Link
}](ctx context.Context, projectKey string, href *string, fetchFunc func(context.Context, string, *int64, *int64) (R, error)) ([]T, error)

func Retry429s

func Retry429s[T any](requester func() (T, *http.Response, error)) (result T, err error)

Types

type MockMockableTime

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

MockMockableTime is a mock of MockableTime interface.

func NewMockMockableTime

func NewMockMockableTime(ctrl *gomock.Controller) *MockMockableTime

NewMockMockableTime creates a new mock instance.

func (*MockMockableTime) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMockableTime) Now

func (m *MockMockableTime) Now() time.Time

Now mocks base method.

func (*MockMockableTime) Sleep

func (m *MockMockableTime) Sleep(arg0 time.Duration)

Sleep mocks base method.

type MockMockableTimeMockRecorder

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

MockMockableTimeMockRecorder is the mock recorder for MockMockableTime.

func (*MockMockableTimeMockRecorder) Now

Now indicates an expected call of Now.

func (*MockMockableTimeMockRecorder) Sleep

func (mr *MockMockableTimeMockRecorder) Sleep(arg0 any) *gomock.Call

Sleep indicates an expected call of Sleep.

type MockableTime

type MockableTime interface {
	Sleep(duration time.Duration)
	Now() time.Time
}

Jump to

Keyboard shortcuts

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