Documentation ¶
Index ¶
- func NewConnection(w http.ResponseWriter, r *http.Request, f func(*Connection) error) error
- type API
- func (rpc *API) Commit(repoOwner, repoName, message string) error
- func (rpc *API) CommitAll(repoOwner, repoName, message, notes string) error
- func (rpc *API) CommitOnly(repoOwner, repoName, message, notes string) error
- func (a *API) Defer(f func())
- func (rpc *API) FileExists(repoOwner, repoName, path string) (bool, error)
- func (rpc *API) FileExistsOurHeadTheirHead(repoOwner, repoName, path string) (bool, bool, error)
- func (rpc *API) FindFileLists(repoOwner, repoName string) ([]string, error)
- func (rpc *API) GetFile(repoOwner, repoName, path string) ([]byte, error)
- func (rpc *API) GetFileString(repoOwner, repoName, path string) (string, error)
- func (a *API) Git(owner, name string) (*git.Git, error)
- func (rpc *API) IsOurHeadInWd(repoOwner, repoName, path string) (bool, error)
- func (rpc *API) IsRepoConflicted(repoOwner, repoName string) (bool, error)
- func (rpc *API) ListAllRepoFiles(repoOwner, repoName string) (git.DirectoryEntry, error)
- func (rpc *API) ListFiles(repoOwner, repoName, pathregex string) ([]string, error)
- func (rpc *API) ListPullRequests(repoOwner, repoName string) ([]*github.PullRequest, error)
- func (rpc *API) MergeFileOriginal(repoOwner, repoName, path string, version string) (bool, string, error)
- func (rpc *API) MergedFileCat(repoOwner, repoName, path string) (bool, string, bool, string, error)
- func (rpc *API) MergedFileGit(repoOwner, repoName, path string) (bool, string, error)
- func (rpc *API) PrintPdfEndpoint(repoOwner, repoName, book, format, fileList string) (string, error)
- func (rpc *API) PullRequestDiffList(repoOwner, repoName string, prNumber int) ([]*git.PullRequestDiff, error)
- func (rpc *API) PullRequestUpdate(repoOwner, repoName, remoteSHA, filePath string, data string) error
- func (rpc *API) PullRequestVersions(repoOwner, repoName, remoteUrl, remoteSha, filePath string) (string, string, error)
- func (rpc *API) RemoveFile(repoOwner, repoName, path string) error
- func (rpc *API) RenameFile(repoOwner, repoName, fromPath, toPath string) error
- func (rpc *API) SaveMergingFile(repoOwner, repoName string, path string, workingExists bool, ...) (string, error)
- func (rpc *API) SaveOurHeadToWd(repoOwner, repoName, path string) error
- func (rpc *API) SaveTheirHeadToWd(repoOwner, repoName, path string) error
- func (rpc *API) SaveWorkingFile(repoOwner, repoName, path, content string) error
- func (rpc *API) SearchForFiles(repoOwner, repoName, fileRegex string) (string, []string, error)
- func (rpc *API) StageFile(repoOwner, repoName, path string) error
- func (rpc *API) StageFileAndReturnMergingState(repoOwner, repoName, path string) (string, error)
- func (rpc *API) UpdateFile(repoOwner, repoName, path, content string) error
- func (rpc *API) UpdateFileBinary(repoOwner, repoName, path string, contentB64 string) error
- func (rpc *API) Version() string
- type Connection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnection ¶
func NewConnection(w http.ResponseWriter, r *http.Request, f func(*Connection) error) error
Types ¶
type API ¶
type API struct { *Connection // contains filtered or unexported fields }
func (*API) CommitOnly ¶
func (*API) FileExistsOurHeadTheirHead ¶
func (*API) FindFileLists ¶
func (*API) GetFileString ¶
func (*API) IsOurHeadInWd ¶
func (*API) IsRepoConflicted ¶
func (*API) ListAllRepoFiles ¶
func (rpc *API) ListAllRepoFiles(repoOwner, repoName string) (git.DirectoryEntry, error)
ListAllRepoFiles lists all the repo files that are in the repo in a DirectoryEntry format.
func (*API) ListPullRequests ¶
func (rpc *API) ListPullRequests(repoOwner, repoName string) ([]*github.PullRequest, error)
func (*API) MergeFileOriginal ¶
func (rpc *API) MergeFileOriginal(repoOwner, repoName, path string, version string) (bool, string, error)
MergeFileOriginal returns the original file for the merge-version from the named repo.
func (*API) MergedFileCat ¶
func (*API) MergedFileGit ¶
MergedFileGit returns the git merged version of the file
func (*API) PrintPdfEndpoint ¶
func (*API) PullRequestDiffList ¶
func (*API) PullRequestUpdate ¶
func (*API) PullRequestVersions ¶
func (*API) RemoveFile ¶
func (*API) RenameFile ¶
func (*API) SaveMergingFile ¶
func (rpc *API) SaveMergingFile(repoOwner, repoName string, path string, workingExists bool, workingContent string, theirExists bool, theirContent string) (string, error)
SaveMergingFile saves the 'Working' and 'Their' versions of the working file into our repo and our their-tree.
func (*API) SaveOurHeadToWd ¶
func (*API) SaveTheirHeadToWd ¶
func (*API) SaveWorkingFile ¶
func (*API) SearchForFiles ¶
func (*API) StageFileAndReturnMergingState ¶
func (*API) UpdateFile ¶
func (*API) UpdateFileBinary ¶
type Connection ¶
func (*Connection) GetContext ¶
func (c *Connection) GetContext() context.Context
Click to show internal directories.
Click to hide internal directories.