git

package
v0.0.76 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 12 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 It implements helper functions that a provider that uses the `git` trait can use.

func NewGit

func NewGit(token provifv1.GitCredential, opts ...Options) *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

type Options

type Options func(*Git)

Options implements the "functional options" pattern for Git

func WithConfig

func WithConfig(cfg server.GitConfig) Options

WithConfig configures the Git implementation with server-side configuration options.

Directories

Path Synopsis
Package memboxfs provides a billy.Fs-compatible filesystem implementation which limits the maxiumum size of the in-memory filesystem.
Package memboxfs provides a billy.Fs-compatible filesystem implementation which limits the maxiumum size of the in-memory filesystem.

Jump to

Keyboard shortcuts

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