Documentation ¶
Overview ¶
Package gerrit_crs provides a client for Gold's interaction with the Gerrit code review system.
Index ¶
- func TestContext(ctx context.Context) context.Context
- type CRSImpl
- func (c *CRSImpl) CommentOn(ctx context.Context, clID, message string) error
- func (c *CRSImpl) GetChangelist(ctx context.Context, id string) (code_review.Changelist, error)
- func (c *CRSImpl) GetChangelistIDForCommit(_ context.Context, commit *vcsinfo.LongCommit) (string, error)
- func (c *CRSImpl) GetPatchset(ctx context.Context, clID, psID string, psOrder int) (code_review.Patchset, error)
- func (c *CRSImpl) LoggedInAs(ctx context.Context) (string, error)
- func (c *CRSImpl) System() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CRSImpl ¶
type CRSImpl struct {
// contains filtered or unexported fields
}
func New ¶
func New(client gerrit.GerritInterface) *CRSImpl
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 ¶
LoggedInAs returns the email address of the logged in user.
Click to show internal directories.
Click to hide internal directories.