Documentation ¶
Overview ¶
Package git defines helper functions for clients.RepoClient interface.
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) GetFileContent(filename string) ([]byte, error)
- func (c *Client) InitRepo(uri, commitSHA string, commitDepth int) error
- func (c *Client) ListCommits() ([]clients.Commit, error)
- func (c *Client) ListFiles(predicate func(string) (bool, error)) ([]string, error)
- func (c *Client) Search(request clients.SearchRequest) (clients.SearchResponse, error)
- func (c *Client) SearchCommits(request clients.SearchCommitsOptions) ([]clients.Commit, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Search ¶
func (c *Client) Search(request clients.SearchRequest) (clients.SearchResponse, error)
func (*Client) SearchCommits ¶
TODO(#1709): Implement below fns using go-git.
Click to show internal directories.
Click to hide internal directories.