git

package
v0.0.0-...-7b190fc Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git interface {
	FetchCommitSHA(ctx context.Context, owner, repo, ref string) (string, error)
	GetContents(ctx context.Context, owner, repo, ref, path string) (*github.RepositoryContent, []*github.RepositoryContent, error)
}

func GithubClient

func GithubClient(ctx context.Context, token string) Git

type GitClient

type GitClient struct {
	// contains filtered or unexported fields
}

func (*GitClient) FetchCommitSHA

func (gh *GitClient) FetchCommitSHA(ctx context.Context, owner, repo, ref string) (string, error)

func (*GitClient) GetContents

func (gh *GitClient) GetContents(ctx context.Context, owner, repo, ref, path string) (*github.RepositoryContent, []*github.RepositoryContent, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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