Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetInitializer ¶
func SetInitializer(i Initializer)
func SetLauncher ¶
func SetLauncher(l Launcher)
Types ¶
type Config ¶
type Config interface {
DevelopmentDirectory() string
ScratchDirectory() string
GetServices() []models.Service
GetService(domain string) models.Service
GetDefaultService() models.Service
GetApps() []models.App
GetApp(name string) models.App
GetDefaultApp() models.App
GetAliases() map[string]string
GetAlias(name string) string
GetFeatures() Features
}
The Config is used to configure the behavior of Git Tool
type Initializer ¶
type Initializer interface {
Init(r models.Repo) error
Pull(r models.Repo) error
Clone(r models.Repo) error
EnsureRemoteRepo(r models.Repo) error
CreateRemoteRepo(r models.Repo) error
CreateScratchpad(r models.Scratchpad) error
}
func GetInitializer ¶
func GetInitializer() Initializer
type Launcher ¶
func DefaultLauncher ¶
func DefaultLauncher() Launcher
func GetLauncher ¶
func GetLauncher() Launcher
type Mapper ¶
type Mapper interface {
GetBestRepo(name string) (models.Repo, error)
GetRepos() ([]models.Repo, error)
GetScratchpads() ([]models.Scratchpad, error)
GetScratchpad(name string) (models.Scratchpad, error)
GetReposForService(service models.Service) ([]models.Repo, error)
GetRepo(name string) (models.Repo, error)
GetRepoForService(service models.Service, name string) (models.Repo, error)
GetFullyQualifiedRepo(name string) (models.Repo, error)
GetCurrentDirectoryRepo() (models.Repo, error)
}
A Mapper holds the information about a developer's source code folder which may contain multiple repositories.
type Output ¶
Click to show internal directories.
Click to hide internal directories.