gitx

package
v0.0.0-...-7c3147a Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRepoName

func GetRepoName(path string) string

func NewGit

func NewGit()

Types

type GitConfig

type GitConfig struct {
	Endpoint      *transport.Endpoint `json:"endpoint"`
	Url           string              `json:"url"`
	SourceCodeDir string              `json:"source_code_dir"`
	Username      string              `json:"username"`
	Password      string              `json:"password"`
	LogPath       string              `json:"log_path"`
}

type GitInterface

type GitInterface interface {
	Clone(ctx context.Context, path string, config *atobv1.GitConfig, file *os.File) error
	Pull(ctx context.Context, path string, config *atobv1.GitConfig, file *os.File) error

	PullOrClone(ctx context.Context, path string, config *atobv1.GitConfig, file *os.File) error
}

func Default

func Default() GitInterface

Jump to

Keyboard shortcuts

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