fetchers

package
v0.0.0-...-081ecb4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package fetchers is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoBranchOrRepo = errors.New("repo or branch not found")
View Source
var ErrNoCommit = errors.New("commit not found")

Functions

This section is empty.

Types

type Fetcher

type Fetcher interface {
	Fetch(ctx context.Context, sg *result.StepGroup, repo *Repo, exec executors.Executor) error
}

type Git

type Git struct{}

func NewGit

func NewGit() *Git

func (Git) Fetch

func (gf Git) Fetch(ctx context.Context, sg *result.StepGroup, repo *Repo, exec executors.Executor) error

type MockFetcher

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

MockFetcher is a mock of Fetcher interface

func NewMockFetcher

func NewMockFetcher(ctrl *gomock.Controller) *MockFetcher

NewMockFetcher creates a new mock instance

func (*MockFetcher) EXPECT

func (m *MockFetcher) EXPECT() *MockFetcherMockRecorder

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

func (*MockFetcher) Fetch

func (m *MockFetcher) Fetch(ctx context.Context, sg *result.StepGroup, repo *Repo, exec executors.Executor) error

Fetch mocks base method

type MockFetcherMockRecorder

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

MockFetcherMockRecorder is the mock recorder for MockFetcher

func (*MockFetcherMockRecorder) Fetch

func (mr *MockFetcherMockRecorder) Fetch(ctx, sg, repo, exec interface{}) *gomock.Call

Fetch indicates an expected call of Fetch

type Repo

type Repo struct {
	CloneURL  string
	Ref       string
	CommitSHA string
	FullPath  string
}

Jump to

Keyboard shortcuts

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