Documentation ¶
Overview ¶
Package gitiles imlements provider.Provider using the Gitiles API.
Index ¶
- type Gitiles
- func (g *Gitiles) CommitsFromMostRecentGitHashToHead(ctx context.Context, mostRecentGitHash string, cb provider.CommitProcessor) error
- func (g *Gitiles) GitHashesInRangeForFile(ctx context.Context, begin, end, filename string) ([]string, error)
- func (g *Gitiles) LogEntry(ctx context.Context, gitHash string) (string, error)
- func (g *Gitiles) Update(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gitiles ¶
type Gitiles struct {
// contains filtered or unexported fields
}
Gitiles implements provider.Provider.
func New ¶
func New(c *http.Client, instanceConfig *config.InstanceConfig) *Gitiles
New returns a new instance of Gitiles.
func (*Gitiles) CommitsFromMostRecentGitHashToHead ¶
func (g *Gitiles) CommitsFromMostRecentGitHashToHead(ctx context.Context, mostRecentGitHash string, cb provider.CommitProcessor) error
CommitsFromMostRecentGitHashToHead implements provider.Provider.
func (*Gitiles) GitHashesInRangeForFile ¶
func (g *Gitiles) GitHashesInRangeForFile(ctx context.Context, begin, end, filename string) ([]string, error)
GitHashesInRangeForFile implements provider.Provider.
Click to show internal directories.
Click to hide internal directories.