git

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package git is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	GetRepository(url string, path string, reference plumbing.ReferenceName, auth *http.BasicAuth) (string, error)
	GetLastModified(repoPath string, filePath string) (string, error)
}

type MockFactory

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

MockFactory is a mock of Factory interface.

func NewMockFactory

func NewMockFactory(ctrl *gomock.Controller) *MockFactory

NewMockFactory creates a new mock instance.

func (*MockFactory) EXPECT

func (m *MockFactory) EXPECT() *MockFactoryMockRecorder

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

func (*MockFactory) GetLastModified added in v1.0.0

func (m *MockFactory) GetLastModified(repoPath, filePath string) (string, error)

GetLastModified mocks base method.

func (*MockFactory) GetRepository

func (m *MockFactory) GetRepository(url, path string, reference plumbing.ReferenceName, auth *http.BasicAuth) (string, error)

GetRepository mocks base method.

type MockFactoryMockRecorder

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

MockFactoryMockRecorder is the mock recorder for MockFactory.

func (*MockFactoryMockRecorder) GetLastModified added in v1.0.0

func (mr *MockFactoryMockRecorder) GetLastModified(repoPath, filePath interface{}) *gomock.Call

GetLastModified indicates an expected call of GetLastModified.

func (*MockFactoryMockRecorder) GetRepository

func (mr *MockFactoryMockRecorder) GetRepository(url, path, reference, auth interface{}) *gomock.Call

GetRepository indicates an expected call of GetRepository.

type RepositoryFactory

type RepositoryFactory struct{}

func (RepositoryFactory) GetLastModified added in v1.0.0

func (f RepositoryFactory) GetLastModified(repoAbsolutePath string, fileRelativePath string) (string, error)

func (RepositoryFactory) GetRepository

func (f RepositoryFactory) GetRepository(url string, path string, reference plumbing.ReferenceName, auth *http.BasicAuth) (string, error)

Jump to

Keyboard shortcuts

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