package
1.1.0
Repository: https://github.com/andrewslotin/doppelganger.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewGithubRepositories creates and initializes a new instance of GithubRepositories.
NewMirroredRepositories creates and initializes an instance of MirroredRepositories reading and creating repositories under path directory.
ParseRepositoryName returns owner and project name for given GitHub repository.
SystemGit returns an object that wraps system git command and implements git.Command interface.

# Constants

DefaultMaster is a default name for master branch.
GitCommandDateLayout corresponds to `git log --date=format:%FT%T%z` date format.

# Variables

ErrorNotFound is returned by Get method if specified repository cannot be found.
ErrorNotMirrored is an error returned by Get if given repository does not exist.
GithubToken is a context.Context key for Github auth token.

# Structs

Commit represents a single commit in Git repository.
GithubRepositories is a type intended to list and lookup GitHub repositories as well as setting webhooks.
MirroredRepositories is a type that is intended for maintaining local Git repository mirrors located under the mirrorPath directory.
Repository represents single git repository.

# Interfaces

Command is the interface that wraps calls to Git.
MirrorService is a type that extends RepositoryService adding two more methods: Create and Update.
RepositoryService is a type that wraps All and Get methods.
TrackingService is a type that wraps Track method.