gerrit_crs

package
v0.0.0-...-c8472d9 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package gerrit_crs provides a client for Gold's interaction with the Gerrit code review system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestContext

func TestContext(ctx context.Context) context.Context

TestContext returns a context that will cause certain APIs to return stub data. At present, those APIs are LoggedInAs.

Types

type CRSImpl

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

func New

func New(client gerrit.GerritInterface) *CRSImpl

func (*CRSImpl) CommentOn

func (c *CRSImpl) CommentOn(ctx context.Context, clID, message string) error

CommentOn implements the code_review.Client interface.

func (*CRSImpl) GetChangelist

func (c *CRSImpl) GetChangelist(ctx context.Context, id string) (code_review.Changelist, error)

GetChangelist implements the code_review.Client interface.

func (*CRSImpl) GetChangelistIDForCommit

func (c *CRSImpl) GetChangelistIDForCommit(_ context.Context, commit *vcsinfo.LongCommit) (string, error)

GetChangelistIDForCommit implements the code_review.Client interface.

func (*CRSImpl) GetPatchset

func (c *CRSImpl) GetPatchset(ctx context.Context, clID, psID string, psOrder int) (code_review.Patchset, error)

GetPatchset implements the code_review.Client interface.

func (*CRSImpl) LoggedInAs

func (c *CRSImpl) LoggedInAs(ctx context.Context) (string, error)

LoggedInAs returns the email address of the logged in user.

func (*CRSImpl) System

func (c *CRSImpl) System() string

System implements the code_review.Client interface.

Jump to

Keyboard shortcuts

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