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: 0

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