contribtest

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContribHeadSha1Fetcher

type ContribHeadSha1Fetcher func() (string, error)

ContribHeadSha1Fetcher type alias for contrib head fetcher

type ContribSyncHandler

type ContribSyncHandler func(*contrib.SyncReq) (contrib.SyncRes, error)

ContribSyncHandler type alias for contrib sync handler

type MockContrib

type MockContrib struct {
	HeadSHA1    ContribHeadSha1Fetcher
	SyncHandler ContribSyncHandler
}

MockContrib contrib mocking

func (*MockContrib) GetHeadSHA1

func (c *MockContrib) GetHeadSHA1() (string, error)

GetHeadSHA1 implement GetHeadSHA1

func (*MockContrib) Sync

func (c *MockContrib) Sync(req *contrib.SyncReq) (contrib.SyncRes, error)

Sync implement Sync

type RepoGetHeadSHA1

type RepoGetHeadSHA1 func() (string, error)

RepoGetHeadSHA1 type alias for get head sha1 from repo

type RepoListAllFiles

type RepoListAllFiles func() (sha1 string, uploads []string, err error)

RepoListAllFiles type alias for list all files from repo

Jump to

Keyboard shortcuts

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