git

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package git provides a client for interacting with Git providers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

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

Git is the struct that contains the GitHub REST API client

func NewGit

func NewGit(token string) *Git

NewGit creates a new GitHub client

func (*Git) Clone

func (g *Git) Clone(ctx context.Context, url, branch string) (*git.Repository, error)

Clone clones a git repository

func (*Git) GetToken

func (g *Git) GetToken() string

GetToken returns the token for the provider

Jump to

Keyboard shortcuts

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