connection

package
v0.0.0-...-d0f9452 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneRepo

func CloneRepo(options CloneRepoOptions)

func GitBasicAuth

func GitBasicAuth(username, password string) *gitHttp.BasicAuth

Types

type CloneRepoOptions

type CloneRepoOptions struct {
	Repo      *github.Repository
	CloneBare bool
	Directory string
	GitAuth   *gitHttp.BasicAuth
}

type GitHubClient

type GitHubClient struct {
	Username string
	Pat      string
	// contains filtered or unexported fields
}

func CreateGitHubClient

func CreateGitHubClient(ctx context.Context, username, pat string) *GitHubClient

func (*GitHubClient) ListUserRepos

func (c *GitHubClient) ListUserRepos(ctx context.Context, visibility string) ([]*github.Repository, error)

Jump to

Keyboard shortcuts

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