gitrepo

package
v0.0.0-...-2998d80 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeAPIName

func MakeAPIName(cloneUrl, branchName string, suffixes ...string) string

func MakeLocalPath

func MakeLocalPath(localDir, cloneUrl, branchName string) string

Types

type GitRepository

type GitRepository interface {
	Pull(ctx context.Context) error
	GetCurrentCommitId() string
	GetFS() (billy.Filesystem, error)
	GetLocalPath() string
}

func NewGitRepository

func NewGitRepository(ctx context.Context, localDir, cloneUrl, branchName, sshKeyDir string) (GitRepository, error)

type ReadonlyGitRepository

type ReadonlyGitRepository interface {
	GetCurrentCommitId() string
	GetFS() (billy.Filesystem, error)
}

func NewReadOnlyGitRepository

func NewReadOnlyGitRepository(localPath, sshKeyDir string) (ReadonlyGitRepository, error)

Jump to

Keyboard shortcuts

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