git

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitApi

type GitApi interface {
	Clone(gitUrl string, path string) (string, error)
	Pull(destinationDir string) (string, error)
}

func CreateMirrorClient

func CreateMirrorClient(log *log.Logger) GitApi

type GitClient

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

func CreateGitClient

func CreateGitClient(log *log.Logger) *GitClient

func (*GitClient) Clone

func (gc *GitClient) Clone(gitUrl string, path string) (string, error)

func (*GitClient) Pull

func (gc *GitClient) Pull(destinationDir string) (string, error)

type GitMirrorClient

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

func (*GitMirrorClient) Clone

func (g *GitMirrorClient) Clone(gitUrl string, path string) (string, error)

func (*GitMirrorClient) Pull

func (g *GitMirrorClient) Pull(destinationDir string) (string, error)

Jump to

Keyboard shortcuts

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