version_control

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FolderPathFormat = "%s/%s"
	TempFolderPath   = "%s/temp_clone_path/%s"

	GitlabTokenENV              = "GITLAB_TOKEN"
	GitRefTag                   = "refs/tags/%s"
	GitRefBranch                = "refs/remotes/%s/%s"
	GitCredentialUrl            = "url=%s"
	GitCredentialDeadLineMs     = 500
	GitCredentialUserNamePrefix = "username="
	GitCredentialPasswordPrefix = "password="
	GitlabUserENV               = "GITLAB_USER"
	GithubTokenENV              = "GITHUB_TOKEN"
	GithubUserENV               = "GITHUB_USER"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct {
	// contains filtered or unexported fields
}

func InitGitProvider

func InitGitProvider(log log.Logger) *Git

func (*Git) CleanModulesFolders

func (g *Git) CleanModulesFolders(modules map[string]*RemoteModule, modulesSource string) error

func (*Git) CloneModules

func (g *Git) CloneModules(modules map[string]*RemoteModule, modulesSource string, externalGit bool) error

type RemoteModule

type RemoteModule struct {
	Name    string
	Url     string
	Version string
	Path    string
}

Jump to

Keyboard shortcuts

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