gitmanager

package
v0.0.0-...-b2289a0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UnknownParseError = errors.New("unknown parse error")

Functions

func CloneRepository

func CloneRepository(gitUrl string, branch string, username string, password string, privateKey string, destFolder string) (commitHash string, commitMessage string, err error)

func FetchBranches

func FetchBranches(gitUrl string, username string, password string, privateKey string) ([]string, error)

func FetchLatestCommitHash

func FetchLatestCommitHash(gitUrl string, branch string, username string, password string, privateKey string) (string, error)

Types

type GitRepoInfo

type GitRepoInfo struct {
	IsParsed      bool
	Provider      string
	Owner         string
	Name          string
	Endpoint      string
	SshUser       string
	IsSshEndpoint bool
}

func ParseGitRepoInfo

func ParseGitRepoInfo(gitUrl string) (*GitRepoInfo, error)

func (*GitRepoInfo) URL

func (gitRepoInfo *GitRepoInfo) URL() string

Jump to

Keyboard shortcuts

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