git

package
v5.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package git defines helper functions for clients.RepoClient interface.

Index

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) Close

func (c *Client) Close() error

func (*Client) GetBranch

func (c *Client) GetBranch(branch string) (*clients.BranchRef, error)

func (*Client) GetCreatedAt

func (c *Client) GetCreatedAt() (time.Time, error)

func (*Client) GetDefaultBranch

func (c *Client) GetDefaultBranch() (*clients.BranchRef, error)

func (*Client) GetDefaultBranchName

func (c *Client) GetDefaultBranchName() (string, error)

func (*Client) GetFileReader

func (c *Client) GetFileReader(filename string) (io.ReadCloser, error)

func (*Client) GetOrgRepoClient

func (c *Client) GetOrgRepoClient(ctx context.Context) (clients.RepoClient, error)

func (*Client) InitRepo

func (c *Client) InitRepo(repo clients.Repo, commitSHA string, commitDepth int) error

func (*Client) IsArchived

func (c *Client) IsArchived() (bool, error)

func (*Client) ListCheckRunsForRef

func (c *Client) ListCheckRunsForRef(ref string) ([]clients.CheckRun, error)

func (*Client) ListCommits

func (c *Client) ListCommits() ([]clients.Commit, error)

func (*Client) ListContributors

func (c *Client) ListContributors() ([]clients.User, error)

func (*Client) ListFiles

func (c *Client) ListFiles(predicate func(string) (bool, error)) ([]string, error)

func (*Client) ListIssues

func (c *Client) ListIssues() ([]clients.Issue, error)

func (*Client) ListLicenses

func (c *Client) ListLicenses() ([]clients.License, error)

func (*Client) ListProgrammingLanguages

func (c *Client) ListProgrammingLanguages() ([]clients.Language, error)

func (*Client) ListReleases

func (c *Client) ListReleases() ([]clients.Release, error)

func (*Client) ListStatuses

func (c *Client) ListStatuses(ref string) ([]clients.Status, error)

func (*Client) ListSuccessfulWorkflowRuns

func (c *Client) ListSuccessfulWorkflowRuns(filename string) ([]clients.WorkflowRun, error)

func (*Client) ListWebhooks

func (c *Client) ListWebhooks() ([]clients.Webhook, error)

func (*Client) LocalPath

func (c *Client) LocalPath() (string, error)

func (*Client) Search

func (c *Client) Search(request clients.SearchRequest) (clients.SearchResponse, error)

func (*Client) SearchCommits

func (c *Client) SearchCommits(request clients.SearchCommitsOptions) ([]clients.Commit, error)

func (*Client) URI

func (c *Client) URI() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL