mocks

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitService

type GitService struct {
	CreateRefError error
	UpdateRefError error
}

func (GitService) CreateBlob

func (g GitService) CreateBlob(ctx context.Context, owner string, repo string, blob *github.Blob) (*github.Blob, *github.Response, error)

func (GitService) CreateCommit

func (g GitService) CreateCommit(ctx context.Context, owner string, repo string, commit *github.Commit, opts *github.CreateCommitOptions) (*github.Commit, *github.Response, error)

func (GitService) CreateRef

func (g GitService) CreateRef(ctx context.Context, owner string, repo string, ref *github.Reference) (*github.Reference, *github.Response, error)

func (GitService) CreateTree

func (g GitService) CreateTree(ctx context.Context, owner string, repo string, baseTree string, entries []*github.TreeEntry) (*github.Tree, *github.Response, error)

func (GitService) UpdateRef

func (g GitService) UpdateRef(ctx context.Context, owner string, repo string, ref *github.Reference, force bool) (*github.Reference, *github.Response, error)

type PullRequestsService

type PullRequestsService struct {
	Inner        error
	InnerEdit    error
	PullRequests []*github.PullRequest
}

func (*PullRequestsService) Create

func (*PullRequestsService) Edit

func (*PullRequestsService) List

type RepositoryService

type RepositoryService struct {
	Inner          error
	CompareError   error
	GetBranchError func(ctx context.Context, owner string, repo string, branch string, maxRedirects int) error
	GetError       error
	Commits        []*github.RepositoryCommit
	Tags           []*github.RepositoryTag
	Comparison     *github.CommitsComparison
}

func (*RepositoryService) CompareCommits

func (r *RepositoryService) CompareCommits(ctx context.Context, owner string, repo string, base string, head string, opts *github.ListOptions) (*github.CommitsComparison, *github.Response, error)

func (*RepositoryService) Get

func (*RepositoryService) GetBranch

func (r *RepositoryService) GetBranch(ctx context.Context, owner string, repo string, branch string, maxRedirects int) (*github.Branch, *github.Response, error)

func (*RepositoryService) ListCommits

func (*RepositoryService) ListTags

Jump to

Keyboard shortcuts

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