git

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveReference

func ResolveReference(repositoryURL string, attributes *Attributes) (string, error)

Types

type AbstractClient

type AbstractClient struct {
	Client
	// contains filtered or unexported fields
}

func (*AbstractClient) Clone

func (agc *AbstractClient) Clone(outputDir, repositoryURL string, attributes *Attributes) error

type Attributes

type Attributes struct {
	Branch    string `json:"branch,omitempty"`
	Tag       string `json:"tag,omitempty"`
	Reference string `json:"reference,omitempty"`
	Username  string `json:"username,omitempty"`
	Password  string `json:"password,omitempty"`
}

type Client

type Client interface {
	Clone(outputDir, repositoryURL string, attributes *Attributes) error
}

func NewClient

func NewClient(parentLogger logger.Logger) (Client, error)

Jump to

Keyboard shortcuts

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