git

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	CloneRepository(ctx context.Context, url, reference string, auth map[string][]byte) (*Repository, error)
}

func NewManager

func NewManager() Manager

type MockManager

type MockManager struct {
	mock.Mock
}

MockManager is an autogenerated mock type for the Manager type

func NewMockManager

func NewMockManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockManager

NewMockManager creates a new instance of MockManager. 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 (*MockManager) CloneRepository

func (_mock *MockManager) CloneRepository(ctx context.Context, url string, reference string, auth map[string][]byte) (*Repository, error)

CloneRepository provides a mock function for the type MockManager

func (*MockManager) EXPECT

func (_m *MockManager) EXPECT() *MockManager_Expecter

type MockManager_CloneRepository_Call

type MockManager_CloneRepository_Call struct {
	*mock.Call
}

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

func (*MockManager_CloneRepository_Call) Return

func (*MockManager_CloneRepository_Call) Run

func (_c *MockManager_CloneRepository_Call) Run(run func(ctx context.Context, url string, reference string, auth map[string][]byte)) *MockManager_CloneRepository_Call

func (*MockManager_CloneRepository_Call) RunAndReturn

func (_c *MockManager_CloneRepository_Call) RunAndReturn(run func(ctx context.Context, url string, reference string, auth map[string][]byte) (*Repository, error)) *MockManager_CloneRepository_Call

type MockManager_Expecter

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

func (*MockManager_Expecter) CloneRepository

func (_e *MockManager_Expecter) CloneRepository(ctx interface{}, url interface{}, reference interface{}, auth interface{}) *MockManager_CloneRepository_Call

CloneRepository is a helper method to define mock.On call

  • ctx context.Context
  • url string
  • reference string
  • auth map[string][]byte

type Repository

type Repository struct {
	CloneDir string
}

func (*Repository) Cleanup

func (r *Repository) Cleanup() error

func (*Repository) Path

func (r *Repository) Path() string

Jump to

Keyboard shortcuts

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