Documentation
¶
Overview ¶
Package git defines helper functions for clients.RepoClient interface.
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) GetBranch(branch string) (*clients.BranchRef, error)
- func (c *Client) GetCreatedAt() (time.Time, error)
- func (c *Client) GetDefaultBranch() (*clients.BranchRef, error)
- func (c *Client) GetDefaultBranchName() (string, error)
- func (c *Client) GetFileReader(filename string) (io.ReadCloser, error)
- func (c *Client) GetOrgRepoClient(ctx context.Context) (clients.RepoClient, error)
- func (c *Client) InitRepo(repo clients.Repo, commitSHA string, commitDepth int) error
- func (c *Client) IsArchived() (bool, error)
- func (c *Client) ListCheckRunsForRef(ref string) ([]clients.CheckRun, error)
- func (c *Client) ListCommits() ([]clients.Commit, error)
- func (c *Client) ListContributors() ([]clients.User, error)
- func (c *Client) ListFiles(predicate func(string) (bool, error)) ([]string, error)
- func (c *Client) ListIssues() ([]clients.Issue, error)
- func (c *Client) ListLicenses() ([]clients.License, error)
- func (c *Client) ListProgrammingLanguages() ([]clients.Language, error)
- func (c *Client) ListReleases() ([]clients.Release, error)
- func (c *Client) ListStatuses(ref string) ([]clients.Status, error)
- func (c *Client) ListSuccessfulWorkflowRuns(filename string) ([]clients.WorkflowRun, error)
- func (c *Client) ListWebhooks() ([]clients.Webhook, error)
- func (c *Client) LocalPath() (string, error)
- func (c *Client) Search(request clients.SearchRequest) (clients.SearchResponse, error)
- func (c *Client) SearchCommits(request clients.SearchCommitsOptions) ([]clients.Commit, error)
- func (c *Client) URI() string
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) GetDefaultBranchName ¶
func (*Client) GetFileReader ¶
func (c *Client) GetFileReader(filename string) (io.ReadCloser, error)
func (*Client) GetOrgRepoClient ¶
func (*Client) IsArchived ¶
func (*Client) ListCheckRunsForRef ¶
func (*Client) ListProgrammingLanguages ¶
func (*Client) ListSuccessfulWorkflowRuns ¶
func (c *Client) ListSuccessfulWorkflowRuns(filename string) ([]clients.WorkflowRun, error)
func (*Client) Search ¶
func (c *Client) Search(request clients.SearchRequest) (clients.SearchResponse, error)
func (*Client) SearchCommits ¶
Click to show internal directories.
Click to hide internal directories.