Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Commit ¶
type Commit struct {
Commit string `json:"commit"`
Author struct {
Name string `json:"name"`
Email string `json:"email"`
Time GitTime `json:"time"`
}
Committer struct {
Name string `json:"name"`
Email string `json:"email"`
Time GitTime `json:"time"`
}
Message string `json:"message"`
}
Commit represents a single entry in the log returned by Gitiles REST API.
type Gerrit ¶
Gerrit exposes the Gerrit REST API.
func NewGerrit ¶
NewGerrit returns the new Gerrit instance for the given URL.
func (*Gerrit) GetLog ¶
GetLog returns log for a given ref since a given commit.
func (*Gerrit) GetRefs ¶
GetRefs returns HEAD revision for each ref specified in refs.
type GitTime ¶
GitTime is a date and time representation used by git log.
type Log ¶
type Log []Commit
Log is therepresentation of Git log as a sequence of commits.
func (Log) Less ¶
Less reutnr true if the element i is smaller than j.
type StatusError ¶
type StatusError struct {
Code int
}
StatusError represents an HTTP status error.
func (StatusError) Error ¶
func (e StatusError) Error() string
Error returns the string representation of the HTTP status error.
Source Files
¶
- gerrit.go
Click to show internal directories.
Click to hide internal directories.