Documentation
¶
Index ¶
- type RepositoryServer
- func (rs *RepositoryServer) ClearStates(ctx context.Context, rsp *repository.RepoSHAPair) (*empty.Empty, error)
- func (rs *RepositoryServer) CommentError(ctx context.Context, cer *repository.CommentErrorRequest) (*empty.Empty, error)
- func (rs *RepositoryServer) ErrorStatus(ctx context.Context, esr *repository.ErrorStatusRequest) (*empty.Empty, error)
- func (rs *RepositoryServer) FinishedStatus(ctx context.Context, fsr *repository.FinishedStatusRequest) (*empty.Empty, error)
- func (rs *RepositoryServer) GetDiffFiles(ctx context.Context, fdr *repository.FileDiffRequest) (*repository.StringList, error)
- func (rs *RepositoryServer) GetFile(ctx context.Context, fr *repository.FileRequest) (*repository.Bytes, error)
- func (rs *RepositoryServer) GetFileList(ctx context.Context, rsp *repository.RepoSHAPair) (*repository.StringList, error)
- func (rs *RepositoryServer) GetRefs(ctx context.Context, rsp *repository.RepoSHAPair) (*repository.StringList, error)
- func (rs *RepositoryServer) GetRepository(ctx context.Context, uwn *repository.UserWithRepo) (*repository.RepositoryData, error)
- func (rs *RepositoryServer) GetSHA(ctx context.Context, rrp *repository.RepoRefPair) (*repository.String, error)
- func (rs *RepositoryServer) MyLogin(ctx context.Context, token *repository.String) (*repository.String, error)
- func (rs *RepositoryServer) MyRepositories(ctx context.Context, user *types.User) (*repository.RepositoryList, error)
- func (rs *RepositoryServer) PendingStatus(ctx context.Context, sr *repository.StatusRequest) (*empty.Empty, error)
- func (rs *RepositoryServer) SetupHook(ctx context.Context, hsr *repository.HookSetupRequest) (*empty.Empty, error)
- func (rs *RepositoryServer) StartedStatus(ctx context.Context, sr *repository.StatusRequest) (*empty.Empty, error)
- func (rs *RepositoryServer) TeardownHook(ctx context.Context, htr *repository.HookTeardownRequest) (*empty.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepositoryServer ¶
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 ¶
func (rs *RepositoryServer) CommentError(ctx context.Context, cer *repository.CommentErrorRequest) (*empty.Empty, error)
CommentError is for commenting on PRs when there is no better means of bubbling up an error.
func (*RepositoryServer) ErrorStatus ¶
func (rs *RepositoryServer) ErrorStatus(ctx context.Context, esr *repository.ErrorStatusRequest) (*empty.Empty, error)
ErrorStatus updates the status for the sha for the given repo on github.
func (*RepositoryServer) FinishedStatus ¶
func (rs *RepositoryServer) FinishedStatus(ctx context.Context, fsr *repository.FinishedStatusRequest) (*empty.Empty, error)
FinishedStatus updates the status for the sha for the given repo on github.
func (*RepositoryServer) GetDiffFiles ¶
func (rs *RepositoryServer) GetDiffFiles(ctx context.Context, fdr *repository.FileDiffRequest) (*repository.StringList, error)
GetDiffFiles retrieves the files present in the diff between the base and the head.
func (*RepositoryServer) GetFile ¶
func (rs *RepositoryServer) GetFile(ctx context.Context, fr *repository.FileRequest) (*repository.Bytes, error)
GetFile returns the file in full as a byte array.
func (*RepositoryServer) GetFileList ¶
func (rs *RepositoryServer) GetFileList(ctx context.Context, rsp *repository.RepoSHAPair) (*repository.StringList, error)
GetFileList finds all the files in the tree for the given repository
func (*RepositoryServer) GetRefs ¶
func (rs *RepositoryServer) GetRefs(ctx context.Context, rsp *repository.RepoSHAPair) (*repository.StringList, error)
GetRefs gets the refs that match the given SHA. Only heads and tags are considered.
func (*RepositoryServer) GetRepository ¶
func (rs *RepositoryServer) GetRepository(ctx context.Context, uwn *repository.UserWithRepo) (*repository.RepositoryData, error)
GetRepository retrieves a repository from github and filters and returns it.
func (*RepositoryServer) GetSHA ¶
func (rs *RepositoryServer) GetSHA(ctx context.Context, rrp *repository.RepoRefPair) (*repository.String, error)
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 ¶
func (rs *RepositoryServer) SetupHook(ctx context.Context, hsr *repository.HookSetupRequest) (*empty.Empty, error)
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 ¶
func (rs *RepositoryServer) TeardownHook(ctx context.Context, htr *repository.HookTeardownRequest) (*empty.Empty, error)
TeardownHook removes the pr webhook in github.