github

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MPL-2.0-no-copyleft-exception Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepositoryServer

type RepositoryServer struct {
	H *handler.H
}

RepositoryServer is the external handle for reposvc.

func (*RepositoryServer) ClearStates

func (rs *RepositoryServer) ClearStates(ctx context.Context, rsp *repository.RepoSHAPair) (*empty.Empty, error)

ClearStates removes all status reports from a SHA in an attempt to restart the process.

func (*RepositoryServer) CommentError

CommentError is for commenting on PRs when there is no better means of bubbling up an error.

func (*RepositoryServer) ErrorStatus

ErrorStatus updates the status for the sha for the given repo on github.

func (*RepositoryServer) FinishedStatus

FinishedStatus updates the status for the sha for the given repo on github.

func (*RepositoryServer) GetDiffFiles

GetDiffFiles retrieves the files present in the diff between the base and the head.

func (*RepositoryServer) GetFile

GetFile returns the file in full as a byte array.

func (*RepositoryServer) GetFileList

GetFileList finds all the files in the tree for the given repository

func (*RepositoryServer) GetRefs

GetRefs gets the refs that match the given SHA. Only heads and tags are considered.

func (*RepositoryServer) GetRepository

GetRepository retrieves a repository from github and filters and returns it.

func (*RepositoryServer) GetSHA

GetSHA retrieves the SHA for the branch in the given repository

func (*RepositoryServer) MyLogin

func (rs *RepositoryServer) MyLogin(ctx context.Context, token *repository.String) (*repository.String, error)

MyLogin returns the login username for the token provided.

func (*RepositoryServer) MyRepositories

func (rs *RepositoryServer) MyRepositories(ctx context.Context, user *types.User) (*repository.RepositoryList, error)

MyRepositories returns all the writable repositories accessible to user owning the access key

func (*RepositoryServer) PendingStatus

func (rs *RepositoryServer) PendingStatus(ctx context.Context, sr *repository.StatusRequest) (*empty.Empty, error)

PendingStatus updates the status for the sha for the given repo on github.

func (*RepositoryServer) SetupHook

SetupHook sets up the pr webhook in github.

func (*RepositoryServer) StartedStatus

func (rs *RepositoryServer) StartedStatus(ctx context.Context, sr *repository.StatusRequest) (*empty.Empty, error)

StartedStatus updates the status for the sha for the given repo on github.

func (*RepositoryServer) TeardownHook

TeardownHook removes the pr webhook in github.

Jump to

Keyboard shortcuts

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