versioning

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIGitClient

type CLIGitClient struct{}

func (*CLIGitClient) Clone

func (client *CLIGitClient) Clone(baseFolder string, outputFolder string, remote string) error

func (*CLIGitClient) FetchAll

func (client *CLIGitClient) FetchAll(repoFolder string) error

func (*CLIGitClient) HardReset

func (client *CLIGitClient) HardReset(repoFolder string, commit string) error

type EmbeddedGitClient

type EmbeddedGitClient struct {
	Auth transport.AuthMethod
}

func (*EmbeddedGitClient) Clone

func (client *EmbeddedGitClient) Clone(baseFolder string, outFolder string, remote string) error

func (*EmbeddedGitClient) FetchAll

func (client *EmbeddedGitClient) FetchAll(repoFolder string) error

func (*EmbeddedGitClient) HardReset

func (client *EmbeddedGitClient) HardReset(repoFolder string, commit string) error

type FetchResult

type FetchResult struct {
	AppCommits       []string
	ObjectsToHashMap map[string]string
	HashToObjectsMap map[string]*models.RemoteObject
	BranchesMap      map[string]*models.Branch
	TagsMap          map[string]*models.Tag
	Commits          []string
	CommitMap        map[string]*object.Commit
}

type GitClient

type GitClient interface {
	Clone(baseFolder string, outputFolder string, remote string) error
	FetchAll(repoFolder string) error
	HardReset(repoFolder string, commit string) error
}

func GetGitClient

func GetGitClient() GitClient

func NewCLIGitClient

func NewCLIGitClient() GitClient

func NewEmbeddedGitClient

func NewEmbeddedGitClient(auth transport.AuthMethod) GitClient

type RepositoryFetcher

type RepositoryFetcher interface {
	Fetch(baseFolder string) (*FetchResult, []error)
}

type RepositoryFetcherImpl

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

func NewRepositoryFetcher

func NewRepositoryFetcher(gitClient GitClient) *RepositoryFetcherImpl

func (*RepositoryFetcherImpl) Fetch

func (fetcher *RepositoryFetcherImpl) Fetch(baseFolder string) (*FetchResult, []error)

Jump to

Keyboard shortcuts

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