git

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 12 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) GetFileContent

func (c *Client) GetFileContent(filename string) ([]byte, error)

func (*Client) InitRepo

func (c *Client) InitRepo(uri, commitSHA string, commitDepth int) error

func (*Client) ListCommits

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

func (*Client) ListFiles

func (c *Client) ListFiles(predicate func(string) (bool, error)) ([]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)

TODO(#1709): Implement below fns using go-git.

Jump to

Keyboard shortcuts

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