git

package
v14.39.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package git provides functionality for interacting with Git repositories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	URL     string
	Headers map[string]string
}

Client represents a client for interacting with Git repositories.

func (*Client) InfoRefs

func (c *Client) InfoRefs(ctx context.Context, service string) (*http.Response, error)

InfoRefs retrieves information about the Git repository references.

func (*Client) ReceivePack

func (c *Client) ReceivePack(ctx context.Context, body io.Reader) (*http.Response, error)

ReceivePack sends a Git push request to the server.

func (*Client) SSHReceivePack added in v14.36.0

func (c *Client) SSHReceivePack(ctx context.Context, body io.Reader) (*http.Response, error)

SSHReceivePack sends a SSH Git push request to the server.

func (*Client) SSHUploadPack added in v14.36.0

func (c *Client) SSHUploadPack(ctx context.Context, body io.Reader) (*http.Response, error)

SSHUploadPack sends a SSH Git fetch request to the server.

func (*Client) UploadPack added in v14.28.0

func (c *Client) UploadPack(ctx context.Context, body io.Reader) (*http.Response, error)

UploadPack sends a Git fetch request to the server.

Jump to

Keyboard shortcuts

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