mocks

package
v0.0.0-...-9db4733 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubCommit

type GithubCommit struct {
	SHA string

	Files map[string]string
	// contains filtered or unexported fields
}

type GithubMock

type GithubMock struct {
	Repos map[string]GithubRepo
}

func NewGithubMock

func NewGithubMock() *GithubMock

func (*GithubMock) GetCommit

func (gh *GithubMock) GetCommit(ctx context.Context, ref *github.Commit) (*source_j5pb.CommitInfo, error)

func (*GithubMock) PullConfig

func (gh *GithubMock) PullConfig(ctx context.Context, ref *github.Commit, into proto.Message, tryPaths []string) error

func (*GithubMock) TestPush

func (gh *GithubMock) TestPush(owner, name string, commit GithubCommit, refs ...string)

type GithubRepo

type GithubRepo struct {
	Commits map[string]GithubCommit
}

Jump to

Keyboard shortcuts

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